From f5757e1a17a400f84bd6fedb0f8e2fea794ce1b5 Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Sat, 2 Apr 2016 07:14:50 +0900 Subject: Support German translated help messages (translation is in progress) Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=765682 --- scripts/Makefile.in | 2 +- scripts/w3mhelp-funcdesc.de.pl.in | 66 +++++++++++++++++++++++++++++++++++++++ scripts/w3mhelp.cgi.in | 7 ++--- 3 files changed, 70 insertions(+), 5 deletions(-) create mode 100644 scripts/w3mhelp-funcdesc.de.pl.in (limited to 'scripts') diff --git a/scripts/Makefile.in b/scripts/Makefile.in index 4da9ce5..a37d792 100644 --- a/scripts/Makefile.in +++ b/scripts/Makefile.in @@ -60,7 +60,7 @@ w3mhelp-funcname.pl: w3mhelp-funcname.pl.in ../funcname.tab $(top_srcdir)/doc/ke @cat $(srcdir)/w3mhelp-funcname.pl.in >> w3mhelp-funcname.pl @echo "done" -w3mhelp-funcdesc-stamp: $(top_srcdir)/doc/README.func $(top_srcdir)/doc-jp/README.func w3mhelp-funcdesc.en.pl.in w3mhelp-funcdesc.ja.pl.in +w3mhelp-funcdesc-stamp: $(top_srcdir)/doc/README.func $(top_srcdir)/doc-jp/README.func $(top_srcdir)/doc-de/README.func w3mhelp-funcdesc.en.pl.in w3mhelp-funcdesc.ja.pl.in w3mhelp-funcdesc.de.pl.in @echo "generating w3mhelp-funcdesc*.pl..." @for dirlang in $(DOCDIRS); do \ dir=`expr "$$dirlang" : "\(.*\):.*"`; \ diff --git a/scripts/w3mhelp-funcdesc.de.pl.in b/scripts/w3mhelp-funcdesc.de.pl.in new file mode 100644 index 0000000..1fe37b4 --- /dev/null +++ b/scripts/w3mhelp-funcdesc.de.pl.in @@ -0,0 +1,66 @@ +# charset +$charset = 'UTF-8'; + +# Buffer selection mode + +%buf_funcdesc = ( + 'BUF:PREV', 'Select previous buffer', + 'BUF:NEXT', 'Select next buffer', + 'BUF:DELETE', 'Delete current buffer', + 'BUF:GO', 'Go to the selected buffer', +); + +%lineedit_funcdesc = ( + 'LINEEDIT:FORWARD', 'Move cursor forward', + 'LINEEDIT:BACK', 'Move cursor backward', + 'LINEEDIT:BS', 'Delete previous character', + 'LINEEDIT:DEL', 'Delete current character', + 'LINEEDIT:KILL_AFTER', 'Kill everything after cursor', + 'LINEEDIT:KILL_BEFORE', 'Kill everything before cursor', + 'LINEEDIT:TOP', 'Move to the top of line', + 'LINEEDIT:BOTTOM', 'Move to the bottom of line', + 'LINEEDIT:PREV', 'Fetch the previous string from the history list', + 'LINEEDIT:NEXT', 'Fetch the next string from the history list', + 'LINEEDIT:EDITOR', 'Edit with external editor', + 'LINEEDIT:COMPLETE', 'Complete filename', + 'LINEEDIT:ACCEPT', 'Accept', +); + +%menu_funcdesc = ( + 'MENU:SELECT', 'Select item', + 'MENU:CLOSE', 'Close menu', + 'MENU:CANCEL', 'Back', + 'MENU:DOWN', 'Move to next item', + 'MENU:UP', 'Move to previous item', + 'MENU:LINE_UP', 'Scroll up one item', + 'MENU:LINE_DOWN', 'Scroll down one item', + 'MENU:TOP', 'Go to top item', + 'MENU:LAST', 'Go to last item', + 'MENU:NEXT', 'Go to next page', + 'MENU:PREV', 'Go to previous page', + 'MENU:SEARCH_FORE', 'Search foreward', + 'MENU:SEARCH_BACK', 'Search backward', + 'MENU:SEARCH_NEXT', 'Search next regexp', + 'MENU:SEARCH_PREV', 'Search previous regexp', + 'MENU:SUSPEND', 'Suspend', +); + +%title = ( + "Show keymap file", 'Show keymap file', + "Page/Cursor motion", 'Page/Cursor motion', + "Hyperlink operation", 'Hyperlink operation', + "File/Stream operation", 'File/Stream operation', + "Buffer operation", 'Buffer operation', + "Tab operation", 'Tab operation', + "Buffer selection mode", 'Buffer selection mode', + "Bookmark operation", 'Bookmark operation', + "Search", 'Search', + "Dictionary look-up", 'Dictionary look-up', + "Mark operation", 'Mark operation', + "Miscellany", 'Miscellany', + "User defined keymaps", 'User defined keymaps', + "Line-editing mode", 'Line-editing mode', + "Pop up menu", 'Pop up menu', +); + +1; diff --git a/scripts/w3mhelp.cgi.in b/scripts/w3mhelp.cgi.in index 157f23e..2c3f4d5 100644 --- a/scripts/w3mhelp.cgi.in +++ b/scripts/w3mhelp.cgi.in @@ -102,8 +102,7 @@ Content-Type: text/html; charset=$charset ******* w3m (WWW-wo-Miru) Version $version by -A.ITO ********
- ***** Key assign table ***** +A.ITO ******** HEADING @@ -112,13 +111,13 @@ $q_version = $version; $q_version =~ s/[^A-Za-z0-9_\$\.\-]/sprintf('%%%02X', ord($&))/ge; $script = "$d[2] version\n"; + print $script, $d[1], "\">[$d[2]]\n"; } } -- cgit v1.2.3