| 1 |
Merkaartor currently uses Qt Linguist and Transifex to translate stuff. Although |
| 2 |
you might be tempted to change translations in git repo directly, please don't. |
| 3 |
Translation files are meant to be updated via Transifex.com only, and pulled |
| 4 |
into the repository before version release. |
| 5 |
|
| 6 |
The regular workflow is: |
| 7 |
|
| 8 |
0) From time to time, update translation files on Transifex: |
| 9 |
|
| 10 |
$ lupdate src plugins -ts translations/*.ts |
| 11 |
$ tx push -s |
| 12 |
|
| 13 |
This pushes the original english strings to Transifex, updating the database and |
| 14 |
allowing new strings to be downloaded. |
| 15 |
|
| 16 |
1) Before release, Transifex data should be pulled and committed into the |
| 17 |
repository. This is not necessary, but serves as a backup in case something |
| 18 |
terrible happens to Transifex. |
| 19 |
|
| 20 |
$ tx pull |
| 21 |
$ git commit translations/*.ts |
| 22 |
|
| 23 |
2) During release, the regular qt tools are used to bundle translations. Care |
| 24 |
should be taken to include new translations in Merkaartor.pro, so the .qm files |
| 25 |
get generated properly. A language list should be also updated in [1] to |
| 26 |
reflect newly added language and translation status (poorly translated |
| 27 |
languages are marked). |
| 28 |
|
| 29 |
|
| 30 |
[1] src/Preferences/PreferencesDialog.cpp |