Bug #617439 - Fix translation of birthday and anniversary events
authorGert Michael Kulyk <gkulyk@yahoo.de>
Sat, 22 May 2010 19:00:02 +0000 (21:00 +0200)
committerMatthew Barnes <mbarnes@redhat.com>
Sat, 29 May 2010 19:54:29 +0000 (15:54 -0400)
calendar/libedata-cal/Makefile.am
calendar/libedata-cal/e-data-cal-factory.c

index 7bd113b..e76324d 100644 (file)
@@ -104,6 +104,7 @@ e_calendar_factory_CPPFLAGS = \
        $(AM_CPPFLAGS)                                  \
        -DG_LOG_DOMAIN=\"libedata-cal\"                 \
        -DE_PRGNAME=\"e-calendar-factory\"              \
+       -DEVOLUTION_LOCALEDIR=\"$(localedir)\"          \
        -I$(top_srcdir)                                 \
        -I$(top_builddir)                               \
        -I$(top_srcdir)/calendar                        \
index f3b5f99..efc19c9 100644 (file)
@@ -24,6 +24,7 @@
  */
 
 #include <config.h>
+#include <locale.h>
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
@@ -705,6 +706,10 @@ main (gint argc, gchar **argv)
        DBusGProxy *bus_proxy;
        guint32 request_name_ret;
        EOfflineListener *eol;
+       
+       setlocale (LC_ALL, "");
+       bindtextdomain (GETTEXT_PACKAGE, EVOLUTION_LOCALEDIR);
+       bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
 
        g_type_init ();
        g_set_prgname (E_PRGNAME);