Configure additional languages
Stages comes with English, German and Chinese translations. Other languages can be added in the following way:
- Edit conf/config.xml and add/edit the following property by adding the additional language, e.g. “ja” (for Japanese):
<property name=“supported.languages” value=“en,de,zh,ko,ja”/>
- Execute bin/update.bat (Windows) or bin/update.sh (Linux).
This will generate a properties file with the suffix of the new language (e.g. stages_ja.properties) in …\stages\data-cache\generated. The file contains the English translations. Do not modify it directly because all changes will be overwritten by the next execution of update.bat/sh.
- Do the desired translations:
- Go to conf folder and create a new file there as a copy of local.properties. It should be named local_[enter language abbreviation here].properties. Example: local_ja.properties.
- Copy all message properties that you want to translate from the file that was generated in step 3
- Paste the message properties to the new properties file in the conf folder and translate the message texts there
- Execute bin/update.bat (Windows) or bin/update.sh (Linux) again.
- Restart Stages.
- Login and open your user settings. Set the language to the new configured language to test if the new translations are shown. The English translations are still used for all untranslated messages.