README.translators 1.68 KB
Newer Older
1
#
2
#   Copyright (C) 2010-2017 Andreas Rönnquist
3 4 5
#   This file is distributed under the same license
#   as the sciteproj package, see COPYING file.
#
6 7 8 9 10 11 12 13 14 15 16 17 18


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

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

Get a copy of the sciteproj sources, and create a sciteproj.pot file:

cd po 
make sciteproj.pot

19
Generate a new po for your language with sciteproj.pot as input:
20

21
msginit --input=sciteproj.pot
22

23 24 25 26 27 28 29 30 31
This will read your environment, and init the translation meta information with 
values based on that info. See msginit --help for more info.

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

Note that hot-keys are illustrated with the "_" character, the character 
following "_" is  the keyboard shortcut for that menu item.
32 33 34 35 36


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

37
	msgfmt -c --statistics sv.po -o /dev/null
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59


Building SciteProj with your translation included
--------------------------------------------------

Edit the Makefile in the po folder to include your translation in the listing 
under the LANGUAGES variable.
Then build sciteproj 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 
sciteproj, and then do the following:

cd po
rm sciteproj.pot
make sciteproj.pot

Next issue the following command to update your po file:

60
	msgmerge --update sv.po sciteproj.pot
61 62
	
Then open your file and locate the strings that need updating.