summaryrefslogtreecommitdiff
path: root/atk/atkobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'atk/atkobject.c')
-rwxr-xr-xatk/atkobject.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/atk/atkobject.c b/atk/atkobject.c
index 261da36..f29cee7 100755
--- a/atk/atkobject.c
+++ b/atk/atkobject.c
@@ -1154,6 +1154,17 @@ G_CONST_RETURN gchar*
atk_role_get_localized_name (AtkRole role)
{
G_CONST_RETURN gchar *name;
+ gboolean gettext_initialized = FALSE;
+
+#ifdef ENABLE_NLS
+ if (!gettext_initialized)
+ {
+ bindtextdomain (GETTEXT_PACKAGE, ATKLOCALEDIR);
+#ifdef HAVE_BIND_TEXTDOMAIN_CODESET
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+#endif
+ }
+#endif
switch (role)
{