[evolution-kolab] EMailConfigKolabBackend: bind translation text domain on module load



commit 9b0735a03998539e0357e9054a7d44d41a98d177
Author: Christian Hilberg <hilberg kernelconcepts de>
Date:   Tue Sep 4 11:45:43 2012 +0200

    EMailConfigKolabBackend: bind translation text domain on module load

 src/configuration/Makefile.am                   |    1 +
 src/configuration/e-mail-config-kolab-backend.c |    4 +++-
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/configuration/Makefile.am b/src/configuration/Makefile.am
index 64599c5..fed7d12 100644
--- a/src/configuration/Makefile.am
+++ b/src/configuration/Makefile.am
@@ -3,6 +3,7 @@ NULL =
 evo_module_LTLIBRARIES = module-kolab-configuration.la
 
 module_kolab_configuration_la_CPPFLAGS = \
+	-DKOLAB_LOCALEDIR=\"$(localedir)\" \
 	$(AM_CPPFLAGS) \
 	-I$(top_srcdir) \
 	-I$(top_srcdir)/src \
diff --git a/src/configuration/e-mail-config-kolab-backend.c b/src/configuration/e-mail-config-kolab-backend.c
index a86fa90..db5ac22 100644
--- a/src/configuration/e-mail-config-kolab-backend.c
+++ b/src/configuration/e-mail-config-kolab-backend.c
@@ -320,6 +320,9 @@ e_mail_config_kolab_backend_class_finalize (EMailConfigKolabBackendClass *class)
 static void
 e_mail_config_kolab_backend_init (EMailConfigKolabBackend *backend)
 {
+	bindtextdomain (GETTEXT_PACKAGE, KOLAB_LOCALEDIR);
+	bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+	
 	backend->priv = E_MAIL_CONFIG_KOLAB_BACKEND_GET_PRIVATE (backend);
 }
 
@@ -331,4 +334,3 @@ e_mail_config_kolab_backend_type_register (GTypeModule *type_module)
 	 *     order to register types from a separate compilation unit. */
 	e_mail_config_kolab_backend_register_type (type_module);
 }
-



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]