| 1 |
|
| 2 |
|
| 3 |
HOW TO CREATE NEW TRANSLATION FILES FOR DJVIEW. |
| 4 |
----------------------------------------------- |
| 5 |
|
| 6 |
|
| 7 |
- Determine the language code for your language. |
| 8 |
Sometimes language codes have suffixes in capital letters |
| 9 |
for describing variants. But we always use lowercase. |
| 10 |
For instance, use 'zh_cn' or 'zh_tw' for the two variants of chinese. |
| 11 |
In the following explanation we assume 'de' for german. |
| 12 |
|
| 13 |
- Go to directory 'src' |
| 14 |
$ cd src |
| 15 |
|
| 16 |
- Add the following line into file 'djview.pro' |
| 17 |
TRANSLATIONS += djview_de.ts |
| 18 |
|
| 19 |
- Run the Qt program 'lupdate' |
| 20 |
$ lupdate djview.pro |
| 21 |
|
| 22 |
- A file named djview_de.ts must have been created. |
| 23 |
You must edit the translations using the Qt program 'linguist'. |
| 24 |
$ linguist djview_de.ts |
| 25 |
See the linguist documentation in the Qt documentation. |
| 26 |
Alternatively you can use 'kbabel' to edit the ts file. |
| 27 |
|
| 28 |
- Run the Qt program 'lrelease' |
| 29 |
$ lrelease djview.pro |
| 30 |
|
| 31 |
- You should have now a file named 'djview_de.qm'. |
| 32 |
To test your translations, type |
| 33 |
$ LANGUAGE=de ./djview |
| 34 |
|
| 35 |
- Once you are satisfied, |
| 36 |
send me your translation file 'djview_de.ts' |
| 37 |
by email ([email protected]) |
| 38 |
|
| 39 |
|
| 40 |
Thanks. |
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
CONTRIBUTORS |
| 48 |
------------ |
| 49 |
|
| 50 |
Translations for djview were contributed by: |
| 51 |
|
| 52 |
djview_cs.ts Petr Pisar <[email protected]> |
| 53 |
djview_de.ts Marc Feld <[email protected]> |
| 54 |
djview_es.ts Mike Molina <[email protected]> |
| 55 |
djview_fr.ts Leon Bottou <[email protected]> |
| 56 |
djview_ru.ts Alexander Potashev <[email protected]> |
| 57 |
djview_uk.ts Yuri Chornoivan <[email protected]> |
| 58 |
djview_pl.ts Janusz S. Bień, Tomasz Świerczek <[email protected]> |
| 59 |
djview_zh_CN/TW.ts Lee Chenhwa <[email protected]> |
| 60 |
|