Prepared a system to internationalize the WinBoard menus
authorH.G. Muller <h.g.muller@hccnet.nl>
Sun, 27 Sep 2009 19:11:49 +0000 (12:11 -0700)
committerArun Persaud <arun@nubati.net>
Wed, 30 Sep 2009 05:17:58 +0000 (22:17 -0700)
winboard/internationalize [new file with mode: 0644]
winboard/language.txt [new file with mode: 0644]
winboard/metascript.txt [new file with mode: 0644]

diff --git a/winboard/internationalize b/winboard/internationalize
new file mode 100644 (file)
index 0000000..9465038
--- /dev/null
@@ -0,0 +1,3 @@
+ed $1<metascript.txt\r
+ed winboard.rc<script.txt\r
+windres -D_WIN32_IE=0x0300 -DWIN32 -DJAWS --use-temp-file --include-dir .. tmp.rc -O coff -o wbres.o
\ No newline at end of file
diff --git a/winboard/language.txt b/winboard/language.txt
new file mode 100644 (file)
index 0000000..74a2180
--- /dev/null
@@ -0,0 +1,460 @@
+FILE:NEW VARIANT (only the first 8 need translation?)\r
+\r
+"Variants"===""\r
+"Variant"===""\r
+"Holdings with room for:"===""\r
+"('-1' means defaults for selected variant)"===""\r
+"Board size:"===""\r
+"ranks"===""\r
+"files"===""\r
+"pieces"===""\r
+\r
+"&normal"===""\r
+"&FRC"===""\r
+"&wildcastle"===""\r
+"&nocastle"===""\r
+"&losers"===""\r
+"&giveaway"===""\r
+"s&uicide"===""\r
+"&3Check"===""\r
+"&twokings"===""\r
+"&atomic"===""\r
+"cra&zyhouse"===""\r
+"&bughouse"===""\r
+"&Twilight"===""\r
+"&shogi"===""\r
+"su&per"===""\r
+"&knightmate"===""\r
+"&Berolina"===""\r
+"c&ylinder"===""\r
+"&fairy"===""\r
+"&gothic"===""\r
+"&capablanca"===""\r
+"&Janus"===""\r
+"&CRC"===""\r
+"&Falcon"===""\r
+"cou&rier"===""\r
+"&Great"===""\r
+"&Shatranj"===""\r
+"&xiangqi"===""\r
+\r
+OPTIONS:BOARD (probably only first 13 need translation)\r
+\r
+"Board Options"===""\r
+"Size"===""\r
+"Colors"===""\r
+"Light Squares"===""\r
+"Dark Squares"===""\r
+"White Pieces"===""\r
+"Black Pieces"===""\r
+"Square Highlights"===""\r
+"Premove Highlights"===""\r
+"All White"===""\r
+"Flip Black"===""\r
+"Monochrome"===""\r
+"&Defaults"===""\r
+\r
+"&Tiny"===""\r
+"T&eeny"===""\r
+"&Dinky"===""\r
+"&Petite"===""\r
+"Sl&im"===""\r
+"&Small"===""\r
+"Medi&ocre"===""\r
+"&Middling"===""\r
+"&Average"===""\r
+"Mode&rate"===""\r
+"Medi&um"===""\r
+"Bul&ky"===""\r
+"&Large"===""\r
+"&Big"===""\r
+"&Huge"===""\r
+"&Giant"===""\r
+"&Colossal"===""\r
+"Tita&nic"===""\r
+\r
+PROMOTION POPUP\r
+\r
+"Promote to:"===""\r
+"K&night"===""\r
+"&Bishop"===""\r
+"&Rook"===""\r
+"&Queen"===""\r
+"&King"===""\r
+"&Archbishop"===""\r
+"Chance&llor"===""\r
+"C&entaur"===""\r
+"       NO"===""\r
+"      YES"===""\r
+\r
+OPTIONS:GENERAL\r
+\r
+"General Options"===""\r
+"Always on &Top"===""\r
+"Always &Queen            Ctrl+Shift+Q"===""\r
+"Animate &Dragging"===""\r
+"&Animate Moving         Ctrl+Shift+A"===""\r
+"Auto &Flag                   Ctrl+Shift+F"===""\r
+"Auto Flip &View"===""\r
+"Auto &Raise Board"===""\r
+"&Blindfold"===""\r
+"Highlight Dra&gging"===""\r
+"E&xtended PGN Info    Ctrl+Shift+X"===""\r
+"&Info in Move History   Ctrl+Shift+I"===""\r
+"Highlight Last &Move"===""\r
+"Periodic &Updates"===""\r
+"Ponder &Next Move  Ctrl+Shift+P"===""\r
+"&Popup Exit Message"===""\r
+"Popup Move &Errors"===""\r
+"Show Butt&on Bar"===""\r
+"Show &Coordinates"===""\r
+"&Send Engine Think"===""\r
+"Test &Legality            Ctrl+Shift+L"===""\r
+"&Hide Thinking          Ctrl+Shift+H"===""\r
+"Highlight with Arro&w"===""\r
+\r
+OPTIONS:ADJUDICATIONS\r
+\r
+"Adjudications"===""\r
+"Ponder Next Move"===""\r
+"Enable and Show Thinking (recommended)"===""\r
+"Hide Thinking when Playing against Human"===""\r
+"Periodic Updates (for Analysis Mode)"===""\r
+"Adjudicate draw after:"===""\r
+"moves"===""\r
+"Win/loss adjudication threshold:"===""\r
+"centipawns"===""\r
+"&Verify Engine Claims"===""\r
+"Detect &Mates"===""\r
+"Adjudicate &Trivial Draws"===""\r
+"Draw if &Insufficient Material"===""\r
+"Engine #1 Score is Absolute"===""\r
+"Engine #2 Score is Absolute"===""\r
+"Apply"===""\r
+"-fold repeats"===""\r
+"-move rule"===""\r
+"Engine-engine matches"===""\r
+\r
+OPTIONS:SOUNDS\r
+\r
+"&Event:"===""\r
+"&No sound"===""\r
+"&Default beep"===""\r
+"&Built-in sound:"===""\r
+"&WAV file:"===""\r
+"Defaults"===""\r
+"&Play"===""\r
+"B&rowse..."===""\r
+\r
+OPTIONS:TIMECONTROL\r
+\r
+"Time Control"===""\r
+"Use arrow keys to specify which clock setting type, then press tab to alter values."===""\r
+"Conventional chess clock"===""\r
+"seconds per move"===""\r
+"Number of moves:"===""\r
+"Within number of minutes:"===""\r
+"Incremental clock"===""\r
+"Initial number of minutes:"===""\r
+"Plus number of seconds per move:"===""\r
+"Time-Odds Factors:"===""\r
+"Engine #1:"===""\r
+"Engine #2:"===""\r
+\r
+STARTUP DIALOG\r
+\r
+"WinBoard Startup"===""\r
+"What would you like to do?"===""\r
+"&Play against a chess engine or match two engines"===""\r
+"&Use an Internet Chess Server"===""\r
+"Just &view or edit game files"===""\r
+"Specify Chess &Engines:"===""\r
+"Specify Chess &Server:"===""\r
+"&Additional options"===""\r
+\r
+OPTIONS:FONTS\r
+\r
+"Fonts"===""\r
+"Current Board Size"===""\r
+"Clocks"===""\r
+"Messages"===""\r
+"Coordinates"===""\r
+"All Board Sizes"===""\r
+"Tags"===""\r
+"Comments"===""\r
+"I C S"===""\r
+"Move History, Engine Output"===""\r
+"Choose..."===""\r
+\r
+OPTIONS:ICS\r
+\r
+"ICS Options"===""\r
+"General"===""\r
+"&Auto Comment"===""\r
+"Auto &Observe"===""\r
+"&Get Move List"===""\r
+"&Local Line Editing"===""\r
+"&Quiet Play"===""\r
+"Premove"===""\r
+"&Premove"===""\r
+"&White first move"===""\r
+"&Black first move"===""\r
+"Alarm"===""\r
+"&Sound alarm at"===""\r
+"seconds"===""\r
+"Interaction Colors"===""\r
+"Background..."===""\r
+"&Defaults..."===""\r
+"Do &not colorize messages"===""\r
+\r
+OPTIONS:GAME LIST\r
+\r
+"Game List Options"===""\r
+"PGN &Tags:"===""\r
+"&Up"===""\r
+"&Down"===""\r
+"Restore to:"===""\r
+"Factory"===""\r
+\r
+OPTIONS:SAVE\r
+\r
+"Save Game Options"===""\r
+"Save games automatically"===""\r
+"Prompt for filename"===""\r
+"To file:"===""\r
+"Save As: "===""\r
+"PGN"===""\r
+"Old"===""\r
+"Save out of book info in PGN"===""\r
+\r
+OPTIONS:LOAD\r
+\r
+"Load Game Options"===""\r
+"Load games with automatic stepping"===""\r
+\r
+FILE:NEW VARIANT\r
+\r
+"New Shuffle Game"===""\r
+"Random"===""\r
+"&Start Position Number:"===""\r
+\r
+OPTIONS:GLOBAL SETTINGS\r
+\r
+"Engine Settings"===""\r
+"Polyglot Directory:"===""\r
+"Hash Size (MB):"===""\r
+"Max nr of CPUs:"===""\r
+"EGTB Path:"===""\r
+"EGTB Size (MB):"===""\r
+"Use Book:"===""\r
+"First has Own Book"===""\r
+"Second has Own Book"===""\r
+\r
+HELP:ABOUT\r
+\r
+"About WinBoard"===""\r
+"Chessboard for Windows"===""\r
+"Copyright 1991 Digital Equipment Corporation"===""\r
+"Enhancements Copyright 1992-2009   Free Software Foundation"===""\r
+"Enhancements Copyright 2005\r\nAlessandro Scotti"===""\r
+\r
+OTHER DIALOGS (ALPHABETICALLY)\r
+\r
+"&Bold"===""\r
+"&Cancel"===""\r
+"&Clear"===""\r
+"&Close"===""\r
+"&Color..."===""\r
+"&Directories:"===""\r
+"&Edit"===""\r
+"&Help"===""\r
+"&Index number:"===""\r
+"&Italic"===""\r
+"&Load"===""\r
+"&Port:"===""\r
+"&Stop Bits:"===""\r
+"&Strikeout"===""\r
+"&Underline"===""\r
+"Cancel"===""\r
+"Change"===""\r
+"Chat Window"===""\r
+"Chat partner:"===""\r
+"Clear"===""\r
+"Communication Port Settings"===""\r
+"Data &Bits:"===""\r
+"Data &Rate:"===""\r
+"Default"===""\r
+"Dialog"===""\r
+"Dri&ves:"===""\r
+"Edit Comment"===""\r
+"Edit Tags"===""\r
+"Engine #1"===""\r
+"Engine #2"===""\r
+"Engine output"===""\r
+"Error"===""\r
+"Evaluation Graph"===""\r
+"F&low:"===""\r
+"File &Name:"===""\r
+"Filter"===""\r
+"Game List"===""\r
+"Help"===""\r
+"I C S Interaction Colors"===""\r
+"I C S Interaction"===""\r
+"Inde&x number:"===""\r
+"List Files of &Type:"===""\r
+"Move History"===""\r
+"NPS"===""\r
+"Net&work..."===""\r
+"OK"===""\r
+"Open"===""\r
+"P&arity:"===""\r
+"Question"===""\r
+"Send"===""\r
+"Sounds"===""\r
+"Type in a move"===""\r
+"Type in your name"===""\r
+"WBConsole"===""\r
+"sound type"===""\r
+\r
+MAIN MENUS\r
+\r
+"&File"===""\r
+"New &Game\tCtrl-N"===""\r
+"New Shuffle Game..."===""\r
+"New Variant...\tAlt+Shift+V"===""\r
+"&Load Game...\tCtrl-O"===""\r
+"Load &Next Game\tAlt+PgDn"===""\r
+"Load &Previous Game\tAlt+PgUp"===""\r
+"&Reload Same Game"===""\r
+"&Save Game...\tCtrl-S"===""\r
+"&Copy Game To Clipboard\tCtrl+C"===""\r
+"Paste Game &From Clipboard\tCtrl+V"===""\r
+"Copy Game List to Clipboard"===""\r
+"L&oad Position...\tCtrl+Shift+O"===""\r
+"Load N&ext Position\tAlt+Shift+PgDn"===""\r
+"Load Pre&vious Position\tAlt+Shift+PgUp"===""\r
+"Reload Sa&me Position"===""\r
+"S&ave Position...\tCtrl+Shift+S"===""\r
+"Save &Diagram..."===""\r
+"Cop&y Position To Clipboard\tCtrl+Shift+C"===""\r
+"Pas&te Position From Clipboard\tCtrl+Shift+V"===""\r
+"E&xit"===""\r
+\r
+"&Mode"===""\r
+"Machine &White\tCtrl+W"===""\r
+"Machine &Black\tCtrl+B"===""\r
+"Two &Machines\tCtrl+T"===""\r
+"Machine Bot&h"===""\r
+"&Analysis Mode\tCtrl+A"===""\r
+"Analyze &File\tCtrl+F"===""\r
+"&ICS Client"===""\r
+"Edit &Game\tCtrl+E"===""\r
+"&Edit Position\tShift+Ctrl+E"===""\r
+"Trai&ning"===""\r
+"Show Engine &Output\tAlt+Shift+O"===""\r
+"Show Evaluation Graph\tAlt+Shift+E"===""\r
+"Show Game &List\tAlt+Shift+G"===""\r
+"Show Move History\tAlt+Shift+H"===""\r
+"Open Chat Window"===""\r
+"Edit &Tags..."===""\r
+"Edit &Comment..."===""\r
+"Enter &Username..."===""\r
+"&Pause\tPause"===""\r
+\r
+"&Action"===""\r
+"&Accept\tF3"===""\r
+"D&ecline\tF4"===""\r
+"Re&match\tF12"===""\r
+"Call &Flag\tF5"===""\r
+"&Draw\tF6"===""\r
+"Ad&journ\tF7"===""\r
+"A&bort\tF8"===""\r
+"&Resign\tF9"===""\r
+"Stop &Observing\tF10"===""\r
+"Stop E&xamining\tF11"===""\r
+"Adjudicate to &White"===""\r
+"Adjudicate to &Black"===""\r
+"Adjudicate &Draw"===""\r
+\r
+"&Step"===""\r
+"T&ype In Move...\tAlt+I"===""\r
+"&Backward\tAlt+Left"===""\r
+"&Forward\tAlt+Right"===""\r
+"Back to &Start\tAlt+Home"===""\r
+"Forward to &End\tAlt+End"===""\r
+"Re&vert"===""\r
+"&Truncate Game"===""\r
+"&Move Now\tCtrl+M"===""\r
+"&Retract Move\tCtrl+X"===""\r
+\r
+"&Options"===""\r
+"Flip &View\tF2"===""\r
+"Swap &Clocks"===""\r
+"&Mute all Sounds"===""\r
+"&General..."===""\r
+"&Board..."===""\r
+"Adjudications...\tAlt+Shift+J"===""\r
+"Global Settings...\tAlt+Shift+U"===""\r
+"Engine #1 Settings..."===""\r
+"Engine #2 Settings..."===""\r
+"&ICS..."===""\r
+"&Fonts..."===""\r
+"Soun&ds..."===""\r
+"Game List..."===""\r
+"Comm&unications..."===""\r
+"&Load Game...\tAlt+Shift+L"===""\r
+"&Save Game...\tAlt+Shift+S"===""\r
+"&Time Control...\tAlt+Shift+T"===""\r
+"Save Settings &Now"===""\r
+"Save Settings on E&xit"===""\r
+\r
+"&Help"===""\r
+"Help &Contents\tF1"===""\r
+"Help &Index"===""\r
+"How to &Use Help"===""\r
+"&Hint..."===""\r
+"&Book..."===""\r
+"&About WinBoard"===""\r
+\r
+"White"===""\r
+"Promote"===""\r
+"Pawn"===""\r
+"Knight"===""\r
+"Bishop"===""\r
+"Rook"===""\r
+"Queen"===""\r
+"King"===""\r
+"Archbishop"===""\r
+"Chancellor"===""\r
+"Elephant"===""\r
+"Cannon"===""\r
+"Empty Square"===""\r
+"Black"===""\r
+"Demote"===""\r
+"Clear Board    "===""\r
+\r
+"Lance"===""\r
+"Silver"===""\r
+"Gold"===""\r
+\r
+"Clear Board"===""\r
+\r
+"Drop"===""\r
+\r
+"Cop&y and Paste"===""\r
+"&Copy"===""\r
+"&Paste"===""\r
+"&Undo"===""\r
+"Cu&t"===""\r
+"Select &All"===""\r
+\r
+INFO BOX\r
+\r
+"Includes support for JAWS screen reader"===""\r
+"GNU Project"===""\r
+"Winboard 32-bit GUI for chess"===""\r
+"Winboard"===""\r
+"GPLv3 Copyright © 2009"===""\r
+"winboard.exe"===""\r
+"Winboard"===""\r
+"JAWS (Job Access With Speech) accessiblity build\0"===""\r
diff --git a/winboard/metascript.txt b/winboard/metascript.txt
new file mode 100644 (file)
index 0000000..63de32d
--- /dev/null
@@ -0,0 +1,13 @@
+1,$g/""/d\r
+1,$g/^[^"]*$/d\r
+1,$g/\\/s//&&/g\r
+1,$g/&[^"]*"$/s//\\&/\r
+1,$s/===/\/s\/\//\r
+1,$s/$/\/gp/\r
+1,$s/^/1,$g\//\r
+$a\r
+w tmp.rc\r
+q\r
+.\r
+w script.txt\r
+q\r