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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
HOW TO CREATE NEW TRANSLATION FILES FOR DJVIEW.
-----------------------------------------------
- Determine the language code for your language.
Sometimes language codes have suffixes in capital letters
for describing variants. But we always use lowercase.
For instance, use 'zh_cn' or 'zh_tw' for the two variants of chinese.
In the following explanation we assume 'de' for german.
- Go to directory 'src'
$ cd src
- Add the following line into file 'djview.pro'
TRANSLATIONS += djview_de.ts
- Run the Qt program 'lupdate'
$ lupdate djview.pro
- A file named djview_de.ts must have been created.
You must edit the translations using the Qt program 'linguist'.
$ linguist djview_de.ts
See the linguist documentation in the Qt documentation.
Alternatively you can use 'kbabel' to edit the ts file.
- Run the Qt program 'lrelease'
$ lrelease djview.pro
- You should have now a file named 'djview_de.qm'.
To test your translations, type
$ LANGUAGE=de ./djview
- Once you are satisfied,
send me your translation file 'djview_de.ts'
by email (leonb@users.sourceforge.net)
Thanks.
CONTRIBUTORS
------------
Translations for djview were contributed by:
djview_cs.ts Petr Pisar <petr.pisar@atlas.cz>
djview_de.ts Marc Feld <mfeld@users.sourceforge.net>
djview_es.ts Mike Molina <mmolina.unphysics@gmail.com>
djview_fr.ts Leon Bottou <leonb@users.sourceforge.net>
djview_ru.ts Alexander Potashev <aspotashev@gmail.com>
djview_uk.ts Yuri Chornoivan <yurchor@ukr.net>
djview_zh_CN/TW.ts Lee Chenhwa <leechenhwa@aim.com>
|