diff options
-rw-r--r-- | src/common/Makefile.am | 2 | ||||
-rw-r--r-- | src/common/weechat.c | 2 | ||||
-rw-r--r-- | weechat/src/common/Makefile.am | 2 | ||||
-rw-r--r-- | weechat/src/common/weechat.c | 2 |
4 files changed, 6 insertions, 2 deletions
diff --git a/src/common/Makefile.am b/src/common/Makefile.am index 743e8cb51..c2ba025b2 100644 --- a/src/common/Makefile.am +++ b/src/common/Makefile.am @@ -15,6 +15,8 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +INCLUDES = -DLOCALEDIR=\"$(datadir)/locale\" + noinst_LIBRARIES = lib_weechat_main.a lib_weechat_main_a_SOURCES = weechat.c \ diff --git a/src/common/weechat.c b/src/common/weechat.c index 632ef1c43..9a31625ff 100644 --- a/src/common/weechat.c +++ b/src/common/weechat.c @@ -231,7 +231,7 @@ main (int argc, char *argv[]) t_irc_server *ptr_server; setlocale (LC_ALL, ""); - bindtextdomain (PACKAGE, "/usr/share/locale"); + bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); /* pre-initiliaze interface */ diff --git a/weechat/src/common/Makefile.am b/weechat/src/common/Makefile.am index 743e8cb51..c2ba025b2 100644 --- a/weechat/src/common/Makefile.am +++ b/weechat/src/common/Makefile.am @@ -15,6 +15,8 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +INCLUDES = -DLOCALEDIR=\"$(datadir)/locale\" + noinst_LIBRARIES = lib_weechat_main.a lib_weechat_main_a_SOURCES = weechat.c \ diff --git a/weechat/src/common/weechat.c b/weechat/src/common/weechat.c index 632ef1c43..9a31625ff 100644 --- a/weechat/src/common/weechat.c +++ b/weechat/src/common/weechat.c @@ -231,7 +231,7 @@ main (int argc, char *argv[]) t_irc_server *ptr_server; setlocale (LC_ALL, ""); - bindtextdomain (PACKAGE, "/usr/share/locale"); + bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); /* pre-initiliaze interface */ |