File: README.translators

package info (click to toggle)
devilspie2 0.20-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 208 kB
  • sloc: ansic: 1,097; makefile: 121; xml: 28
file content (66 lines) | stat: -rw-r--r-- 1,992 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66


Information for new translators
-------------------------------

Starting fresh
--------------

Get a copy of the devilspie2 sources, and create a devilspie2.pot file in the po
folder:

cd po
make devilspie2.pot

Then generate a po file for your language using msginit:

msginit --input=devilspie2.pot

This copies the devilspie2.pot to [LANGUAGE ABBREV].po, (it replaces
[LANGUAGE ABBREV] with the correct abbreviation for your language, e.g. 'sv'
if you are translating into Swedish) and fills it with information that it gets
from your system.

Then start translating all strings in the generated po file using your favourite
texteditor, or a "gettext catalogs (.po files) editor" like poedit (which can be
found at http://www.poedit.net.)


Checking your translation for errors and completeness
-----------------------------------------------------

   msgfmt -c --statistics sv.po -o /dev/null

Checks the file for errors, and outputs the result statistics to stdout, and
other output to /dev/null ("Other output" is of no use if just checking for
errors.)



Building Devilspie2 with your translation included
--------------------------------------------------

Edit the Makefile in the po folder to include your translation under the
LANGUAGES variable listing.
Then build devilspie2 as usual with make and install using make install as root.


Updating your translation
-------------------------

When it is time to update your translation, get the latest git version of
devilspie2, and then do the following:

cd po
rm devilspie2.pot
make devilspie2.pot

Next issue the following command to update your po file:

   msgmerge --update sv.po devilspie2.pot

Then open your file and locate the strings that need updating. To get the
translation to me you can fork devilspie2 on github, do the translation, and
make a pull request to me, which I will merge into my devilspie2 repository.
Please use English language in your commit messages so that I can understand
what you have done.