add posubst, compile-time message l10n
* Makefile.in: @POSUBST@ * acinclude.m4(AC_W3M_M17N): add POSUBST, POLANG --enable-messagel10n * configure.in (W3M_LANG): subst (AM_GET_GNUTEXT): if messagel10n enabled, don't use NLS (AC_OUTOUT): add posubst, chmod +x * menu.c: remove if LANG == JA messages * rc.c: ditto From: Fumitoshi UKAI <ukai@debian.or.jp>
This commit is contained in:
39
menu.c
39
menu.c
@@ -1,4 +1,4 @@
|
||||
/* $Id: menu.c,v 1.38 2003/09/24 18:49:00 ukai Exp $ */
|
||||
/* $Id: menu.c,v 1.39 2003/09/25 18:09:01 ukai Exp $ */
|
||||
/*
|
||||
* w3m menu.c
|
||||
*/
|
||||
@@ -256,44 +256,12 @@ static int smDelTab(char c);
|
||||
/* --- MainMenu --- */
|
||||
|
||||
static Menu MainMenu;
|
||||
#if LANG == JA
|
||||
static wc_ces MainMenuCharset = WC_CES_EUC_JP; /* charset of source code */
|
||||
static int MainMenuEncode = FALSE;
|
||||
static MenuItem MainMenuItem[] = {
|
||||
/* type label variabel value func popup keys data */
|
||||
{MENU_FUNC, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD> (b)", NULL, 0, backBf, NULL, "b", NULL},
|
||||
{MENU_POPUP, "<EFBFBD>Хåե<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (s)", NULL, 0, NULL, &SelectMenu, "s", NULL},
|
||||
{MENU_POPUP, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (t)", NULL, 0, NULL, &SelTabMenu, "tT", NULL},
|
||||
{MENU_FUNC, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɽ<EFBFBD><EFBFBD> (v)", NULL, 0, vwSrc, NULL, "vV", NULL},
|
||||
{MENU_FUNC, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Խ<EFBFBD> (e)", NULL, 0, editBf, NULL, "eE", NULL},
|
||||
{MENU_FUNC, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¸ (S)", NULL, 0, svSrc, NULL, "S", NULL},
|
||||
{MENU_FUNC, "<EFBFBD><EFBFBD><EFBFBD>ɤ߹<EFBFBD><EFBFBD><EFBFBD> (r)", NULL, 0, reload, NULL, "rR", NULL},
|
||||
{MENU_NOP, "----------------", NULL, 0, nulcmd, NULL, "", NULL},
|
||||
{MENU_FUNC, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɽ<EFBFBD><EFBFBD> (a)", NULL, 0, followA, NULL, "a", NULL},
|
||||
{MENU_FUNC, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD>ɽ<EFBFBD><EFBFBD> (n)", NULL, 0, tabA, NULL, "nN", NULL},
|
||||
{MENU_FUNC, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¸ (A)", NULL, 0, svA, NULL, "A", NULL},
|
||||
{MENU_FUNC, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɽ<EFBFBD><EFBFBD> (i)", NULL, 0, followI, NULL, "i", NULL},
|
||||
{MENU_FUNC, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¸ (I)", NULL, 0, svI, NULL, "I", NULL},
|
||||
{MENU_FUNC, "<EFBFBD>ե졼<EFBFBD><EFBFBD>ɽ<EFBFBD><EFBFBD> (f)", NULL, 0, rFrame, NULL, "fF", NULL},
|
||||
{MENU_NOP, "----------------", NULL, 0, nulcmd, NULL, "", NULL},
|
||||
{MENU_FUNC, "<EFBFBD>֥å<EFBFBD><EFBFBD>ޡ<EFBFBD><EFBFBD><EFBFBD> (B)", NULL, 0, ldBmark, NULL, "B", NULL},
|
||||
{MENU_FUNC, "<EFBFBD>إ<EFBFBD><EFBFBD><EFBFBD> (h)", NULL, 0, ldhelp, NULL, "hH", NULL},
|
||||
{MENU_FUNC, "<EFBFBD><EFBFBD><EFBFBD>ץ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (o)", NULL, 0, ldOpt, NULL, "oO", NULL},
|
||||
{MENU_NOP, "----------------", NULL, 0, nulcmd, NULL, "", NULL},
|
||||
{MENU_FUNC, "<EFBFBD><EFBFBD>λ (q)", NULL, 0, qquitfm, NULL, "qQ", NULL},
|
||||
{MENU_END, "", NULL, 0, nulcmd, NULL, "", NULL},
|
||||
};
|
||||
#else /* LANG != JA */
|
||||
|
||||
#ifdef USE_M17N
|
||||
/* FIXME: gettextize here */
|
||||
static wc_ces MainMenuCharset = WC_CES_US_ASCII;
|
||||
#if ENABLE_NLS
|
||||
static wc_ces MainMenuCharset = WC_CES_US_ASCII; /* FIXME: charset of source code */
|
||||
static int MainMenuEncode = FALSE;
|
||||
#else
|
||||
static int MainMenuEncode = TRUE;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
static MenuItem MainMenuItem[] = {
|
||||
/* type label variable value func popup keys data */
|
||||
{MENU_FUNC, N_(" Back (b) "), NULL, 0, backBf, NULL, "b", NULL},
|
||||
@@ -320,7 +288,6 @@ static MenuItem MainMenuItem[] = {
|
||||
{MENU_FUNC, N_(" Quit (q) "), NULL, 0, qquitfm, NULL, "qQ", NULL},
|
||||
{MENU_END, "", NULL, 0, nulcmd, NULL, "", NULL},
|
||||
};
|
||||
#endif /* LANG != JA */
|
||||
|
||||
/* --- MainMenu (END) --- */
|
||||
|
||||
|
Reference in New Issue
Block a user