Converts XLIFF localization files to Gettext PO files. XLIFF is the XML Localization Interchange File Format developed by OASIS (Organization for the Advancement of Structured Information Standards) to allow translation work to be standardised no matter what the source format and to allow the work to be freely moved from tool to tool.
po2xliff [options] <po> <xliff>
xliff2po [options] <xliff> <po>
Where:
<po> |
is a PO file or directory of PO files |
<xliff> |
is an XLIFF file or directory of XLIFF files |
Options (xliff2po):
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 xliff format
exclude names matching EXCLUDE from input paths
write to OUTPUT in po, pot formats
skip conversion if the output file has newer timestamp
output PO Templates (.pot) rather than PO files (.po)
what to do with duplicate strings (identical source text): merge, msgctxt (default: ‘msgctxt’)
Options (po2xliff):
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 po, pot formats
exclude names matching EXCLUDE from input paths
write to OUTPUT in xliff format
read from TEMPLATE in xliff format
skip conversion if the output file has newer timestamp
xliff2po -P xliff pot
Create POT files from the XLIFF files found in directory xliff and output them to the directory pot
po2xliff xh xh-xlf
Convert the Xhosa PO files in xh to XLIFF and place them in xh-xlf
This filter is not yet extensively used… expect bugs. See XLIFF to see how well our implementation conforms to the standard.
The PO plural implementation is still very new and needs active testing.