update localization instructions

This commit is contained in:
Ash Monty 2022-08-31 21:52:14 +02:00
commit 2daa809b0f
No known key found for this signature in database
GPG key ID: 740B7C88251D49B6

View file

@ -17,10 +17,7 @@ The following is a guide designed to help new developers get a feel for how best
[Contributing](#contributing)
* [Getting started](#getting-started)
* [Contributing to PRUDP, NEX, or services](#contributing-to-prudp-nex-or-services)
[Localization](#localization)
* [Localization guidelines](#localization-guidelines)
* [Localizing the website](#localizing-the-website)
* [Localization](#localization)
## Code of Conduct
@ -116,39 +113,9 @@ If using Cemu, follow the [Cemu online play guide](http://compat.cemu.info/wiki/
## Localization
### Localization guidelines
To help with localizing Pretendo Network to your language, head over to our [Weblate](https://hosted.weblate.org/projects/pretendonetwork/)!
- Meaning is more important than a 1:1 translation! If a sentence sounds weird in your language, you are not only allowed, but advised to change that to sound better, as long as it keeps the original meaning.
- If you aren't sure about a translation for a word or idiom, ask in the [#localization channel in the Discord server](https://discord.gg/egYeXEvzYv): someone who speaks your language might be able to help you.
### Localizing the website
At the time of writing the only part of the project ready to be localized is the [main website](https://www.pretendo.network).
To localize the website, translate the contents of the [`US_en.json`](https://github.com/PretendoNetwork/website/blob/dev/locales/US_en.json) file from `/locales` into a file named REGION_language.json (e.g. `UK_en.json`, `IT_it.json`, `DE_de.json`, etc.).
Make sure to translate the strings from the working branch ([dev](https://github.com/PretendoNetwork/website/tree/dev)) and not the release branch ([master](https://github.com/PretendoNetwork/website/tree/master)), as the ones in the master branch are likely to be outdated.
When you're translating the json file, make sure to only edit the correct strings!
This example snippet should give you a general idea of what to edit:
```JSON
{
"faq": {
"title": "Edit this text",
"text": "Edit this text",
"QAs": [
{
"question": "Edit this text",
"answer": "Edit this text"
}
]
}
}
```
You should keep proper names or links unchanged.
You can then test your json file [here](https://pretendo.network/localization).
* * *
## Attribution