Excellent Pilou.
Further investigation of the Info documentation, in particular the Info code for all of the nodes of construct2.js brings up the following:
Firstly,
The lang.js file should have translations for "Intro", "single rail", "two rail", and "normal".
"Normal" is already translated in the lang.js file, so the getExtraMenuOptions code for normal node in construct2.js, could have "Normal" with capitalized N.
Maybe "single rail" and "two rail" should be capitalized in getExtraMenuOptions code for sweep node in construct2.js?
If additional Info .html files are developed for the other nodes with Extra Menu Options, those selections should also be translated in the lang.js file.
Secondly,
Currently, the getExtraMenuOptions only access the language code of lang.js line 4, default value "EN" unless "EN is manually edited to say "FR".
The proper access should be by the MoI Option language setting. So some minor modification of the getExtraMenuOptions code is needed.
The last 7 lines of lang.js yield the language code such as EN, RU, FR, for MoI's Option languages setting of for example English, Russian, French.
I do not understand the code very well.
Perhaps some knowledgeable person could make an adjustment to the getExtraMenuOptions code of Karsten, so that the proper nodeeditor Info Documentation subdirectory
such as EN folder, RU folder, or FR folder, containing the various *.html files is used when using the Info button.
I'm not sure if the proper label is lang, language, LANGUAGE, lng, l, or ?. Also there are .XXX methods.
- Brian
ps Are there any other nodeeditor language translations such as SP Spanish?
|