| 1 |
Translating PinEntry X2Go |
| 2 |
========================= |
| 3 |
|
| 4 |
Translating with Qt Linguist |
| 5 |
---------------------------- |
| 6 |
|
| 7 |
PinEntry X2Go uses Quick Translation mechanism (.qm, .ts files). |
| 8 |
The translation files can be found in the pinentry-x2go folder of this source project. |
| 9 |
|
| 10 |
|
| 11 |
New team member -- new language for PinEntry X2Go |
| 12 |
------------------------------------------------- |
| 13 |
If you are a new member in the x2go-i18n team, the first we say is: WELCOME!!! and |
| 14 |
THANKS!!! for the time you give to the X2Go project. |
| 15 |
|
| 16 |
And, if you are new to the team and language files for the language you want to feel |
| 17 |
responsible for do not yet exist, please subscribe to this mailing list first: |
| 18 |
|
| 19 |
http://lists.x2go.org/listinfo/x2go-i18n |
| 20 |
|
| 21 |
Once you are subscribed, send an email to |
| 22 |
|
| 23 |
[email protected] |
| 24 |
|
| 25 |
that explains your willingness to translate this-and-that language. |
| 26 |
|
| 27 |
The developers will then provide a language file for you in the above mentioned /po |
| 28 |
folder. |
| 29 |
|
| 30 |
|
| 31 |
Git cloning |
| 32 |
----------- |
| 33 |
Next thing to do is to obtained the latest sources from X2Go Git. |
| 34 |
|
| 35 |
$ # git needs to be installed, on Debian/Ubuntu this is |
| 36 |
$ aptitude install git # <----for debian |
| 37 |
$ sudo apt-get install git # <----for ubuntu |
| 38 |
$ # then checkout the code |
| 39 |
$ git clone git://code.x2go.org/pinentry-x2go.git |
| 40 |
|
| 41 |
In your current working directory there should now be a subfolder named ,,pinentry-x2go''. |
| 42 |
|
| 43 |
|
| 44 |
Creating Your Language File |
| 45 |
--------------------------- |
| 46 |
First, copy the file pinentry-x2go_de.ts, for instance via the terminal. |
| 47 |
|
| 48 |
You can do this by running the following commands: |
| 49 |
|
| 50 |
1. cd pinentry-x2go/ |
| 51 |
|
| 52 |
2. cp pinentry-x2go_de.ts "pinentry-x2go_da.ts <or what language you're going to translate it into>". |
| 53 |
|
| 54 |
Now, the file is ready for editing to your desired language. |
| 55 |
|
| 56 |
|
| 57 |
Editing Your Language File |
| 58 |
-------------------------- |
| 59 |
The tool needed for editing qt translation files is ,,linguist-qt5'' (nowadays also called just linguist). |
| 60 |
|
| 61 |
$ open Ubuntu Software Center, search for ,,Qt Linguist'' and install it from there # <--for ubuntu |
| 62 |
|
| 63 |
Now open your language file in <current_dir>/pinentry-x2go/pinentry-x2go_<lang>.ts and edit it with |
| 64 |
linguist-qt5. |
| 65 |
|
| 66 |
NOTE: Make sure you translate all boldly marked items: non-translated as well as fuzzy |
| 67 |
(i.e., inaccurate) items. |
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
Sending in the Translation File |
| 72 |
------------------------------- |
| 73 |
When done, please send the complete translation file |
| 74 |
|
| 75 |
<current_dir>/pinentry-x2go/pinentry-x2go_<lang>.ts |
| 76 |
|
| 77 |
to [email protected] and remove your working copy of PinEntry X2Go from |
| 78 |
your system (or read how to use Git and keep the folder.) |
| 79 |
|
| 80 |
|
| 81 |
Next time... |
| 82 |
------------ |
| 83 |
You will get informed on x2go-i18n if a translation update is necessary. So check |
| 84 |
your mails there regularly. |
| 85 |
|
| 86 |
For updating a translation, either keep the PinEntry X2Go source project folder and |
| 87 |
read more about Git by yourself. |
| 88 |
|
| 89 |
Alternatively, just remove the folder (once you have sent in the translation file) |
| 90 |
and start with this documentation all over again. |
| 91 |
|
| 92 |
THANKS AGAIN FOR YOUR TIME!!! |
| 93 |
|
| 94 |
light+love, |
| 95 |
|
| 96 |
Mike Gabriel <[email protected]> |