How to translate any Open Source Physics to your language
As mention in earlier post, anyone can translate any Open Source Physics simulation to your language. These are the steps to do that.
- Download EJSS Easy JavsScript Simulation authoring toolkit from here. i recommend the latest versionh //gitlab.com/ejsS/tool/blob/master/Release/EjsS_5.3_190423-beta.zip the zip file into your computer.
- Unzip the file using any unzipping software like winrar or winzip into the default folder location.
- Navigate to the folder expanded, double click to launch EjsS_5.3 EjsConsole.jar file
- EJSS will launch with a EJSS console and EJSS editor
- Select Basic Options on the EJS console and select the Programming language as "Javascript", as you would want to translate those HTML5 simulations.
- Click on the(fourth icon on the right panel) "Read from EJSS Digital Library" icon, in the pop up select the "EJSS models at Singapore" Digital Library
- For example, you are interested to translate my Micrometer Model, it can be browse and found at 01_measurement Micrometer02 file. Click download or double click it to tell EJSS to read the source codes there.
- For beginners, just accept the default work-space and save the downloaded source codes into the work-space area. For experts, you may want to organise your files in source/users/sgeducation/lookang as default or other folders and names you want.
- Agree to everything like replace duplicate files
- At this point, you should have the source files loaded in EJSS authoring tool, ready for translation!
- Click the translation icon (right bottom top 4th icon) and a panel will appear showing the texts strings for translation.
- How to find your language code, visit http://www.loc.gov/standards/iso639-2/php/code_list.php and find your language, say if you are interested in Indonesia , the code is id. for Spainish is es.
- key in the language field and change it to id
- and press Enter on the keyboard to register the input
- assuming you want to type in by yourself based on your language skills as a translator, for demo proposes i will use google translate https://translate.google.com/
- copy the text say "answer?="
- select English in the left panel, Translated to language as "Indonesia" for example
- and paste in translate
- and the translated string back to the EJSS
- Success! you have just successfully translated the first English string, repeat steps 15 to 19 for the rest of the strings.
- click on the Ok to accept all changes made in the translation
- save the file to make sure the work is saved
- To test whether yo did the translation correctly, right click on bottom 3rd bottom icon and select simulation package current simulation only
- save the file in the default name, it will be in the folder export
- navigate to the export file,
- expand it
- find the folder
- look for the Micrometer02_Simulation_id.xhtml file and run it
- package also the source codes ejss_src_Micrometer02.zip and send it to me at This email address is being protected from spambots. You need JavaScript enabled to view it. and i will upload and share with the world your translation work!
- found in the export folder
- now, you or anyone should be able to translate any Open Source Physics simulation using the method above. Enjoy and remember to email me the ejss_src_