Re: Very common i18n issue...



On Mon, 13 May 2002, Zbigniew Chyla wrote:
> Please DO NOT put _() around empty strings. Either make string non-empty or
> don't mark it for translation.

Just to clarify, if anyone wonders *why* this is, it's because the empty
string is always used as the msgid key for the po file header.
So when an app uses gettext on the empty string, it will get the giant po
header message blurb back as the "translation", which may not be what's
expected.


Christian




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