update localization instructions
This commit is contained in:
parent
edac7085b4
commit
2daa809b0f
1 changed files with 3 additions and 36 deletions
|
|
@ -17,10 +17,7 @@ The following is a guide designed to help new developers get a feel for how best
|
||||||
[Contributing](#contributing)
|
[Contributing](#contributing)
|
||||||
* [Getting started](#getting-started)
|
* [Getting started](#getting-started)
|
||||||
* [Contributing to PRUDP, NEX, or services](#contributing-to-prudp-nex-or-services)
|
* [Contributing to PRUDP, NEX, or services](#contributing-to-prudp-nex-or-services)
|
||||||
|
* [Localization](#localization)
|
||||||
[Localization](#localization)
|
|
||||||
* [Localization guidelines](#localization-guidelines)
|
|
||||||
* [Localizing the website](#localizing-the-website)
|
|
||||||
|
|
||||||
## Code of Conduct
|
## Code of Conduct
|
||||||
|
|
||||||
|
|
@ -116,39 +113,9 @@ If using Cemu, follow the [Cemu online play guide](http://compat.cemu.info/wiki/
|
||||||
|
|
||||||
## Localization
|
## 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
|
## Attribution
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue