diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2004-08-02 15:40:50 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2004-08-02 15:40:50 +0000 |
commit | a1ca0c89e082403a68490a529024e3d1822e37e9 (patch) | |
tree | 27c1fd464ee8d52703d4643a6e51474f3f50481a /main.c | |
parent | [w3m-dev 04094] Re: option panel: gettextize select list (diff) | |
download | w3m-a1ca0c89e082403a68490a529024e3d1822e37e9.tar.gz w3m-a1ca0c89e082403a68490a529024e3d1822e37e9.zip |
[w3m-dev 04095] build fix when configure with --enable-messagel10n
* main.c (main): locale and textdomain initialization if ENABLE_NLS
* menu.c (initMenu): use _() instead of gettext()
* rc.c (show_params): use _() instead of gettext()
From: WATANABE Katsuyuki <knabe@sannet.ne.jp>
Diffstat (limited to '')
-rw-r--r-- | main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.244 2004/07/15 16:44:37 ukai Exp $ */ +/* $Id: main.c,v 1.245 2004/08/02 15:40:50 ukai Exp $ */ #define MAINPROGRAM #include "fm.h" #include <signal.h> @@ -384,9 +384,11 @@ main(int argc, char **argv, char **envp) #endif #endif GC_init(); +#if ENABLE_NLS setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); +#endif #ifndef HAVE_SYS_ERRLIST prepare_sys_errlist(); |