[xliff-tools] Re: The PO flag discussion (no-c-format this time)

Bruno Haible bruno at clisp.org
Mon May 9 05:04:53 PDT 2005


Asgeir Frimannsson wrote:
> Continuing our discussion on flags, is it correct that 'no-c-format' (or
> other no-X-format) type flags can only be added by developers when
> overriding c-format flags? As in, the Gettext tools does never
> automatically add this flag according to some set rules, it has to be
> manually set by a comment like:
>
>      /* xgettext: no-c-format */
>
> If so, am I right in saying that this flag has no specific function in
> Gettext (other than for the purpose of overriding a c-format flag), and it
> would be the same as not having the flag at all in the PO file?
>
> As in:
>
> #, no-c-format
> msgid "I'm 100% correct"
> msgstr ""
>
> and
>
> # no flag here
> msgid "I'm 100% correct"
> msgstr ""
>
> are identical, and Gettext never cares about the no-c-format flag after the
> PO file is written?

This is all correct. This flag is actually not used in POT and PO files.
xgettext could just as well not emit it into the POT file.

Bruno



More information about the xliff-tools mailing list