[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gettext] [RFE] Fail when a not standard concatenation is found

From: Máximo Castañeda
Subject: [bug-gettext] [RFE] Fail when a not standard concatenation is found
Date: Sat, 7 Nov 2015 14:51:34 +0100

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

[Prev in Thread] Current Thread [Next in Thread]