4.4. Translations into other languages

The strings presented to the Pauker user are not hardcoded into the sourcecode but are provided by property files. This way programmers and translators can work more or less independently. Pauker has already been translated into (still a relatively small) number of languages. The next figure shows, where the respective files are located:

To edit the translations you have to right-click the file Strings.properties and choose the menu option “Open”. Double-clicking Strings.properties or right-click->Edit unfortunately does NOT work like expected!

After you opened the file Strings.properties, a new frame appeares, where all translations are displayed side by side (see next figure). This way you can edit translations.

Unfortunately this view is not very clearly laid out. By double-clicking the above tab “Strings” you can maximize the translation's frame. If you only want to edit a certain translation you can collaps the columns of the other languages (see next figure).

And now we can work with this tool to some degree! :-)

If you do not just want to extend or correct a translation but add a new one, you have to right click the file Strings.properties and select the menu “Add Locale...”.

To be useful in preferably all countries where this language is spoken you should not use further specializations like country codes or variants.

To be able to see the result you have to start Pauker with the new translation. Just press the F6 button.

To see Pauker with the new translation your operating system or desktop must be started in the language of your new translation. If you can not or if you do not want to switch the locale of your running system you have to reconfigure the Netbeans Pauker project: Right-click the project “Pauker” and choose the menu entry “Properties”.

In the Project Properties category “Run” you can set the VM-Option -Duser.language=<language code>.

After this you can start Pauker by pressing the F6 key.