Don't translate empty strings. (#326200, Christian Stimming)

2006-01-08  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkactiongroup.c (dgettext_swapped): Don't translate
        empty strings.  (#326200, Christian Stimming)
This commit is contained in:
Matthias Clasen
2006-01-08 23:25:14 +00:00
committed by Matthias Clasen
parent a7a85ac867
commit ed565c27ba
3 changed files with 15 additions and 1 deletions

View File

@ -1037,7 +1037,11 @@ static gchar *
dgettext_swapped (const gchar *msgid,
const gchar *domainname)
{
return dgettext (domainname, msgid);
/* Pass through dgettext if and only if msgid is nonempty. */
if (msgid && *msgid)
return dgettext (domainname, msgid);
else
return (gchar*) msgid;
}
/**