Consider this bit of C code:

#define CONFIG_FILE "/etc/should/not/do/this"

...

char *s = gettext( "Configuration options "
                   "can be changed in:\n"
                    CONFIG_FILE "\n"
                   "with no documentation." );

This is clearly documented as a no-no, but you can find it in the wild
anyway. xgettext swallows it, generating:

msgid "Configuration options can be changed in:\n"
msgstr ""

As a translator, I'd rather it errored out and refused to make the po
file until the string is well formatted for translation or not marked
as translatable.  Coders may think otherwise, of course.  Is there
currently an option to at least detect these cases?  If there's not,
would it be possible to add it (as just said, I'd prefer no option but
an error)?

Reply via email to