| 1 |
# |
| 2 |
# Copyright © 2011-2015 Andreas Rönnquist. |
| 3 |
# This file is distributed under the same license |
| 4 |
# as the devilspie2 package, see COPYING file. |
| 5 |
# |
| 6 |
|
| 7 |
|
| 8 |
Information for new translators |
| 9 |
------------------------------- |
| 10 |
|
| 11 |
Starting fresh |
| 12 |
-------------- |
| 13 |
|
| 14 |
Get a copy of the devilspie2 sources, and if a devilspie2.pot isn't availible |
| 15 |
in the po folder, create one: |
| 16 |
|
| 17 |
cd po |
| 18 |
make devilspie2.pot |
| 19 |
|
| 20 |
When you have made sure you have a devilspie2.pot, generate a po file for your |
| 21 |
language using msginit: |
| 22 |
|
| 23 |
msginit --input=devilspie2.pot |
| 24 |
|
| 25 |
This copies the devilspie2.pot to [LANGUAGE ABBREV].po, (it replaces |
| 26 |
[LANGUAGE ABBREV] with the correct abbreviation for your language, e.g. 'sv' |
| 27 |
if you are translating into Swedish) and fills it with information that it gets |
| 28 |
from your system. |
| 29 |
|
| 30 |
Then start translating all strings in the generated po file using your |
| 31 |
favourite texteditor, or a "gettext catalogs (.po files) editor" like poedit |
| 32 |
(which can be found at http://www.poedit.net.) |
| 33 |
|
| 34 |
|
| 35 |
Checking your translation for errors and completeness |
| 36 |
----------------------------------------------------- |
| 37 |
|
| 38 |
msgfmt -c --statistics sv.po -o /dev/null |
| 39 |
|
| 40 |
Checks the file (in this example sv.po) for errors, and outputs the result |
| 41 |
statistics to stdout, and other output to /dev/null ("Other output" is of no |
| 42 |
use if just checking for errors.) |
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
Building Devilspie2 with your translation included |
| 47 |
-------------------------------------------------- |
| 48 |
|
| 49 |
Edit the Makefile in the po folder to include your translation under the |
| 50 |
LANGUAGES variable listing. |
| 51 |
Then build devilspie2 as usual with make and install using make install as root. |
| 52 |
|
| 53 |
|
| 54 |
Updating your translation |
| 55 |
------------------------- |
| 56 |
|
| 57 |
When it is time to update your translation, you update your language po file |
| 58 |
from the content of the devilspie2.pot file (in this example the language is |
| 59 |
Swedish, and the po is called sv.po): |
| 60 |
|
| 61 |
msgmerge --update sv.po devilspie2.pot |
| 62 |
|
| 63 |
I will provide you all with an updated devilspie2.pot in the git repository |
| 64 |
before each release, but if you would like to generate it yourself, just |
| 65 |
get the latest git version of devilspie2, and then do the following: |
| 66 |
|
| 67 |
cd po |
| 68 |
rm devilspie2.pot |
| 69 |
make devilspie2.pot |
| 70 |
|
| 71 |
and then update your po file as described above. |
| 72 |
|
| 73 |
Open your file and locate the strings that need updating. To get the |
| 74 |
translation to me you can fork devilspie2 on github, do the translation, and |
| 75 |
send a pull request to me, which I will merge into my devilspie2 repository. |
| 76 |
Please use English language in your commit messages so that I can understand |
| 77 |
what you have done. |