Converts Android resource files to Gettext PO format.
android2po [options] <android> <po>
Where:
<android> |
is a valid Android resource file or directory of those files |
<po> |
is a directory of PO or POT files |
show program’s version number and exit
show this help message and exit
output a manpage based on the help
show progress as: dots, none, bar, names, verbose
show errorlevel as: none, message, exception, traceback
read from INPUT in xml format
exclude names matching EXCLUDE from input paths
write to OUTPUT in po, pot formats
read from TEMPLATE in xml format
skip conversion if the output file has newer timestamp
what to do with duplicate strings (identical source text): merge, msgctxt (default: ‘msgctxt’)
These examples demonstrate the use of android2po:
android2po -i strings-en.xml -o en.po
to simply convert strings-en.xml to en.po.
To convert a source and target Android resources files into a PO file:
android2po -t strings-en.xml -i strings-ca.xml -o ca.po
strings-en.xml contains the template resource and strings-ca.xml the localised resource strings.