[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>
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2004-08-03 WATANABE Katsuyuki <knabe@sannet.ne.jp>
|
||||||
|
|
||||||
|
* [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()
|
||||||
|
|
||||||
2004-07-18 WATANABE Katsuyuki <knabe@sannet.ne.jp>
|
2004-07-18 WATANABE Katsuyuki <knabe@sannet.ne.jp>
|
||||||
|
|
||||||
* [w3m-dev 04094] Re: option panel: gettextize select list
|
* [w3m-dev 04094] Re: option panel: gettextize select list
|
||||||
@@ -8533,4 +8540,4 @@ a * [w3m-dev 03276] compile error on EWS4800
|
|||||||
* release-0-2-1
|
* release-0-2-1
|
||||||
* import w3m-0.2.1
|
* import w3m-0.2.1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.932 2004/07/17 15:28:58 ukai Exp $
|
$Id: ChangeLog,v 1.933 2004/08/02 15:40:50 ukai Exp $
|
||||||
|
|||||||
@@ -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
|
#define MAINPROGRAM
|
||||||
#include "fm.h"
|
#include "fm.h"
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
@@ -384,9 +384,11 @@ main(int argc, char **argv, char **envp)
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
GC_init();
|
GC_init();
|
||||||
|
#if ENABLE_NLS
|
||||||
setlocale(LC_ALL, "");
|
setlocale(LC_ALL, "");
|
||||||
bindtextdomain(PACKAGE, LOCALEDIR);
|
bindtextdomain(PACKAGE, LOCALEDIR);
|
||||||
textdomain(PACKAGE);
|
textdomain(PACKAGE);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_SYS_ERRLIST
|
#ifndef HAVE_SYS_ERRLIST
|
||||||
prepare_sys_errlist();
|
prepare_sys_errlist();
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/* $Id: menu.c,v 1.42 2004/07/15 16:32:38 ukai Exp $ */
|
/* $Id: menu.c,v 1.43 2004/08/02 15:40:50 ukai Exp $ */
|
||||||
/*
|
/*
|
||||||
* w3m menu.c
|
* w3m menu.c
|
||||||
*/
|
*/
|
||||||
@@ -1717,7 +1717,7 @@ initMenu(void)
|
|||||||
#endif
|
#endif
|
||||||
for (item = MainMenuItem; item->type != MENU_END; item++)
|
for (item = MainMenuItem; item->type != MENU_END; item++)
|
||||||
item->label =
|
item->label =
|
||||||
wc_conv(gettext(item->label), MainMenuCharset,
|
wc_conv(_(item->label), MainMenuCharset,
|
||||||
InnerCharset)->ptr;
|
InnerCharset)->ptr;
|
||||||
MainMenuEncode = TRUE;
|
MainMenuEncode = TRUE;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/* $Id: rc.c,v 1.98 2004/07/17 15:29:00 ukai Exp $ */
|
/* $Id: rc.c,v 1.99 2004/08/02 15:40:50 ukai Exp $ */
|
||||||
/*
|
/*
|
||||||
* Initialization file etc.
|
* Initialization file etc.
|
||||||
*/
|
*/
|
||||||
@@ -793,7 +793,7 @@ show_params(FILE * fp)
|
|||||||
#ifdef USE_M17N
|
#ifdef USE_M17N
|
||||||
if (!OptionEncode)
|
if (!OptionEncode)
|
||||||
cmt =
|
cmt =
|
||||||
wc_conv(gettext(sections[j].name), OptionCharset,
|
wc_conv(_(sections[j].name), OptionCharset,
|
||||||
InnerCharset)->ptr;
|
InnerCharset)->ptr;
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
@@ -839,7 +839,7 @@ show_params(FILE * fp)
|
|||||||
}
|
}
|
||||||
#ifdef USE_M17N
|
#ifdef USE_M17N
|
||||||
if (!OptionEncode)
|
if (!OptionEncode)
|
||||||
cmt = wc_conv(gettext(sections[j].params[i].comment),
|
cmt = wc_conv(_(sections[j].params[i].comment),
|
||||||
OptionCharset, InnerCharset)->ptr;
|
OptionCharset, InnerCharset)->ptr;
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user