call g_i18n_init() in gettext_initialization(). do gettext_initialization
2008-05-11 Yair Hershkovitz <yairhr@gmail.com> * gtk/gtkmain.c: call g_i18n_init() in gettext_initialization(). do gettext_initialization only once. * gtk/gtkbuilderparser.c: use glib i18n api. removed dpgettext() as it duplicates g_dpgettext() and added _g_dpgettext() to wrap g_dpgettext with the extended functionality that was in the removed dpgettext(). * gtk/gtkaccellabelc: * gtk/gtkstock.c: * gtk/gtkimmulticontext.c: * gtk/gtkactiongroup.c: * gtk/gtkintl.h: use glib i18n api. svn path=/trunk/; revision=20091
This commit is contained in:
committed by
Yair Hershkovitz
parent
1103d790b1
commit
670775d8d8
@ -176,7 +176,7 @@ gtk_stock_lookup (const gchar *stock_id,
|
||||
if (translate != NULL && translate->func != NULL)
|
||||
item->label = (* translate->func) (item->label, translate->data);
|
||||
else
|
||||
item->label = dgettext (item->translation_domain, item->label);
|
||||
item->label = g_dgettext (item->translation_domain, item->label);
|
||||
}
|
||||
}
|
||||
|
||||
@ -457,7 +457,7 @@ sgettext_swapped (const gchar *msgid,
|
||||
{
|
||||
gchar *domainname = data;
|
||||
|
||||
return (gchar *)g_strip_context (msgid, dgettext (domainname, msgid));
|
||||
return (gchar *)g_strip_context (msgid, g_dgettext (domainname, msgid));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user