Commit 8f98233a authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Support old-style message contexts, too.

2007-07-08  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkbuilderparser.c (pgettext): Support old-style
        message contexts, too.



svn path=/trunk/; revision=18405
parent 36fda88e
2007-07-08 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkbuilderparser.c (pgettext): Support old-style
message contexts, too.
2007-07-08 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtk-builder-convert: Improve the way properties
......
......@@ -865,10 +865,17 @@ dpgettext (const char *domain,
translation = dgettext (domain, msg_ctxt_id);
if (translation != msg_ctxt_id)
return translation;
if (translation == msg_ctxt_id)
{
/* try the old way of doing message contexts, too */
msg_ctxt_id[msgctxt_len - 1] = '|';
translation = dgettext (domain, msg_ctxt_id);
if (translation == msg_ctxt_id)
return msgid;
}
return msgid;
return translation;
}
/* Called for character data */
......
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