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

@ -1,3 +1,8 @@
2006-01-08 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkactiongroup.c (dgettext_swapped): Don't translate
empty strings. (#326200, Christian Stimming)
2006-01-08 Matthias Clasen <mclasen@redhat.com> 2006-01-08 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentry.[hc]: * gtk/gtkentry.[hc]:

View File

@ -1,3 +1,8 @@
2006-01-08 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkactiongroup.c (dgettext_swapped): Don't translate
empty strings. (#326200, Christian Stimming)
2006-01-08 Matthias Clasen <mclasen@redhat.com> 2006-01-08 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentry.[hc]: * gtk/gtkentry.[hc]:

View File

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