Thanks Robert for you help, it did work at the end
So how to add another language into the i18n:
When in Eclipse you edit the i18n messages for example: French, Luxembourg (fr_LU), there will be a file generated (Mac):
"/servoy_workspace/resources/messages/mySolution.i18n.fr_LU.properties"
You can access this file via the Eclipse - Navigator:
"/ressources/messages/mySolution.i18n.fr_LU.properties"
and copy/paste a new
"mySolution.i18n.lb_LU.properties",
because the official, but not existing, code is "lb_LU" (Luxembourgish, Luxembourg)
but you could even try the official, but not existing, code "sy_SL" (Servoyanish,ServoyLand) and create the "mySolution.i18n.sy_SL.properties"
You have to copy/paste this file in Eclipse so Eclipse will know there is another file. If you do it in the finder (Mac) you have to drag the file into the "navigator" of Eclipse to get the same result.
You will NOT be able to select this language in the i18n editor to get started adding the messages into this language.
Therefore being in the Eclipse navigator, right-mouse-click the file and select "Open With/Text Editor":
"mySolution.i18n.lb_LU.properties":
- Code: Select all
...
mySolution.label.name=Numm
mySolution.label.nameFirst=Virnumm
mySolution.label.nameLast=Familljennumm
mySolution.btn.done=Best\u00E4tigen
mySolution.btn.delete=L\u00E4chen
...
servoy.button.cancel=Zer\u00E9ck
servoy.general.cancel.title=Zer\u00E9ck
...
You can add all the "servoy.*" elements so the whole Servoy-GUI will be in this language.
To set the the language onSolutionOpen:
- Code: Select all
function onSolutionOpen() {
var login_i18n_language = 'lb';
var login_i18n_country = 'LU';
i18n.setLocale(login_i18n_language, login_i18n_country);
}