From ab316612d5df292683b4e5e44e2da5a26e5d907d Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 13 Aug 2000 23:15:05 +0000 Subject: Added i18n initialization. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@605 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/Makefile.am | 3 ++- src/fe-text/irssi.c | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'src/fe-text') diff --git a/src/fe-text/Makefile.am b/src/fe-text/Makefile.am index de779725..a3ffadda 100644 --- a/src/fe-text/Makefile.am +++ b/src/fe-text/Makefile.am @@ -7,7 +7,8 @@ INCLUDES = \ -I$(top_srcdir)/src/irc/core/ \ -I$(top_srcdir)/src/fe-common/core/ \ -I$(top_srcdir)/src/fe-common/irc/ \ - $(CURSES_INCLUDEDIR) + $(CURSES_INCLUDEDIR) \ + -DLOCALEDIR=\""$(datadir)/locale"\" irssi_DEPENDENCIES = @COMMON_LIBS@ diff --git a/src/fe-text/irssi.c b/src/fe-text/irssi.c index 9a014c60..f967e42b 100644 --- a/src/fe-text/irssi.c +++ b/src/fe-text/irssi.c @@ -150,6 +150,11 @@ int main(int argc, char **argv) #ifdef HAVE_SOCKS SOCKSinit(argv[0]); #endif +#ifdef ENABLE_NLS + /* initialize the i18n stuff */ + bindtextdomain(PACKAGE, LOCALEDIR); + textdomain(PACKAGE); +#endif textui_init(); args_execute(argc, argv); -- cgit v1.2.3