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:
14
ChangeLog
14
ChangeLog
@@ -1,3 +1,15 @@
|
||||
2003-09-26 Fumitoshi UKAI <ukai@debian.or.jp>
|
||||
|
||||
* 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
|
||||
|
||||
2003-09-26 Fumitoshi UKAI <ukai@debian.or.jp>
|
||||
|
||||
* remove ./intl
|
||||
@@ -8085,4 +8097,4 @@ a * [w3m-dev 03276] compile error on EWS4800
|
||||
* release-0-2-1
|
||||
* import w3m-0.2.1
|
||||
|
||||
$Id: ChangeLog,v 1.871 2003/09/25 16:39:15 ukai Exp $
|
||||
$Id: ChangeLog,v 1.872 2003/09/25 18:08:59 ukai Exp $
|
||||
|
||||
@@ -59,7 +59,8 @@ MAKE_ARGS = PERL='$(PERL)' MKDIR='$(MKDIR)' INSTALL='$(INSTALL)' \
|
||||
IMGCFLAGS = @IMGX11CFLAGS@ @IMGFBCFLAGS@
|
||||
IMGLDFLAGS = @IMGX11LDFLAGS@ @IMGFBLDFLAGS@
|
||||
|
||||
CC = @CC@
|
||||
CC0 = @CC@
|
||||
CC = @POSUBST@ $(CC0)
|
||||
RANLIB=@RANLIB@
|
||||
AWK = @AWK@
|
||||
PERL = @PERL@
|
||||
@@ -166,7 +167,7 @@ inflate.o: inflate.c
|
||||
$(CC) $(CFLAGS) -o $@ -c $(srcdir)/inflate.c
|
||||
|
||||
libwc:
|
||||
(cd libwc && $(MAKE) CC='$(CC)' TOP_CFLAGS='$(CFLAGS)')
|
||||
(cd libwc && $(MAKE) CC='$(CC0)' TOP_CFLAGS='$(CFLAGS)')
|
||||
|
||||
dummy.o: entity.c
|
||||
$(CC) $(CFLAGS) -DDUMMY -c -o $@ $?
|
||||
@@ -178,7 +179,7 @@ w3mimgdisplay.o: w3mimgdisplay.c w3mimg
|
||||
$(CC) $(CFLAGS) $(IMGCFLAGS) -o $@ -c $(srcdir)/w3mimgdisplay.c
|
||||
|
||||
w3mimg:
|
||||
(cd w3mimg && $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)")
|
||||
(cd w3mimg && $(MAKE) CC="$(CC0)" CFLAGS="$(CFLAGS)")
|
||||
|
||||
po:
|
||||
(cd $@ && $(MAKE))
|
||||
|
||||
19
acinclude.m4
19
acinclude.m4
@@ -141,6 +141,8 @@ AC_SUBST(WCCFLAGS)
|
||||
AC_SUBST(DISPLAY_CHARSET)
|
||||
AC_SUBST(SYSTEM_CHARSET)
|
||||
AC_SUBST(DOCUMENT_CHARSET)
|
||||
AC_SUBST(POSUBST)
|
||||
AC_SUBST(POLANG)
|
||||
WCTARGET=""; WCCFLAGS=""; wcinclude=""; wclib=""
|
||||
AC_MSG_CHECKING(if m17n support is enabled)
|
||||
AC_ARG_ENABLE(m17n,
|
||||
@@ -179,10 +181,23 @@ else
|
||||
fi
|
||||
AC_DEFINE(USE_UNICODE)
|
||||
fi
|
||||
AC_MSG_CHECKING(if message l10n)
|
||||
AC_ARG_ENABLE(messagel10n,
|
||||
[ --enable-messagel10n=LL message l10n instead of NLS],,
|
||||
[enable_messagel10n="no"])
|
||||
if test x$enable_messagel10n = xyes; then
|
||||
enable_messagel10n="ja";
|
||||
fi
|
||||
AC_MSG_RESULT($enable_messagel10n)
|
||||
if test x$enable_messagel10n = xno; then
|
||||
:
|
||||
else
|
||||
POSUBST="\$(top_srcdir)/posubst"
|
||||
POLANG="$enable_messagel10n"
|
||||
fi
|
||||
AC_MSG_CHECKING(if japanese support is enabled)
|
||||
AC_ARG_ENABLE(japanese,
|
||||
[ --enable-japanese=CODE support Japanese message instead of NLS
|
||||
CODE=(S|E|J|U)],,
|
||||
[ --enable-japanese=CODE support Japanese CODE=(S|E|J|U)],,
|
||||
[enable_japanese="no"])
|
||||
AC_MSG_RESULT($enable_japanese)
|
||||
if test x"$enable_japanese" = xno; then
|
||||
|
||||
19
aclocal.m4
vendored
19
aclocal.m4
vendored
@@ -153,6 +153,8 @@ AC_SUBST(WCCFLAGS)
|
||||
AC_SUBST(DISPLAY_CHARSET)
|
||||
AC_SUBST(SYSTEM_CHARSET)
|
||||
AC_SUBST(DOCUMENT_CHARSET)
|
||||
AC_SUBST(POSUBST)
|
||||
AC_SUBST(POLANG)
|
||||
WCTARGET=""; WCCFLAGS=""; wcinclude=""; wclib=""
|
||||
AC_MSG_CHECKING(if m17n support is enabled)
|
||||
AC_ARG_ENABLE(m17n,
|
||||
@@ -191,10 +193,23 @@ else
|
||||
fi
|
||||
AC_DEFINE(USE_UNICODE)
|
||||
fi
|
||||
AC_MSG_CHECKING(if message l10n)
|
||||
AC_ARG_ENABLE(messagel10n,
|
||||
[ --enable-messagel10n=LL message l10n instead of NLS],,
|
||||
[enable_messagel10n="no"])
|
||||
if test x$enable_messagel10n = xyes; then
|
||||
enable_messagel10n="ja";
|
||||
fi
|
||||
AC_MSG_RESULT($enable_messagel10n)
|
||||
if test x$enable_messagel10n = xno; then
|
||||
:
|
||||
else
|
||||
POSUBST="\$(top_srcdir)/posubst"
|
||||
POLANG="$enable_messagel10n"
|
||||
fi
|
||||
AC_MSG_CHECKING(if japanese support is enabled)
|
||||
AC_ARG_ENABLE(japanese,
|
||||
[ --enable-japanese=CODE support Japanese message instead of NLS
|
||||
CODE=(S|E|J|U)],,
|
||||
[ --enable-japanese=CODE support Japanese CODE=(S|E|J|U)],,
|
||||
[enable_japanese="no"])
|
||||
AC_MSG_RESULT($enable_japanese)
|
||||
if test x"$enable_japanese" = xno; then
|
||||
|
||||
38
configure
vendored
38
configure
vendored
@@ -309,7 +309,7 @@ ac_includes_default="\
|
||||
# include <unistd.h>
|
||||
#endif"
|
||||
|
||||
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION W3M AWK CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB PERL NKF MAN build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os W3M_TARGET W3M_LIBS USE_M17N USE_UNICODE WCTARGET WCCFLAGS DISPLAY_CHARSET SYSTEM_CHARSET DOCUMENT_CHARSET MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB INTLTARGET NLSTARGET USE_COLOR USE_ANSI_COLOR USE_BG_COLOR USE_IMAGE USE_W3MIMG_X11 USE_W3MIMG_FB W3MIMGDISPLAY_SETUID INSTALL_W3MIMGDISPLAY USE_GDKPIXBUF USE_IMLIB USE_IMLIB2 IMGTARGETS IMGOBJS IMGX11CFLAGS IMGX11LDFLAGS IMGFBCFLAGS IMGFBLDFLAGS USE_XFACE uncompface KEYMAP_FILE HELP_FILE KEYBIND USE_MENU USE_MOUSE USE_HISTORY USE_ALARM USE_COOKIE USE_DIGEST_AUTH USE_NNTP USE_GOPHER INET6 USE_DICT USE_HELP_CGI USE_EXTERNAL_URI_LOADER USE_W3MMAILER USE_MIGEMO DEF_MIGEMO_COMMAND DEF_EDITOR DEF_MAILER DEF_EXT_BROWSER USE_SSL USE_SSL_VERIFY USE_W3M USE_SYSMOUSE AUXBIN_TARGETS EGREP USE_BINMODE_STREAM HAVE_SYS_ERRLIST HAVE_SIGSETJMP RETSIGTYPE SIGNAL_RETURN RC_DIR DOCDIRS CURRENT_VERSION LIBOBJS LTLIBOBJS'
|
||||
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION W3M W3M_LANG AWK CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB PERL NKF MAN build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os W3M_TARGET W3M_LIBS USE_M17N USE_UNICODE WCTARGET WCCFLAGS DISPLAY_CHARSET SYSTEM_CHARSET DOCUMENT_CHARSET POSUBST POLANG MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB INTLTARGET NLSTARGET USE_COLOR USE_ANSI_COLOR USE_BG_COLOR USE_IMAGE USE_W3MIMG_X11 USE_W3MIMG_FB W3MIMGDISPLAY_SETUID INSTALL_W3MIMGDISPLAY USE_GDKPIXBUF USE_IMLIB USE_IMLIB2 IMGTARGETS IMGOBJS IMGX11CFLAGS IMGX11LDFLAGS IMGFBCFLAGS IMGFBLDFLAGS USE_XFACE uncompface KEYMAP_FILE HELP_FILE KEYBIND USE_MENU USE_MOUSE USE_HISTORY USE_ALARM USE_COOKIE USE_DIGEST_AUTH USE_NNTP USE_GOPHER INET6 USE_DICT USE_HELP_CGI USE_EXTERNAL_URI_LOADER USE_W3MMAILER USE_MIGEMO DEF_MIGEMO_COMMAND DEF_EDITOR DEF_MAILER DEF_EXT_BROWSER USE_SSL USE_SSL_VERIFY USE_W3M USE_SYSMOUSE AUXBIN_TARGETS EGREP USE_BINMODE_STREAM HAVE_SYS_ERRLIST HAVE_SIGSETJMP RETSIGTYPE SIGNAL_RETURN RC_DIR DOCDIRS CURRENT_VERSION LIBOBJS LTLIBOBJS'
|
||||
ac_subst_files=''
|
||||
|
||||
# Initialize some variables set by options.
|
||||
@@ -849,8 +849,8 @@ Optional Features:
|
||||
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
||||
--disable-m17n support m17n
|
||||
--disable-unicode support unicode
|
||||
--enable-japanese=CODE support Japanese message instead of NLS
|
||||
CODE=(S|E|J|U)
|
||||
--enable-messagel10n=LL message l10n instead of NLS
|
||||
--enable-japanese=CODE support Japanese CODE=(S|E|J|U)
|
||||
--disable-nls do not use Native Language Support
|
||||
--disable-rpath do not hardcode runtime library paths
|
||||
--disable-color disable color for vt100 terminal
|
||||
@@ -1342,6 +1342,7 @@ cat >>confdefs.h <<\_ACEOF
|
||||
_ACEOF
|
||||
|
||||
|
||||
|
||||
W3M_LANG=${LC_ALL:-$LANG}
|
||||
ac_config_headers="$ac_config_headers config.h"
|
||||
|
||||
@@ -2952,6 +2953,8 @@ _ACEOF
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
WCTARGET=""; WCCFLAGS=""; wcinclude=""; wclib=""
|
||||
echo "$as_me:$LINENO: checking if m17n support is enabled" >&5
|
||||
echo $ECHO_N "checking if m17n support is enabled... $ECHO_C" >&6
|
||||
@@ -3008,6 +3011,26 @@ echo "${ECHO_T}$enable_unicode" >&6
|
||||
_ACEOF
|
||||
|
||||
fi
|
||||
echo "$as_me:$LINENO: checking if message l10n" >&5
|
||||
echo $ECHO_N "checking if message l10n... $ECHO_C" >&6
|
||||
# Check whether --enable-messagel10n or --disable-messagel10n was given.
|
||||
if test "${enable_messagel10n+set}" = set; then
|
||||
enableval="$enable_messagel10n"
|
||||
|
||||
else
|
||||
enable_messagel10n="no"
|
||||
fi;
|
||||
if test x$enable_messagel10n = xyes; then
|
||||
enable_messagel10n="ja";
|
||||
fi
|
||||
echo "$as_me:$LINENO: result: $enable_messagel10n" >&5
|
||||
echo "${ECHO_T}$enable_messagel10n" >&6
|
||||
if test x$enable_messagel10n = xno; then
|
||||
:
|
||||
else
|
||||
POSUBST="\$(top_srcdir)/posubst"
|
||||
POLANG="$enable_messagel10n"
|
||||
fi
|
||||
echo "$as_me:$LINENO: checking if japanese support is enabled" >&5
|
||||
echo $ECHO_N "checking if japanese support is enabled... $ECHO_C" >&6
|
||||
# Check whether --enable-japanese or --disable-japanese was given.
|
||||
@@ -3099,6 +3122,7 @@ cat >>confdefs.h <<_ACEOF
|
||||
#define DOCUMENT_CHARSET $document_charset
|
||||
_ACEOF
|
||||
|
||||
if test x$enable_messagel10n = xno; then
|
||||
|
||||
MKINSTALLDIRS=
|
||||
if test -n "$ac_aux_dir"; then
|
||||
@@ -4774,6 +4798,7 @@ _ACEOF
|
||||
|
||||
|
||||
|
||||
fi
|
||||
|
||||
NLSTARGET=""
|
||||
if test x"$USE_NLS" = xyes; then
|
||||
@@ -9149,7 +9174,7 @@ _ACEOF
|
||||
cvsver=`$AWK '\$1 ~ /Id:/ { print \$3}' $srcdir/ChangeLog`
|
||||
sed -e 's/define CURRENT_VERSION "\(.*\)+cvs/define CURRENT_VERSION "\1+cvs-'$cvsver'/' $srcdir/version.c.in > version.c
|
||||
CURRENT_VERSION=`sed -n 's/.*define CURRENT_VERSION *"w3m\/\(.*\)".*$/\1/p' version.c`
|
||||
ac_config_files="$ac_config_files Makefile po/Makefile.in scripts/Makefile scripts/dirlist.cgi scripts/w3mhelp.cgi scripts/w3mmail.cgi scripts/xface2xpm scripts/multipart/Makefile scripts/multipart/multipart.cgi scripts/w3mman/Makefile scripts/w3mman/w3mman scripts/w3mman/w3mman.1 scripts/w3mman/w3mman2html.cgi libwc/Makefile w3mimg/Makefile w3mimg/fb/Makefile w3mimg/x11/Makefile w3mhelp-w3m_en.html w3mhelp-w3m_ja.html w3mhelp-lynx_en.html w3mhelp-lynx_ja.html"
|
||||
ac_config_files="$ac_config_files Makefile posubst po/Makefile.in scripts/Makefile scripts/dirlist.cgi scripts/w3mhelp.cgi scripts/w3mmail.cgi scripts/xface2xpm scripts/multipart/Makefile scripts/multipart/multipart.cgi scripts/w3mman/Makefile scripts/w3mman/w3mman scripts/w3mman/w3mman.1 scripts/w3mman/w3mman2html.cgi libwc/Makefile w3mimg/Makefile w3mimg/fb/Makefile w3mimg/x11/Makefile w3mhelp-w3m_en.html w3mhelp-w3m_ja.html w3mhelp-lynx_en.html w3mhelp-lynx_ja.html"
|
||||
cat >confcache <<\_ACEOF
|
||||
# This file is a shell script that caches the results of configure
|
||||
# tests run on this system so they can be shared between configure
|
||||
@@ -9691,6 +9716,7 @@ do
|
||||
case "$ac_config_target" in
|
||||
# Handling of arguments.
|
||||
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
||||
"posubst" ) CONFIG_FILES="$CONFIG_FILES posubst" ;;
|
||||
"po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
|
||||
"scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
|
||||
"scripts/dirlist.cgi" ) CONFIG_FILES="$CONFIG_FILES scripts/dirlist.cgi" ;;
|
||||
@@ -9801,6 +9827,7 @@ s,@LIBS@,$LIBS,;t t
|
||||
s,@PACKAGE@,$PACKAGE,;t t
|
||||
s,@VERSION@,$VERSION,;t t
|
||||
s,@W3M@,$W3M,;t t
|
||||
s,@W3M_LANG@,$W3M_LANG,;t t
|
||||
s,@AWK@,$AWK,;t t
|
||||
s,@CC@,$CC,;t t
|
||||
s,@CFLAGS@,$CFLAGS,;t t
|
||||
@@ -9841,6 +9868,8 @@ s,@WCCFLAGS@,$WCCFLAGS,;t t
|
||||
s,@DISPLAY_CHARSET@,$DISPLAY_CHARSET,;t t
|
||||
s,@SYSTEM_CHARSET@,$SYSTEM_CHARSET,;t t
|
||||
s,@DOCUMENT_CHARSET@,$DOCUMENT_CHARSET,;t t
|
||||
s,@POSUBST@,$POSUBST,;t t
|
||||
s,@POLANG@,$POLANG,;t t
|
||||
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
|
||||
s,@USE_NLS@,$USE_NLS,;t t
|
||||
s,@MSGFMT@,$MSGFMT,;t t
|
||||
@@ -10529,3 +10558,4 @@ if test "$no_create" != yes; then
|
||||
fi
|
||||
|
||||
|
||||
chmod +x posubst
|
||||
|
||||
@@ -12,6 +12,7 @@ AC_SUBST(W3M)
|
||||
W3M=w3m
|
||||
AC_DEFINE(W3M, w3m)
|
||||
|
||||
AC_SUBST(W3M_LANG)
|
||||
W3M_LANG=${LC_ALL:-$LANG}
|
||||
dnl AM_INIT_AUTOMAKE(w3m, 0.4)
|
||||
AC_CONFIG_HEADER(config.h)
|
||||
@@ -41,7 +42,9 @@ W3M_TARGET=$target
|
||||
AC_DEFINE_UNQUOTED(W3M_TARGET, $W3M_TARGET)
|
||||
|
||||
AC_W3M_M17N
|
||||
AM_GNU_GETTEXT([external])
|
||||
if test x$enable_messagel10n = xno; then
|
||||
AM_GNU_GETTEXT([external])
|
||||
fi
|
||||
|
||||
NLSTARGET=""
|
||||
if test x"$USE_NLS" = xyes; then
|
||||
@@ -154,7 +157,7 @@ DOCDIRS="doc:en_English doc-jp:ja_Japanese"
|
||||
AC_DEFINE_UNQUOTED(DOCDIRS, "$DOCDIRS")
|
||||
|
||||
AC_W3M_VERSION
|
||||
AC_OUTPUT([Makefile po/Makefile.in \
|
||||
AC_OUTPUT([Makefile posubst po/Makefile.in \
|
||||
scripts/Makefile scripts/dirlist.cgi \
|
||||
scripts/w3mhelp.cgi \
|
||||
scripts/w3mmail.cgi scripts/xface2xpm \
|
||||
@@ -166,3 +169,4 @@ w3mimg/Makefile w3mimg/fb/Makefile w3mimg/x11/Makefile \
|
||||
w3mhelp-w3m_en.html w3mhelp-w3m_ja.html \
|
||||
w3mhelp-lynx_en.html w3mhelp-lynx_ja.html])
|
||||
|
||||
chmod +x posubst
|
||||
|
||||
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, "戻る (b)", NULL, 0, backBf, NULL, "b", NULL},
|
||||
{MENU_POPUP, "バッファ選択 (s)", NULL, 0, NULL, &SelectMenu, "s", NULL},
|
||||
{MENU_POPUP, "タブ選択 (t)", NULL, 0, NULL, &SelTabMenu, "tT", NULL},
|
||||
{MENU_FUNC, "ソースを表示 (v)", NULL, 0, vwSrc, NULL, "vV", NULL},
|
||||
{MENU_FUNC, "ソースを編集 (e)", NULL, 0, editBf, NULL, "eE", NULL},
|
||||
{MENU_FUNC, "ソースを保存 (S)", NULL, 0, svSrc, NULL, "S", NULL},
|
||||
{MENU_FUNC, "再読み込み (r)", NULL, 0, reload, NULL, "rR", NULL},
|
||||
{MENU_NOP, "----------------", NULL, 0, nulcmd, NULL, "", NULL},
|
||||
{MENU_FUNC, "リンクを表示 (a)", NULL, 0, followA, NULL, "a", NULL},
|
||||
{MENU_FUNC, "新タブで表示 (n)", NULL, 0, tabA, NULL, "nN", NULL},
|
||||
{MENU_FUNC, "リンクを保存 (A)", NULL, 0, svA, NULL, "A", NULL},
|
||||
{MENU_FUNC, "画像を表示 (i)", NULL, 0, followI, NULL, "i", NULL},
|
||||
{MENU_FUNC, "画像を保存 (I)", NULL, 0, svI, NULL, "I", NULL},
|
||||
{MENU_FUNC, "フレーム表示 (f)", NULL, 0, rFrame, NULL, "fF", NULL},
|
||||
{MENU_NOP, "----------------", NULL, 0, nulcmd, NULL, "", NULL},
|
||||
{MENU_FUNC, "ブックマーク (B)", NULL, 0, ldBmark, NULL, "B", NULL},
|
||||
{MENU_FUNC, "ヘルプ (h)", NULL, 0, ldhelp, NULL, "hH", NULL},
|
||||
{MENU_FUNC, "オプション (o)", NULL, 0, ldOpt, NULL, "oO", NULL},
|
||||
{MENU_NOP, "----------------", NULL, 0, nulcmd, NULL, "", NULL},
|
||||
{MENU_FUNC, "終了 (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) --- */
|
||||
|
||||
|
||||
198
rc.c
198
rc.c
@@ -1,4 +1,4 @@
|
||||
/* $Id: rc.c,v 1.91 2003/09/24 18:49:00 ukai Exp $ */
|
||||
/* $Id: rc.c,v 1.92 2003/09/25 18:09:01 ukai Exp $ */
|
||||
/*
|
||||
* Initialization file etc.
|
||||
*/
|
||||
@@ -51,189 +51,9 @@ static int RC_table_size;
|
||||
#define P_NZINT 9
|
||||
#define P_SCALE 10
|
||||
|
||||
#if LANG == JA
|
||||
static wc_ces OptionCharset = WC_CES_EUC_JP; /* charset of source code */
|
||||
static int OptionEncode = FALSE;
|
||||
|
||||
#define CMT_HELPER "外部ビューアの編集"
|
||||
#define CMT_TABSTOP "タブ幅"
|
||||
#define CMT_INDENT_INCR "HTML整形時のインデント幅"
|
||||
#define CMT_PIXEL_PER_CHAR "文字幅 (4.0...32.0)"
|
||||
#define CMT_PIXEL_PER_LINE "一行の高さ (4.0...64.0)"
|
||||
#define CMT_PAGERLINE "ページャとして利用した時に保存される行数"
|
||||
#define CMT_HISTORY "履歴を使う"
|
||||
#define CMT_HISTSIZE "保持するURL履歴の数"
|
||||
#define CMT_SAVEHIST "URL履歴の保存"
|
||||
#define CMT_FRAME "フレームの自動表示"
|
||||
#define CMT_ARGV_IS_URL "scheme のない引数も URL とみなす"
|
||||
#define CMT_TSELF "targetが未指定の場合に_selfを使用する"
|
||||
#define CMT_OPEN_TAB_BLANK "targetが_blankか_newの場合は新しいタブで開く"
|
||||
#define CMT_OPEN_TAB_DL_LIST "Download list panel を新しいタブで開く"
|
||||
#define CMT_DISPLINK "リンク先の自動表示"
|
||||
#define CMT_DECODE_URL "URLをデコードして表示"
|
||||
#define CMT_DISPLINEINFO "現在の行番号の表示"
|
||||
#define CMT_DISP_IMAGE "インライン画像を表示"
|
||||
#ifdef USE_IMAGE
|
||||
#define CMT_AUTO_IMAGE "インライン画像を自動で読み込む"
|
||||
#define CMT_MAX_LOAD_IMAGE "画像読み込み時の最大プロセス数"
|
||||
#define CMT_EXT_IMAGE_VIEWER "画像を外部ビューワで表示"
|
||||
#define CMT_IMAGE_SCALE "画像のスケール(%)"
|
||||
#define CMT_IMGDISPLAY "画像を表示するためのコマンド"
|
||||
#define CMT_IMAGE_MAP_LIST "イメージマップのリンク先一覧を表示"
|
||||
#endif
|
||||
#define CMT_MULTICOL "ファイル名のマルチカラム表示"
|
||||
#define CMT_ALT_ENTITY "エンティティを ASCII の代替表現で表す"
|
||||
#define CMT_GRAPHIC_CHAR "テーブルやメニューの枠に graphic 文字を使う"
|
||||
#define CMT_FOLD_TEXTAREA "TEXTAREA の行を折り返して表示"
|
||||
#define CMT_DISP_INS_DEL "DEL, S, STRIKE 要素の内容を表示する。"
|
||||
#define CMT_COLOR "カラー表示"
|
||||
#define CMT_B_COLOR "文字の色"
|
||||
#define CMT_A_COLOR "アンカーの色"
|
||||
#define CMT_I_COLOR "画像リンクの色"
|
||||
#define CMT_F_COLOR "フォームの色"
|
||||
#define CMT_BG_COLOR "背景の色"
|
||||
#define CMT_MARK_COLOR "マークの色"
|
||||
#define CMT_ACTIVE_STYLE "現在選択されているリンクの色を指定する"
|
||||
#define CMT_C_COLOR "現在選択されているリンクの色"
|
||||
#define CMT_VISITED_ANCHOR "訪れたことがあるリンクは色を変える"
|
||||
#define CMT_V_COLOR "訪れたことがあるリンクの色"
|
||||
#define CMT_USE_PROXY "プロキシを使用する"
|
||||
#define CMT_HTTP_PROXY "HTTPプロキシ(URLで入力)"
|
||||
#ifdef USE_SSL
|
||||
#define CMT_HTTPS_PROXY "HTTPSプロキシ(URLで入力)"
|
||||
#endif /* USE_SSL */
|
||||
#ifdef USE_GOPHER
|
||||
#define CMT_GOPHER_PROXY "GOPHERプロキシ(URLで入力)"
|
||||
#endif /* USE_GOPHER */
|
||||
#define CMT_FTP_PROXY "FTPプロキシ(URLで入力)"
|
||||
#define CMT_NO_PROXY "プロキシから除外するドメイン"
|
||||
#define CMT_NOPROXY_NETADDR "ネットワークアドレスでプロキシ除外のチェック"
|
||||
#define CMT_NO_CACHE "Cache を使わない"
|
||||
#ifdef USE_NNTP
|
||||
#define CMT_NNTP_SERVER "News サーバ"
|
||||
#define CMT_NNTP_MODE "News サーバのモード"
|
||||
#define CMT_MAX_NEWS "News を一覧表示する時の数"
|
||||
#endif
|
||||
#define CMT_DNS_ORDER "名前解決の順序"
|
||||
#define CMT_DROOT "/ で表されるディレクトリ(document root)"
|
||||
#define CMT_PDROOT "/~user で表されるディレクトリ"
|
||||
#define CMT_CGIBIN "/cgi-bin で表されるディレクトリ"
|
||||
#define CMT_CONFIRM_QQ "q での終了時に確認する"
|
||||
#define CMT_CLOSE_TAB_BACK "戻る時にバッファが最後ならタブを閉じる"
|
||||
#ifdef USE_MARK
|
||||
#define CMT_USE_MARK "マーク機能を有効にする"
|
||||
#endif
|
||||
#define CMT_EMACS_LIKE_LINEEDIT "Emacs風の行編集にする"
|
||||
#define CMT_VI_PREC_NUM "vi風の数値プレフィクス"
|
||||
#define CMT_LABEL_TOPLINE "ラベルに移動する時にカーソルがトップになるようにする"
|
||||
#define CMT_NEXTPAGE_TOPLINE "次のページに移動する時にカーソルがトップになるようにする"
|
||||
#define CMT_FOLD_LINE "plain text ファイルの行を折り返す"
|
||||
#define CMT_SHOW_NUM "行番号を表示する"
|
||||
#define CMT_SHOW_SRCH_STR "検索文字列を表示する"
|
||||
#define CMT_MIMETYPES "利用するmime.types"
|
||||
#define CMT_MAILCAP "利用するmailcap"
|
||||
#define CMT_URIMETHODMAP "利用するurimethodmap"
|
||||
#define CMT_EDITOR "利用するエディタ"
|
||||
#define CMT_MAILER "利用するメーラ"
|
||||
#define CMT_EXTBRZ "外部ブラウザ"
|
||||
#define CMT_EXTBRZ2 "外部ブラウザその2"
|
||||
#define CMT_EXTBRZ3 "外部ブラウザその3"
|
||||
#define CMT_DISABLE_SECRET_SECURITY_CHECK "パスワードファイルのパーミッションをチェックしない"
|
||||
#define CMT_PASSWDFILE "パスワードファイル"
|
||||
#define CMT_PRE_FORM_FILE "文書読込時のフォーム設定用ファイル"
|
||||
#define CMT_FTPPASS "FTPのパスワード(普通は自分のmail addressを使う)"
|
||||
#define CMT_FTPPASS_HOSTNAMEGEN "FTPのパスワードのドメイン名を自動生成する"
|
||||
#define CMT_USERAGENT "User-Agent"
|
||||
#define CMT_ACCEPTENCODING "圧縮方法(Accept-Encoding:)"
|
||||
#define CMT_ACCEPTMEDIA "受けつけるメディアタイプ(Accept:)"
|
||||
#define CMT_ACCEPTLANG "受けつける言語(Accept-Language:)"
|
||||
#define CMT_MARK_ALL_PAGES "全てのページのURL風の文字列をリンクにする"
|
||||
#define CMT_WRAP "折り返し検索"
|
||||
#define CMT_VIEW_UNSEENOBJECTS "背景画像等へのリンクを作る"
|
||||
#ifdef __EMX__
|
||||
#define CMT_BGEXTVIEW "外部ビューアを別セッションで動かす"
|
||||
#else
|
||||
#define CMT_BGEXTVIEW "外部ビューアをバックグラウンドで動かす"
|
||||
#endif
|
||||
#define CMT_EXT_DIRLIST "ディレクトリリストに外部コマンドを使う"
|
||||
#define CMT_DIRLIST_CMD "ディレクトリリスト用コマンド"
|
||||
#ifdef USE_DICT
|
||||
#define CMT_USE_DICTCOMMAND "辞書引きをCGI経由でおこなう"
|
||||
#define CMT_DICTCOMMAND "辞書引きコマンドのURL"
|
||||
#endif /* USE_DICT */
|
||||
#define CMT_IGNORE_NULL_IMG_ALT "空のIMG ALT属性の時にリンク名を表示する"
|
||||
#define CMT_IFILE "各ディレクトリのインデックスファイル"
|
||||
#define CMT_RETRY_HTTP "URLに自動的に http:// を補う"
|
||||
#define CMT_DEFAULT_URL "URLを開く時のデフォルト文字列"
|
||||
#define CMT_DECODE_CTE "保存時に Content-Transfer-Encoding をデコードする"
|
||||
#define CMT_PRESERVE_TIMESTAMP "保存時にタイムスタンプを保持する"
|
||||
#ifdef USE_MOUSE
|
||||
#define CMT_MOUSE "マウスを使う"
|
||||
#define CMT_REVERSE_MOUSE "マウスのドラッグ動作を逆にする"
|
||||
#define CMT_RELATIVE_WHEEL_SCROLL "ホイールでのスクロール速度の扱い"
|
||||
#define CMT_RELATIVE_WHEEL_SCROLL_RATIO "(Aのみ)画面の何%スクロールするか"
|
||||
#define CMT_FIXED_WHEEL_SCROLL_COUNT "(Bのみ)スクロールする行数"
|
||||
#endif /* USE_MOUSE */
|
||||
#define CMT_CLEAR_BUF "表示されていないバッファのメモリを解放する"
|
||||
#define CMT_NOSENDREFERER "Referer: を送らないようにする"
|
||||
#define CMT_IGNORE_CASE "サーチ時に大文字小文字の区別をしない"
|
||||
#define CMT_USE_LESSOPEN "LESSOPENを使用"
|
||||
#ifdef USE_SSL
|
||||
#ifdef USE_SSL_VERIFY
|
||||
#define CMT_SSL_VERIFY_SERVER "SSLのサーバ認証を行う"
|
||||
#define CMT_SSL_CERT_FILE "SSLのクライアント用PEM形式証明書ファイル"
|
||||
#define CMT_SSL_KEY_FILE "SSLのクライアント用PEM形式秘密鍵ファイル"
|
||||
#define CMT_SSL_CA_PATH "SSLの認証局のPEM形式証明書群のあるディレクトリへのパス"
|
||||
#define CMT_SSL_CA_FILE "SSLの認証局のPEM形式証明書群のファイル"
|
||||
#endif /* USE_SSL_VERIFY */
|
||||
#define CMT_SSL_FORBID_METHOD "使わないSSLメソッドのリスト(2: SSLv2, 3: SSLv3, t:TLSv1)"
|
||||
#endif /* USE_SSL */
|
||||
#ifdef USE_COOKIE
|
||||
#define CMT_USECOOKIE "クッキーを使用する"
|
||||
#define CMT_ACCEPTCOOKIE "クッキーを受け付ける"
|
||||
#define CMT_ACCEPTBADCOOKIE "問題のあるクッキーでも受け付ける"
|
||||
#define CMT_COOKIE_REJECT_DOMAINS "クッキーを受け付けないドメイン"
|
||||
#define CMT_COOKIE_ACCEPT_DOMAINS "クッキーを受け付けるドメイン"
|
||||
#endif
|
||||
|
||||
#define CMT_FOLLOW_REDIRECTION "従うリダイレクトの回数"
|
||||
#define CMT_META_REFRESH "meta refresh に対応する"
|
||||
|
||||
#ifdef USE_MIGEMO
|
||||
#define CMT_USE_MIGEMO "Migemo(ローマ字検索)を使用する"
|
||||
#define CMT_MIGEMO_COMMAND "Migemoコマンド"
|
||||
#endif /* USE_MIGEMO */
|
||||
|
||||
#ifdef USE_M17N
|
||||
#define CMT_DISPLAY_CHARSET "表示用文字コード"
|
||||
#define CMT_DOCUMENT_CHARSET "文書の標準の文字コード"
|
||||
#define CMT_AUTO_DETECT "文書の読み込み時に文字コードの自動判定を行う"
|
||||
#define CMT_SYSTEM_CHARSET "システムの文字コード"
|
||||
#define CMT_FOLLOW_LOCALE "Locale(LC_CTYPE) に従ってシステムの文字コードを設定"
|
||||
#define CMT_EXT_HALFDUMP "表示用文字コードで halfdump の出力を行う"
|
||||
#define CMT_USE_WIDE "複数カラムの文字を使う"
|
||||
#define CMT_USE_COMBINING "結合文字を使う"
|
||||
#define CMT_USE_LANGUAGE_TAG "Unicode の言語タグを使う"
|
||||
#define CMT_UCS_CONV "Unicodeを介したコード変換"
|
||||
#define CMT_PRE_CONV "文書の読み込み時に文字コードを変換する"
|
||||
#define CMT_SEARCH_CONV "検索文字列を文書の文字コードに変換する"
|
||||
#define CMT_FIX_WIDTH_CONV "文字幅の変わる変換をしない"
|
||||
#define CMT_USE_GB12345_MAP "GB 12345 の Unicode マップを GB 2312 用に使う"
|
||||
#define CMT_USE_JISX0201 "ISO-2022-JP で JIS X 0201-Roman を使う"
|
||||
#define CMT_USE_JISC6226 "ISO-2022-JP で JIS C 6226:1978(旧JIS) を使う"
|
||||
#define CMT_USE_JISX0201K "JIS X 0201-Katakana を使う"
|
||||
#define CMT_USE_JISX0212 "JIS X 0212:1990(補助漢字) を使う"
|
||||
#define CMT_USE_JISX0213 "JIS X 0213:2000(2000JIS) を使う"
|
||||
#define CMT_STRICT_ISO2022 "厳格な ISO-2022-JP/KR/CN を使う"
|
||||
#define CMT_GB18030_AS_UCS "GB18030 の 4バイト文字を Unicode として扱う"
|
||||
#endif
|
||||
|
||||
#define CMT_KEYMAP_FILE "keymapファイル"
|
||||
|
||||
#else /* LANG != JA */
|
||||
/* FIXME: gettextize here */
|
||||
#if ENABLE_NLS
|
||||
static wc_ces OptionCharset = WC_CES_US_ASCII;
|
||||
#ifdef USE_M17N
|
||||
static wc_ces OptionCharset = WC_CES_US_ASCII; /* FIXME: charset of source code */
|
||||
static int OptionEncode = FALSE;
|
||||
#endif
|
||||
|
||||
@@ -411,8 +231,6 @@ static int OptionEncode = FALSE;
|
||||
|
||||
#define CMT_KEYMAP_FILE N_("keymap file")
|
||||
|
||||
#endif /* LANG != JA */
|
||||
|
||||
#define PI_TEXT 0
|
||||
#define PI_ONOFF 1
|
||||
#define PI_SEL_C 2
|
||||
@@ -1024,7 +842,7 @@ show_params(FILE * fp)
|
||||
|
||||
fputs("\nconfiguration parameters\n", fp);
|
||||
for (j = 0; sections[j].name != NULL; j++) {
|
||||
#if LANG == JA || ENABLE_NLS
|
||||
#ifdef USE_M17N
|
||||
if (!OptionEncode)
|
||||
cmt =
|
||||
wc_conv(gettext(sections[j].name), OptionCharset,
|
||||
@@ -1071,7 +889,7 @@ show_params(FILE * fp)
|
||||
t = "percent";
|
||||
break;
|
||||
}
|
||||
#if LANG == JA || ENABLE_NLS
|
||||
#ifdef USE_M17N
|
||||
if (!OptionEncode)
|
||||
cmt = wc_conv(gettext(sections[j].params[i].comment),
|
||||
OptionCharset, InnerCharset)->ptr;
|
||||
@@ -1546,7 +1364,7 @@ load_option_panel(void)
|
||||
#if ENABLE_NLS
|
||||
OptionCharset = SystemCharset; /* FIXME */
|
||||
#endif
|
||||
#if LANG == JA || ENABLE_NLS
|
||||
#ifdef USE_M17N
|
||||
if (!OptionEncode) {
|
||||
optionpanel_str =
|
||||
wc_Str_conv(optionpanel_str, OptionCharset, InnerCharset);
|
||||
@@ -1634,11 +1452,7 @@ load_option_panel(void)
|
||||
buf = loadHTMLString(src);
|
||||
#ifdef USE_M17N
|
||||
if (buf)
|
||||
#if LANG == JA
|
||||
buf->document_charset = OptionCharset;
|
||||
#else /* XXX: ENABLE_NLS is ok for SystemCharset */
|
||||
buf->document_charset = SystemCharset;
|
||||
#endif
|
||||
#endif
|
||||
return buf;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user