[evolution-kolab] EBookBackendKolabFactory: bind translation text domain on module load
- From: Christian Hilberg <chilberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-kolab] EBookBackendKolabFactory: bind translation text domain on module load
- Date: Tue, 4 Sep 2012 09:46:56 +0000 (UTC)
commit 0686281716593af1b2990ebf985f73d6c593cbb4
Author: Christian Hilberg <hilberg kernelconcepts de>
Date: Tue Sep 4 11:42:27 2012 +0200
EBookBackendKolabFactory: bind translation text domain on module load
src/addressbook/Makefile.am | 1 +
src/addressbook/e-book-backend-kolab-factory.c | 4 ++++
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/addressbook/Makefile.am b/src/addressbook/Makefile.am
index 2c4119d..c3a776f 100644
--- a/src/addressbook/Makefile.am
+++ b/src/addressbook/Makefile.am
@@ -16,6 +16,7 @@ noinst_HEADERS = \
kolab-util-contact.h
AM_CPPFLAGS = \
+ -DKOLAB_LOCALEDIR=\"$(localedir)\" \
$(GLIB_CFLAGS) \
$(EDS_CFLAGS) \
$(CAMEL_CFLAGS) \
diff --git a/src/addressbook/e-book-backend-kolab-factory.c b/src/addressbook/e-book-backend-kolab-factory.c
index a845a87..5e9bfe2 100644
--- a/src/addressbook/e-book-backend-kolab-factory.c
+++ b/src/addressbook/e-book-backend-kolab-factory.c
@@ -32,6 +32,7 @@
#include <glib.h>
#include <glib-object.h>
+#include <glib/gi18n-lib.h>
#include <libedata-book/libedata-book.h>
#include <libekolabutil/kolab-util-camel.h>
@@ -81,6 +82,9 @@ e_book_backend_kolab_factory_init (EBookBackendFactory *factory)
G_MODULE_EXPORT void
e_module_load (GTypeModule *type_module)
{
+ bindtextdomain (GETTEXT_PACKAGE, KOLAB_LOCALEDIR);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+
e_book_backend_kolab_factory_register_type (type_module);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]