summaryrefslogtreecommitdiff
path: root/www/lang/README.md
blob: 75e86e2bb49547172d6358837ff0d896b8d9c9e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
####Main Language file
* Make sure there is no comma after the last element
* Comments are not allowed
* Make sure you don't add ellipsis "..." anywhere, they are added to messages in code when needed
* After you complete the translation file, do the following:

(replace ``-it`` with the language you are working on)

``
./checklang.py -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,

``
./checklang.py -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


####Translating Help language file
* Located inside lang/help
* Please be careful not to mess up the html tags, please only focus on text translation


####How to recognize a new language:
(This is only for zmNinja developers. Not relevant for language translators)
* Modify languages array in DataModel.js
* register language glob code in app.js - make sure its added to array list and mapping