Browser plugin for Edison Edscratch with Czech localization. Works for three different versions of Edison Edscratch:
There are two ways the plugin translates Edison Edscratch into Czech language.
The first one (file translate_dom.js
) looks for HTML elements having specific class attribute set and replaces their content with Czech words. This translates top left navigation with block types. This file is needed for Edison Edscratch v2 and "cloud" version of Edison Edscratch.
The second one (file block_rules.json
) replaces four JavaScript files downloaded to the browser as part of the Edison Edscratch application with their copy having texts translated into Czech. This translates the blocks and warning and error messages. This is needed for all Edison Edscratch versions.
To translate Edison Edscratch into your language:
- In
translate_dom.js
file look at theswitch
statement and for each option replace Czech words assigned totranslation
variable with words in your language. - Download following original JavaScript files:
- In
errorMessages.js
file translate string values in bothBlockly.redErrorMessages
andBlocky.yellowErrorMessages
objects. In our plugin the translated file is saved aserrorMessages_czech.js
. - Translating blocks is bit more complicated.
- For Edison Edscratch v2 and "cloud" version: Open Edison Edscratch app, go through all the block types and search block texts one by one in
blockly_compressed_vertical.js
andblocks_compressed_vertical.js
files and translate them. In our plugin the translated files are also saved withczech
suffix. - For Edison Edscratch v3: Open Edison Edscratch app, go through all the block types and search block texts one by one in
messages.js
andblockly_compressed_vertical.js
files and translate them. The majority of texts is stored inmessages.js
file but options for a few combo boxes are still placed in the second file. In our plugin the translated files are also saved withczech
suffix.
- For Edison Edscratch v2 and "cloud" version: Open Edison Edscratch app, go through all the block types and search block texts one by one in
- Save all translated JavaScript files, open
block_rules.json
file and replaceextensionPath
properties in all rules with path to your translated files. - Open
manifest.json
file, update pluginname
,version
anddescription
and changeresources
inweb_accessible_resources
section to match paths of your translated JavaScript files. - Create your own tile and icon images.