mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
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
This commit is contained in:
parent
36fda88e84
commit
8f98233aff
@ -1,3 +1,8 @@
|
||||
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user