Welcome to the TheoTown Translation Repository! This is where the community can contribute to localizing TheoTown into various languages. Your help makes TheoTown more accessible to players around the globe.
Each values[.*]/strings.xml
file contains lines like this:
<string name="tagname">My translation</string>
Simply translate the text between the tags (e.g. replace My Translation
with your translation).
The special symbol \n
can be used to indicate a new line.
When your translation is done, make sure to create a 'pull request' so it can be merged to main branch. If you forget to do that step your translation won't be added to the project!
Each directory in this repository contains a strings.xml
file for a specific language.
Here is a list of currently supported languages:
values
: English (default language) ← Always up to datevalues-af
: Afrikaansvalues-b+fil
: Filipinovalues-ca
: Catalanvalues-cs
: Czechvalues-de
: German ← Always up to datevalues-es
: Spanishvalues-eu
: Basquevalues-fr
: Frenchvalues-hu
: Hungaryvalues-in
: Indonesianvalues-it
: Italianvalues-ja
: Japanesevalues-ko
: Koreanvalues-lt
: Lithuanianvalues-ms
: Malayvalues-nl
: Dutchvalues-pl
: Polishvalues-pt
: Portuguesevalues-ru
: Russianvalues-sk
: Slovakvalues-sr
: Serbianvalues-th
: Thaivalues-tr
: Turkishvalues-uk
: Ukrainianvalues-vi
: Vietnamesevalues-zh-rHK
: Hong Kong Chinesevalues-zh-rTW
: Traditional Chinesevalues-zh
: Chinese
If you'd like to add a new language, refer to the ISO 639-1 two-letter language codes and create a corresponding directory.
English and German translations will always be up to date.
New strings will be appended to all strings.xml
files in English by default.
Certain characters cannot be written directly within the xml file. You will have to replace them according to the following table:
Character | Escaped form |
---|---|
" | " |
' | ' or \' |
< | < |
> | > |
& | & |
Sidenote: In Json based translations all you have to replace is " by \".
There's a grab.sh
script included that can be used to grab current translations files from the project directory automatically (developer only). For that to work you have to setup a local TheoTown symbolic link to your TheoTown project directory. To do this, execute a command like the following (here assuming running WSL):
ln -s /mnt/c/Users/User/StudioProjects/TheoTown66 TheoTown