[w3m-dev 04091] option panel: gettextize select list

WATANABE Katsuyuki <[email protected]>
Newsgroups gmane.comp.web.w3m.devel
Message-ID <[email protected]>
$BEOn5$G$9!#(B

$B%*%W%7%g%s@_Dj%Q%M%k$NA*Br;h%j%9%H$,(B gettextize $B$5$l$F(B
$B$$$^$;$s$G$7$?!#(B

 * rc.c: gettextize option select list.
 * rc.c: add gettextize message.
 * po/w3m.pot: ditto.
 * po/ja.po: ditto.

diff -urN -X ignore.lst w3m-0.5.1/po/ja.po w3m-0.5.1-rcfix/po/ja.po
--- w3m-0.5.1/po/ja.po	2004-04-29 03:19:26.000000000 +0900
+++ w3m-0.5.1-rcfix/po/ja.po	2004-07-14 15:57:16.000000000 +0900
@@ -8,7 +8,7 @@
 msgstr ""
 "Project-Id-Version: w3m 0.5.1\n"
 "Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2004-04-29 03:17+0900\n"
+"POT-Creation-Date: 2004-07-14 15:51+0900\n"
 "PO-Revision-Date: 2003-09-26 03:35+0900\n"
 "Last-Translator: Fumitoshi UKAI <[email protected]>\n"
 "Language-Team: Japanese\n"
@@ -717,6 +717,50 @@
 msgid "B:fixed speed"
 msgstr "B:$B0lDj$N9T?t(B"
 
+#: rc.c:292
+msgid "unspecified"
+msgstr "$B;XDj$7$J$$(B"
+
+#: rc.c:293
+msgid "inet inet6"
+msgstr "IPv4$BM%@h(B"
+
+#: rc.c:294
+msgid "inet6 inet"
+msgstr "IPv6$BM%@h(B"
+
+#: rc.c:295
+msgid "inet only"
+msgstr "IPv4$B$N$_(B"
+
+#: rc.c:296
+msgid "inet6 only"
+msgstr "IPv6$B$N$_(B"
+
+#: rc.c:303
+msgid "discard"
+msgstr "$BGK4~$9$k(B"
+
+#: rc.c:305
+msgid "accept"
+msgstr "$B<u$1F~$l$k(B"
+
+#: rc.c:307
+msgid "ask"
+msgstr "$B3NG'$9$k(B"
+
+#: rc.c:317
+msgid "OFF"
+msgstr "$BL58z(B"
+
+#: rc.c:318
+msgid "Only ISO 2022"
+msgstr "ISO 2022 $B$N$_(B"
+
+#: rc.c:319
+msgid "ON"
+msgstr "$BM-8z(B"
+
 #: rc.c:666
 msgid "Display Settings"
 msgstr "$BI=<(4X78(B"
diff -urN -X ignore.lst w3m-0.5.1/po/w3m.pot w3m-0.5.1-rcfix/po/w3m.pot
--- w3m-0.5.1/po/w3m.pot	2004-04-29 03:19:26.000000000 +0900
+++ w3m-0.5.1-rcfix/po/w3m.pot	2004-07-14 15:51:38.000000000 +0900
@@ -8,7 +8,7 @@
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2004-04-29 03:17+0900\n"
+"POT-Creation-Date: 2004-07-14 15:51+0900\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <[email protected]>\n"
@@ -716,6 +716,50 @@
 msgid "B:fixed speed"
 msgstr ""
 
+#: rc.c:292
+msgid "unspecified"
+msgstr ""
+
+#: rc.c:293
+msgid "inet inet6"
+msgstr ""
+
+#: rc.c:294
+msgid "inet6 inet"
+msgstr ""
+
+#: rc.c:295
+msgid "inet only"
+msgstr ""
+
+#: rc.c:296
+msgid "inet6 only"
+msgstr ""
+
+#: rc.c:303
+msgid "discard"
+msgstr ""
+
+#: rc.c:305
+msgid "accept"
+msgstr ""
+
+#: rc.c:307
+msgid "ask"
+msgstr ""
+
+#: rc.c:317
+msgid "OFF"
+msgstr ""
+
+#: rc.c:318
+msgid "Only ISO 2022"
+msgstr ""
+
+#: rc.c:319
+msgid "ON"
+msgstr ""
+
 #: rc.c:666
 msgid "Display Settings"
 msgstr ""
diff -urN -X ignore.lst w3m-0.5.1/rc.c w3m-0.5.1-rcfix/rc.c
--- w3m-0.5.1/rc.c	2004-04-23 01:34:08.000000000 +0900
+++ w3m-0.5.1-rcfix/rc.c	2004-07-14 15:42:42.000000000 +0900
@@ -289,22 +289,22 @@
 
 #ifdef INET6
 static struct sel_c dnsorders[] = {
-    {N_S(DNS_ORDER_UNSPEC), "unspecified"},
-    {N_S(DNS_ORDER_INET_INET6), "inet inet6"},
-    {N_S(DNS_ORDER_INET6_INET), "inet6 inet"},
-    {N_S(DNS_ORDER_INET_ONLY), "inet only"},
-    {N_S(DNS_ORDER_INET6_ONLY), "inet6 only"},
+    {N_S(DNS_ORDER_UNSPEC), N_("unspecified")},
+    {N_S(DNS_ORDER_INET_INET6), N_("inet inet6")},
+    {N_S(DNS_ORDER_INET6_INET), N_("inet6 inet")},
+    {N_S(DNS_ORDER_INET_ONLY), N_("inet only")},
+    {N_S(DNS_ORDER_INET6_ONLY), N_("inet6 only")},
     {0, NULL, NULL}
 };
 #endif				/* INET6 */
 
 #ifdef USE_COOKIE
 static struct sel_c badcookiestr[] = {
-    {N_S(ACCEPT_BAD_COOKIE_DISCARD), "discard"},
+    {N_S(ACCEPT_BAD_COOKIE_DISCARD), N_("discard")},
 #if 0
-    {N_S(ACCEPT_BAD_COOKIE_ACCEPT), "accept"},
+    {N_S(ACCEPT_BAD_COOKIE_ACCEPT), N_("accept")},
 #endif
-    {N_S(ACCEPT_BAD_COOKIE_ASK), "ask"},
+    {N_S(ACCEPT_BAD_COOKIE_ASK), N_("ask")},
     {0, NULL, NULL}
 };
 #endif				/* USE_COOKIE */
@@ -314,9 +314,9 @@
 static wc_ces_list *document_charset_str = NULL;
 static wc_ces_list *system_charset_str = NULL;
 static struct sel_c auto_detect_str[] = {
-    {N_S(WC_OPT_DETECT_OFF), "OFF"},
-    {N_S(WC_OPT_DETECT_ISO_2022), "Only ISO 2022"},
-    {N_S(WC_OPT_DETECT_ON), "ON"},
+    {N_S(WC_OPT_DETECT_OFF), N_("OFF")},
+    {N_S(WC_OPT_DETECT_ISO_2022), N_("Only ISO 2022")},
+    {N_S(WC_OPT_DETECT_ON), N_("ON")},
     {0, NULL, NULL}
 };
 #endif
@@ -1303,7 +1303,7 @@
 
     if (optionpanel_str == NULL)
 	optionpanel_str = Sprintf(optionpanel_src1, w3m_version,
-				  html_quote(localCookie()->ptr), CMT_HELPER);
+			      html_quote(localCookie()->ptr), _(CMT_HELPER));
 #if ENABLE_NLS
     OptionCharset = SystemCharset;	/* FIXME */
 #endif
@@ -1313,16 +1313,24 @@
 	    wc_Str_conv(optionpanel_str, OptionCharset, InnerCharset);
 	for (i = 0; sections[i].name != NULL; i++) {
 	    sections[i].name =
-		wc_conv(gettext(sections[i].name), OptionCharset,
+		wc_conv(_(sections[i].name), OptionCharset,
 			InnerCharset)->ptr;
-	    for (p = sections[i].params; p->name; p++)
+	    for (p = sections[i].params; p->name; p++) {
 		p->comment =
-		    wc_conv(gettext(p->comment), OptionCharset,
+		    wc_conv(_(p->comment), OptionCharset,
 			    InnerCharset)->ptr;
+		if (p->inputtype == PI_SEL_C) {
+		    for (s = (struct sel_c *)p->select; s->text != NULL; s++) {
+			s->text =
+			    wc_conv(_(s->text), OptionCharset,
+				    InnerCharset)->ptr;
+		    }
+		}
+	    }
 	}
 #ifdef USE_COLOR
 	for (s = colorstr; s->text; s++)
-	    s->text = wc_conv(gettext(s->text), OptionCharset,
+	    s->text = wc_conv(_(s->text), OptionCharset,
 			      InnerCharset)->ptr;
 #endif
 	OptionEncode = TRUE;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.