Go to the first, previous, next, last section, table of contents.
msgfmt
ProgramUsage: msgfmt [option] filename.po ...
msgid
and msgstr
strings are
studied and compared. It is considered abnormal that one string
starts or ends with a newline while the other does not.
Also, if the string represents a format sring used in a
printf
-like function both strings should have the same number of
`%' format specifiers, with matching types. If the flag
c-format
or possible-c-format
appears in the special
comment #, for this entry a check is performed. For example, the
check will diagnose using `%.*s' against `%s', or `%d'
against `%s', or `%d' against `%x'. It can even handle
positional parameters.
Normally the xgettext
program automatically decides whether a
string is a format string or not. This algorithm is not perfect,
though. It might regard a string as a format string though it is not
used in a printf
-like function and so msgfmt
might report
errors where there are none. Or the other way round: a string is not
regarded as a format string but it is used in a printf
-like
function.
So solve this problem the programmer can dictate the decision to the
xgettext
program (see section Special Comments preceding Keywords). The translator should not
consider removing the flag from the #, line. This "fix" would be
reversed again as soon as msgmerge
is called the next time.
If input file is `-', standard input is read. If output file is `-', output is written to standard output.
Go to the first, previous, next, last section, table of contents.