Changes

Jump to: navigation, search

Translation environment4

950 bytes added, 05:54, 8 January 2017
How it works
{{man note|Current|This page describes the current translation environment used for Gramps '''4.0.x''' to Gramps master.}}
==How it worksUsage==
* Recommended way: python, ElementTree[http://docs.python.org/library/xml.etree.elementtree.html] and xgettext[http://www.gnu.org/savannah-checkouts/gnu/gettext/manual/html_node/xgettext-Invocation.html]
python update_po.py -h
python update_po.py --help
usage: update_po.py [-h] [-t] [-x] [-g] [-c] [-p] [-m {all, xx.po}] [-k {all, xx.po}] [-u {xx.po}] [-f {xx.po}]
 
This program generates a new template and also provides some common features.
 
optional arguments:
-h, --help show this help message and exit
-t, --test test if 'python' and 'gettext' are properly installed
-x, --xml extract messages from xml based file formats
-g, --glade extract messages from glade file format only
-c, --clean remove created files
-p, --pot create a new catalog
 
Update:
Maintenance around translations
-m merge lang.po files with last catalog
-k check lang.po files
 
Translation:
Display content of translations file
-u list untranslated messages
-f list fuzzy messages
 
python update_po.py [options]

Navigation menu