diff options
| author | BoskSpb <bosk@mail.ru> | 2016-12-15 01:05:35 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-15 01:05:35 +0300 |
| commit | ebf2e82f9687110b0237245169f2ae20f18382c0 (patch) | |
| tree | ffd2f53566b2351e8c345124c47fe5a7f4509908 /www/lang/README.md | |
| parent | e2f15230ac9c4c90b483914398886c70f7d6dd04 (diff) | |
| parent | 1d9625d30bec5929164fb53b237fa4995f6991f5 (diff) | |
Merge pull request #1 from pliablepixels/master
updating
Diffstat (limited to 'www/lang/README.md')
| -rw-r--r-- | www/lang/README.md | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/www/lang/README.md b/www/lang/README.md index bf5f23f3..b2737f3c 100644 --- a/www/lang/README.md +++ b/www/lang/README.md @@ -1,6 +1,10 @@ + +If you are familiar with using git, I'd prefer if you follow the Pull Request process [here](https://github.com/pliablepixels/zmNinja/blob/master/CONTRIBUTING.md#steps-for-code-contribution). + ####Adding a new language +* Languages translations are available [here](https://github.com/pliablepixels/zmNinja/tree/master/www/lang) * To contribute a new language, add a new ``locale-xx.json`` (where `xx` is your language code). -* Ideally, you should also provide a language translation for the zmNinja help file inside ``lang/help`` +* Ideally, you should also provide a language translation for the zmNinja help file inside [lang/help](https://github.com/pliablepixels/zmNinja/tree/master/www/lang/help) The best way is to simply look at an existing language translation and follow the same model for yours. If any language translation keywords are missed, it will fallback to English. @@ -12,27 +16,18 @@ The best way is to simply look at an existing language translation and follow th (replace ``-it`` with the language you are working on) -Python 2.x: + `` ./checklang.py -f locale-it.json -b `` -Python 3.x: -`` -./checklang.py3 -f locale-it.json -b -`` This validates your JSON file, makes sure all keys are in sync with -en and if valid, creates pretty-locale-it.json. If you are sure it looks good, -Python 2.x: `` ./checklang.py -f locale-it.json -b -o `` -Python 3.x: -`` -./checklang.py3 -f locale-it.json -b -o -`` This validates your JSON file,makes sure all keys are in sync with -en and if valid, OVERWRITES your local file with a pretty formatted version, which is what you should PR |
