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.jsfile look at theswitchstatement and for each option replace Czech words assigned totranslationvariable with words in your language. - Download following original JavaScript files:
- In
errorMessages.jsfile translate string values in bothBlockly.redErrorMessagesandBlocky.yellowErrorMessagesobjects. 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.jsandblocks_compressed_vertical.jsfiles and translate them. In our plugin the translated files are also saved withczechsuffix. - For Edison Edscratch v3: Open Edison Edscratch app, go through all the block types and search block texts one by one in
messages.jsandblockly_compressed_vertical.jsfiles and translate them. The majority of texts is stored inmessages.jsfile but options for a few combo boxes are still placed in the second file. In our plugin the translated files are also saved withczechsuffix.
- 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.jsonfile and replaceextensionPathproperties in all rules with path to your translated files. - Open
manifest.jsonfile, update pluginname,versionanddescriptionand changeresourcesinweb_accessible_resourcessection to match paths of your translated JavaScript files. - Create your own tile and icon images.


