summaryrefslogtreecommitdiff
path: root/inputmethod/ibus-chewing/patches/patch-src_main.c
blob: 78485117cac92e220381568ad365705b291ace5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-src_main.c,v 1.3 2013/10/08 12:06:23 obache Exp $

* PKGLOCALEDIR support

--- src/main.c.orig	2012-10-22 05:32:11.000000000 +0000
+++ src/main.c
@@ -146,7 +146,7 @@ main (gint argc, gchar *argv[])
 
     /* Init i18n messages */
     setlocale (LC_ALL, "zh_TW.utf8");
-    bindtextdomain(quote_me(PROJECT_NAME), quote_me(DATA_DIR) "/locale");
+    bindtextdomain(quote_me(PROJECT_NAME), quote_me(LOCALE_DIR));
     textdomain(quote_me(PROJECT_NAME));
 
     context = g_option_context_new ("- ibus chewing engine component");