diff options
Diffstat (limited to 'libdocument')
-rw-r--r-- | libdocument/ev-document.h | 7 | ||||
-rw-r--r-- | libdocument/ev-init.c | 7 |
2 files changed, 4 insertions, 10 deletions
diff --git a/libdocument/ev-document.h b/libdocument/ev-document.h index 7fb1bf2f..67f53abb 100644 --- a/libdocument/ev-document.h +++ b/libdocument/ev-document.h @@ -27,6 +27,9 @@ #ifndef EV_DOCUMENT_H #define EV_DOCUMENT_H +#include <config.h> +#include <glib/gi18n-lib.h> + #include <glib-object.h> #include <glib.h> #include <gmodule.h> @@ -277,10 +280,6 @@ register_atril_backend (GTypeModule *module) \ (GInstanceInitFunc) backend_name##_init \ }; \ \ - /* Initialise the i18n stuff */ \ - bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); \ - bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); \ - \ g_define_type_id = g_type_module_register_type (module, \ EV_TYPE_DOCUMENT, \ #BackendName, \ diff --git a/libdocument/ev-init.c b/libdocument/ev-init.c index 15cb555e..21aca668 100644 --- a/libdocument/ev-init.c +++ b/libdocument/ev-init.c @@ -38,8 +38,7 @@ ev_get_locale_dir (void) /** * ev_init: * - * Initializes the atril document library, and binds the atril - * gettext domain. + * Initializes the atril document library. * * You must call this before calling any other function in the atril * document library. @@ -54,10 +53,6 @@ ev_init (void) if (ev_init_count++ > 0) return have_backends; - /* set up translation catalog */ - bindtextdomain (GETTEXT_PACKAGE, ev_get_locale_dir ()); - bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); - _ev_debug_init (); _ev_file_helpers_init (); have_backends = _ev_backends_manager_init (); |