| 1 |
How to add a new translation to CsoundQt |
| 2 |
======================================== |
| 3 |
|
| 4 |
|
| 5 |
1. In qcs.pro (around line 134), add a line like |
| 6 |
"src/translations/qutecsound_fa.ts" |
| 7 |
|
| 8 |
2. In QtCreator, run |
| 9 |
Tools > Externals > Linguist > update translations |
| 10 |
You should now find a file named qutecound_fa.ts in src/translations |
| 11 |
|
| 12 |
3. After the translator has been filled out this file with help of the QtLinguist, |
| 13 |
save it in src/translations and run in QtCreator |
| 14 |
Tools > Externals > Linguist > release translations |
| 15 |
This should create the .qm file related to the .ts file. |
| 16 |
|
| 17 |
4. In src/application.qrc (around line 145), insert a line like |
| 18 |
<file>translations/qutecsound_fa.qm</file> |
| 19 |
|
| 20 |
5. In src/qutecsound.cpp (around line 2534) add the translator, like |
| 21 |
text += tr("Persian translation: Amin Khoshsabk") + "<br />"; |
| 22 |
|
| 23 |
6. In src/configlists.cpp add the language name und the language code (around line 54) |
| 24 |
|
| 25 |
|
| 26 |
For updating an already existing translation, perform step 2 and 3 |