From b9fc323a58f8c1a622efd8725db8d0b4017625d9 Mon Sep 17 00:00:00 2001 From: Luca Canali Date: Thu, 16 Sep 2021 18:56:27 +0200 Subject: [PATCH] Adding another line for the explanation of localization mechanism --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3f2cb6a..88ba387 100644 --- a/README.md +++ b/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 ) -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!