Bug 503071 – Application direction changes to right to left even if
2008-06-11 Behdad Esfahbod <behdad@gnome.org> Bug 503071 – Application direction changes to right to left even if theres no translation * configure.in: Bump glib requirement. * gtk/gtkaccellabel.c (_gtk_accel_label_class_get_accelerator_label): * gtk/gtkactiongroup.c (dgettext_swapped): * gtk/gtkbuilder.c (gtk_builder_class_init): * gtk/gtkbuilderparser.c (_dpgettext), (_gtk_builder_parser_translate): * gtk/gtkfilechooserdefault.c (list_size_data_func): * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems): * gtk/gtkintl.h: * gtk/gtkmain.c (setlocale_initialization), (do_pre_parse_initialization), (gettext_initialization): * gtk/gtkstock.c (gtk_stock_lookup), (sgettext_swapped): Use g_dgettext() and g_dngettext(). svn path=/trunk/; revision=20358
This commit is contained in:
committed by
Behdad Esfahbod
parent
98fbada587
commit
d76e3d552e
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@ -417,7 +417,7 @@ static const GtkStockItem builtin_items [] =
|
||||
* a stock item.
|
||||
*
|
||||
* If no function is registered for a translation domain,
|
||||
* dgettext() is used.
|
||||
* g_dgettext() is used.
|
||||
*
|
||||
* Since: 2.8
|
||||
*
|
||||
@ -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