summaryrefslogtreecommitdiffstats
path: root/src/PYMain.cc
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-12-23 13:23:25 +0800
committerPeng Wu <alexepico@gmail.com>2016-12-23 14:11:17 +0800
commit27aa99000d3a49ff690694dbb4c3f5cc2eff0767 (patch)
tree5d403dc1476d622c542bb30132ad12e7db83888b /src/PYMain.cc
parent58353eb49f56ce43d7cdbb73c01aafa37a44b715 (diff)
downloadibus-libpinyin-27aa99000d3a49ff690694dbb4c3f5cc2eff0767.tar.gz
ibus-libpinyin-27aa99000d3a49ff690694dbb4c3f5cc2eff0767.tar.xz
ibus-libpinyin-27aa99000d3a49ff690694dbb4c3f5cc2eff0767.zip
fixes localedir option for configure
Diffstat (limited to 'src/PYMain.cc')
-rw-r--r--src/PYMain.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/PYMain.cc b/src/PYMain.cc
index 3c44fb3..4babc5b 100644
--- a/src/PYMain.cc
+++ b/src/PYMain.cc
@@ -25,6 +25,7 @@
#include <ibus.h>
#include <stdlib.h>
#include <locale.h>
+#include <libintl.h>
#include "PYEngine.h"
#include "PYPointer.h"
#include "PYBus.h"
@@ -165,6 +166,10 @@ main (gint argc, gchar **argv)
setlocale (LC_ALL, "");
+ bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
+ bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
+ textdomain(GETTEXT_PACKAGE);
+
context = g_option_context_new ("- ibus pinyin engine component");
g_option_context_add_main_entries (context, entries, "ibus-libpinyin");