diff options
author | rbuj <[email protected]> | 2021-02-08 13:36:28 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-02-10 23:58:25 +0100 |
commit | 66de6ed56647df275f2844eb6106349932991579 (patch) | |
tree | 56b68e1244af645727ece13032f2ba89fe6cb68f /libdocument | |
parent | 6b159d0665c67c3c78c2968673e24bf45c2430d2 (diff) | |
download | atril-66de6ed56647df275f2844eb6106349932991579.tar.bz2 atril-66de6ed56647df275f2844eb6106349932991579.tar.xz |
build: allow users to disable gettext support (--disable-nls)
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 (); |