mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-15 19:04:57 +01:00
Adding another line for the explanation of localization mechanism
This commit is contained in:
parent
42ebe9e671
commit
b9fc323a58
1 changed files with 11 additions and 1 deletions
12
README.md
12
README.md
|
@ -86,7 +86,17 @@ Example:
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
2. Add, into the directory **levels**, the directory with the levels do you want to adding (es. ./levels/fr_FR/LIVELLI )
|
2. Add, into the directory **levels**, the directory with the levels do you want to adding (es. ./levels/fr_FR/LIVELLI )
|
||||||
1. Add, the localization into the dictionary game.langs (es. `var langs = {0: "en_EN", 1: "it_IT", 2: "es_ES"}` the first and default localization it must be en_EN
|
3. Add, the localization into the dictionary game.langs (es. `var langs = {0: "en_EN", 1: "it_IT", 2: "es_ES"}` the first and default localization it must be en_EN
|
||||||
|
4. Add column of specific locale and relative traductions for avery keys in the file ./resource/localization.csv
|
||||||
|
```
|
||||||
|
Example:
|
||||||
|
|
||||||
|
keys,en,it,es
|
||||||
|
LEVELS,Livels,Livelli,niveles
|
||||||
|
QUIT,Quit,Esci,Salir
|
||||||
|
BACK,Back,Indietro,Espalda
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
If one or more localizations in the descriptions of cards are missing and levels require that card, the game crashes!
|
If one or more localizations in the descriptions of cards are missing and levels require that card, the game crashes!
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue