[evolution-kolab] ECalBackendKolabFactory: bind translation text domain on module load
- From: Christian Hilberg <chilberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-kolab] ECalBackendKolabFactory: bind translation text domain on module load
- Date: Tue, 4 Sep 2012 09:47:01 +0000 (UTC)
commit 7a536a83504306cd5fa92e33826e4755aac1c36d
Author: Christian Hilberg <hilberg kernelconcepts de>
Date: Tue Sep 4 11:45:22 2012 +0200
ECalBackendKolabFactory: bind translation text domain on module load
src/calendar/Makefile.am | 1 +
src/calendar/e-cal-backend-kolab-factory.c | 4 ++++
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/calendar/Makefile.am b/src/calendar/Makefile.am
index 2cfe811..1824cb4 100644
--- a/src/calendar/Makefile.am
+++ b/src/calendar/Makefile.am
@@ -16,6 +16,7 @@ noinst_HEADERS = \
kolab-util-calendar-cache.h
AM_CPPFLAGS = \
+ -DKOLAB_LOCALEDIR=\"$(localedir)\" \
$(GLIB_CFLAGS) \
$(EDS_CFLAGS) \
$(KOLAB_INCLUDE) \
diff --git a/src/calendar/e-cal-backend-kolab-factory.c b/src/calendar/e-cal-backend-kolab-factory.c
index 08ff549..7f3b572 100644
--- a/src/calendar/e-cal-backend-kolab-factory.c
+++ b/src/calendar/e-cal-backend-kolab-factory.c
@@ -32,6 +32,7 @@
#include <glib.h>
#include <glib-object.h>
+#include <glib/gi18n-lib.h>
#include <libedata-cal/libedata-cal.h>
#include <libekolabutil/kolab-util-camel.h>
@@ -137,6 +138,9 @@ e_cal_backend_kolab_todos_factory_init (ECalBackendFactory *factory)
G_MODULE_EXPORT void
e_module_load (GTypeModule *type_module)
{
+ bindtextdomain (GETTEXT_PACKAGE, KOLAB_LOCALEDIR);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+
e_cal_backend_kolab_events_factory_register_type (type_module);
e_cal_backend_kolab_journal_factory_register_type (type_module);
e_cal_backend_kolab_todos_factory_register_type (type_module);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]