Gettext/msgcmp-Invocation
Next: msgattrib Invocation, Previous: msgcomm Invocation, Up: Manipulating [Contents][Index]
9.7 Invoking the msgcmp
Program
msgcmp [option] def.po ref.pot
The msgcmp
program compares two Uniforum style .po files to check that
both contain the same set of msgid strings. The def
.po file is an
existing PO file with the translations. The ref
.pot file is the last
created PO file, or a PO Template file (generally created by xgettext
).
This is useful for checking that you have translated each and every message
in your program. Where an exact match cannot be found, fuzzy matching is
used to produce better diagnostics.
9.7.1 Input file location
- ‘
def.po
’ Translations.
- ‘
ref.pot
’ References to the sources.
- ‘
-D directory
’
‘--directory=directory
’ Add
directory
to the list of directories. Source files are searched relative to this list of directories.
9.7.2 Operation modifiers
- ‘
-m
’
‘--multi-domain
’ Apply
ref
.pot to each of the domains indef
.po.- ‘
-N
’
‘--no-fuzzy-matching
’ Do not use fuzzy matching when an exact match is not found. This may speed up the operation considerably.
- ‘
--use-fuzzy
’ Consider fuzzy messages in the
def
.po file like translated messages. Note that using this option is usually wrong, because fuzzy messages are exactly those which have not been validated by a human translator.- ‘
--use-untranslated
’ Consider untranslated messages in the
def
.po file like translated messages. Note that using this option is usually wrong.
9.7.3 Input file syntax
- ‘
-P
’
‘--properties-input
’ Assume the input files are Java ResourceBundles in Java
.properties
syntax, not in PO file syntax.- ‘
--stringtable-input
’ Assume the input files are NeXTstep/GNUstep localized resource files in
.strings
syntax, not in PO file syntax.
9.7.4 Informative output
- ‘
-h
’
‘--help
’ Display this help and exit.
- ‘
-V
’
‘--version
’ Output version information and exit.
Next: msgattrib Invocation, Previous: msgcomm Invocation, Up: Manipulating [Contents][Index]