5,421
edits
Changes
m
→Usage: ling to Languages portal, that has a list of language codes
{{man note|Current|This page describes the current translation environment used for Gramps '''4.0.x''' to Gramps master'''5.1.x'''.}}
==Usage==
To generate an updated translation template catalog eg:<code>gramps.pot</code>:
python update_po.py -p
Update the existing translation <code>xx.po</code> file where ''xx'' is your [[Portal:Translators|language code]]:
python update_po.py -m it.po
Merge it.po with current template.... done.
Updated file: 'updated_it.po'.
{{stub}}
The python program <code>update_po.py</code>, is a parser that uses [http://docs.python.org/library/xml.etree.elementtree.html ElementTree] and [http://www.gnu.org/savannah-checkouts/gnu/gettext/manual/html_node/xgettext-Invocation.html xgettext].
==== Alternate ways ====
* One wayUsing: intltool (perl), gettext
intltool-update -p
==See also==
* [[Translating Gramps]]
* [[Translation environment22]]
* [[Translation environment4]]
* See [[GEPS 026: Replace 'make' for Gramps build|Replace make]]. ''completed in 2012 for the release of Gramps 4.0''
[[Category:Translators/Categories]]
[[Category:Developers/General]]