Merge branch 'vatoutou:main' into latvia
This commit is contained in:
25
README.md
25
README.md
@@ -1,6 +1,6 @@
|
||||
# War Era Translations
|
||||
|
||||
This repository contains the translation files for [War Era](https://warera.com). Community contributions are welcome!
|
||||
This repository contains the translation files for [War Era](https://app.warera.io). Community contributions are welcome!
|
||||
|
||||
## Structure
|
||||
|
||||
@@ -26,6 +26,26 @@ uk/messages.po # Ukrainian
|
||||
2. **Edit** the `.po` file for the language you want to translate
|
||||
3. **Submit a Pull Request**
|
||||
|
||||
|
||||
### If you want to add a new language
|
||||
|
||||
To add a new language, create a folder named with the language's **ISO 639-1** code and add a `messages.po` file inside it.
|
||||
|
||||
For example, to add **Catalan** (language code `ca` according to the ISO 639-1 standard):
|
||||
|
||||
1. Create a new folder named `ca/`
|
||||
2. Copy an existing `messages.po` file into it (e.g. from `en/messages.po`)
|
||||
3. Clear all the `msgstr` values and fill in your Catalan translations
|
||||
4. Submit a Pull Request
|
||||
|
||||
The resulting structure should look like:
|
||||
|
||||
```
|
||||
ca/messages.po # Catalan
|
||||
```
|
||||
|
||||
You can find the ISO 639-1 code for your language on [Wikipedia](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).
|
||||
|
||||
### Editing `.po` files
|
||||
|
||||
Each `.po` file contains entries like this:
|
||||
@@ -69,11 +89,10 @@ msgstr "Cliquez <0>ici</0> pour continuer"
|
||||
- Do not translate the `en/messages.po` file (it is the source locale, auto-generated)
|
||||
- Keep the tone consistent with the game's style
|
||||
- If you're unsure about a translation, leave a comment on your PR
|
||||
- Test your changes if possible by running the game locally
|
||||
|
||||
## Adding a New Language
|
||||
|
||||
If you'd like to add support for a new language, please open an issue first so we can discuss it.
|
||||
If you start translating a language, please open an issue to let people know you're working on it.
|
||||
|
||||
## License
|
||||
|
||||
|
||||
Reference in New Issue
Block a user