Update language documentation with -lang flag

This commit is contained in:
Lucas Nicodemus 2022-10-31 15:52:36 -07:00
parent 657be6169d
commit 2ec33a16c1
No known key found for this signature in database

View file

@ -1,18 +1,40 @@
TShock supports automatic language detection based on your system regional settings. If you want to override this, set the `TSHOCK_LANGUAGE` environment variable to a different language. Currently, only a limited number of [Toki Pona](https://tokipona.org/) translations are available, by setting `TSHOCK_LANGUAGE` to `tok`. Translation work is underway to translate TShock into different languages.
TShock supports automatic language detection based on your system regional settings. If you want to override this, set the `TSHOCK_LANGUAGE` environment variable to a different language, or pass the `-lang` command line argument to change the language.
If you can't load other languages, make sure that you still have a folder called `i18n` and that your language folder of choice contains a `.mo` file. If it does, those translations should load successfully if you override the language settings using `TSHOCK_LANGUAGE` or if you set your regional settings to the right language.
This system is separate from Terraria's language system. You may still want to pass `-lang` on the command line to set the language for Terraria.
The base for the i18n system was built by Janet Blackquill ([@pontaoski](https://github.com/pontaoski)). A small donation in her honor was made to the [KDE project](https://kde.org/) as a thankyou for this work.
## Supported language projects
## Simplified Chinese (`zh_CN`)
The following language projects are currently in-progress, with significant progress:
We owe a very special thanks to our `zh_CN` translators. From the start of the project, we wanted `zh_CN` to be one of our best supported languages. Thank you to the following contributors of translations:
* Chinese (Simplified) (`zh_CN`)
|Name|Translated (Words)|Target Words|
|--------|--------|--------|
|xml3344 has stopped making trouble (1212122222)|3176|5220|
|Axeel (AxeelAnder)|2273|4155|
|SGKoishi|2129|3391|
|Leader-txt (Leader_txt)|1568|2677|
|Cai233|1335|2208|
|hufang 360 (hufang360)|892|1295|
|StarCloud-cy|601|956|
|JJJJGGGG12345|454|728|
|Seele Vollerei (aaa1115910)|302|483|
|问心\|MiaoVPS (WenXin_MiaoVPS)|256|376|
|Jifeng|60|105|
|xml3344|27|40|
|kuaizhi|23|40|
|Muteduanxing|13|30|
|Xlink|8|8|
|Smelody|6|7|
For the most up-to-date list of translators, see the [top member report on Crowdin](https://crowdin.com/project/tshock/reports/top-members). You should adjust the date range to select from October 21, 2022 onward.
## Other language projects
The following languages have had significant progress:
* Russian (`ru_RU`)
* Spanish (`es_ES`)
* Indonesian (`id_ID`)
The following are active projects without significant progress:
@ -27,3 +49,4 @@ The following are active projects without significant progress:
If you'd like your language to be supported, please let us know in Discord.
We are particularly interested in `zh_CN`, `ru_RU`, and `es_ES` because these are the most commonly used languages in conjunction with TShock.