Compile PO or XLIFF files into MO (Machine Object) files. MO files are installed on your computer and allow a Gettext enabled computer to provide the translations for the application.
pocompile <po> <mo>
Where:
<po/xliff> |
is a standard PO file, XLIFF file or directory |
<mo> |
is the output MO file or directory of MO files |
Options:
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 xlf, po, pot formats
exclude names matching EXCLUDE from input paths
write to OUTPUT in mo format
skip conversion if the output file has newer timestamp
use translations marked fuzzy
don’t use translations marked fuzzy (default)
pocompile --fuzzy file.po file.mo
Creates a new MO file called file.mo based on the translation in the PO file
file.po. By using the --fuzzy
option we use all translations
including those marked fuzzy.
pocompile file.xlf file.mo
Create an MO file from an XLIFF file called file.xlf (available from version 1.1 of the toolkit).