-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Translating a bunch of stuff into English.
- Loading branch information
1 parent
3c1daae
commit d6de30c
Showing
7 changed files
with
841 additions
and
181 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Add a new Language to the Graphical Editor | ||
Examples for the graphical editor translation files exist in the js/msg/bn folder. Right now, only English and French translations exist. To add a new language, follow these steps: | ||
|
||
1. Make a copy of one of the existing translation files, and change the name to the language you will be translating. | ||
2. Some translations are incomplete, so check other translations to make sure that you have all of the variables. | ||
3. Translate each individual string in the translateToolBox() and translateHTMLtoken() functions, as well as all of the variables in the rest of the file. | ||
4. In the index.html file, there is a script that checks the URL for the desired language. You need to copy and paste a block that looks like this: | ||
``` | ||
if(lang=="french"||lang=="fr"){ | ||
document.writeln('\<script src="./js/msg/bn/french.js"\>\</script\>'); | ||
document.writeln('\<script src="./js/msg/js/fr.js"\>\</script\>'); | ||
} | ||
``` | ||
5. Note that there is a second JavaScript file "./js/msg/js/fr.js". Blockly comes with many translations already. Find the one for your language, and make sure you change it in your new if-block. | ||
|
||
# Help with the preparation of tutorials on the blocklynukkit.info website | ||
# Contribute project code |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# BlocklyNukkit | ||
|
||
[English](README.en.md) | ||
|
||
#### 介绍 | ||
我们的在线使用网址:[点击进入](https://tools.blocklynukkit.com) | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters