Commit ed565c27 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

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)
parent a7a85ac8
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]:
......
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]:
......
...@@ -1037,7 +1037,11 @@ static gchar * ...@@ -1037,7 +1037,11 @@ static gchar *
dgettext_swapped (const gchar *msgid, dgettext_swapped (const gchar *msgid,
const gchar *domainname) 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;
} }
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment