diff options
author | Padraig O'Briain <padraigo@src.gnome.org> | 2002-11-04 15:10:32 +0000 |
---|---|---|
committer | Padraig O'Briain <padraigo@src.gnome.org> | 2002-11-04 15:10:32 +0000 |
commit | 5ce5b6e81f5623b3e44b3f250992a35518075072 (patch) | |
tree | 001cf5fff358d5e23acf4db62a0e785ea8e5544d /atk/atkobject.c | |
parent | 9cba5f69eff853103d868450455683783ecbd0a4 (diff) | |
download | atk-5ce5b6e81f5623b3e44b3f250992a35518075072.tar.gz |
New file
* acinclude.m4: New file
* autogen.sh: Add i18n support (copied from gtk+).
* configure.in: Add definition for atklocaledir and check for
bind_textdomain_codeset()
* atk/Makefile.am: Add DEfininition of ATKLOCALEDIR to INCLUDES
* atk/atkobject.c (atk_role_get_localized_name): Add code to
initialize i18n.
* po/.cvsignore: Add extra files.
Diffstat (limited to 'atk/atkobject.c')
-rwxr-xr-x | atk/atkobject.c | 11 |
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) { |