diff --git a/katrain/__main__.py b/katrain/__main__.py index 841a421..9797bca 100644 --- a/katrain/__main__.py +++ b/katrain/__main__.py @@ -483,6 +483,7 @@ class KaTrainApp(MDApp): def run_app(): app = KaTrainApp() signal.signal(signal.SIGINT, app.signal_handler) + try: app.run() except Exception as e: diff --git a/katrain/config.json b/katrain/config.json index 248f080..5639b75 100644 --- a/katrain/config.json +++ b/katrain/config.json @@ -18,11 +18,12 @@ "anim_pv_time": 0.5, "debug_level": 0, "lang": "en", - "version": "1.1.0" + "version": "1.1.1" }, "timer": { "byo_length": 30, - "byo_periods": 5 + "byo_periods": 5, + "sound": True }, "game": { "size": "19", diff --git a/katrain/core/constants.py b/katrain/core/constants.py index 00c31ee..7bd9799 100644 --- a/katrain/core/constants.py +++ b/katrain/core/constants.py @@ -1,6 +1,6 @@ VERSION = "1.1.1" HOMEPAGE = "https://github.com/sanderland/katrain" -CONFIG_MIN_VERSION = "1.1.0" +CONFIG_MIN_VERSION = "1.1.1" PLAYER_HUMAN, PLAYER_AI = "player:human", "player:ai" PLAYER_TYPES = [PLAYER_HUMAN, PLAYER_AI] diff --git a/katrain/gui/controlspanel.py b/katrain/gui/controlspanel.py index 9e9805c..1633275 100644 --- a/katrain/gui/controlspanel.py +++ b/katrain/gui/controlspanel.py @@ -114,7 +114,7 @@ class ControlsPanel(BoxLayout): now = time.time() byo_len = max(1, self.katrain.config("timer/byo_length")) byo_num = max(1, self.katrain.config("timer/byo_periods")) - sounds_on = max(1, self.katrain.config("timer/sounds",True)) + sounds_on = self.katrain.config("timer/sound", True) or True player = self.katrain.next_player_info ai = player.ai used_period = False diff --git a/katrain/i18n/locales/en/LC_MESSAGES/katrain.mo b/katrain/i18n/locales/en/LC_MESSAGES/katrain.mo index 992caf3..11da12f 100644 Binary files a/katrain/i18n/locales/en/LC_MESSAGES/katrain.mo and b/katrain/i18n/locales/en/LC_MESSAGES/katrain.mo differ diff --git a/katrain/i18n/locales/en/LC_MESSAGES/katrain.po b/katrain/i18n/locales/en/LC_MESSAGES/katrain.po index 4d60fe0..e8c848c 100644 --- a/katrain/i18n/locales/en/LC_MESSAGES/katrain.po +++ b/katrain/i18n/locales/en/LC_MESSAGES/katrain.po @@ -253,8 +253,8 @@ msgstr "Time per Byo-yomi Period" msgid "byoyomi periods" msgstr "Number of Periods" -msgid "count down sounds" -msgstr "Count Down Sounds" +msgid "count down sound" +msgstr "Sound on" #. submit button msgid "update timer" diff --git a/katrain/i18n/locales/fr/LC_MESSAGES/katrain.mo b/katrain/i18n/locales/fr/LC_MESSAGES/katrain.mo index 8240345..1a8a054 100644 Binary files a/katrain/i18n/locales/fr/LC_MESSAGES/katrain.mo and b/katrain/i18n/locales/fr/LC_MESSAGES/katrain.mo differ diff --git a/katrain/i18n/locales/fr/LC_MESSAGES/katrain.po b/katrain/i18n/locales/fr/LC_MESSAGES/katrain.po index b704d1c..61066cb 100644 --- a/katrain/i18n/locales/fr/LC_MESSAGES/katrain.po +++ b/katrain/i18n/locales/fr/LC_MESSAGES/katrain.po @@ -250,6 +250,9 @@ msgstr "Secondes par période" msgid "byoyomi periods" msgstr "Nombre de périodes" +msgid "count down sound" +msgstr "Activer le son" + #. submit button msgid "update timer" msgstr "Confirmer" @@ -594,7 +597,3 @@ msgstr "" "Le coup {move} a été annulé car il perdait {points_lost:.1f} points. Vous " "pouvez survoler le coup pour voir la réfutation. Veuillez jouer un nouveau " "coup." - -#. TODO -msgid "count down sounds" -msgstr "Count Down Sounds" diff --git a/katrain/i18n/locales/haha/LC_MESSAGES/katrain.mo b/katrain/i18n/locales/haha/LC_MESSAGES/katrain.mo index c2889e9..f14021b 100644 Binary files a/katrain/i18n/locales/haha/LC_MESSAGES/katrain.mo and b/katrain/i18n/locales/haha/LC_MESSAGES/katrain.mo differ diff --git a/katrain/i18n/locales/haha/LC_MESSAGES/katrain.po b/katrain/i18n/locales/haha/LC_MESSAGES/katrain.po index b7f19f7..fa0918c 100644 --- a/katrain/i18n/locales/haha/LC_MESSAGES/katrain.po +++ b/katrain/i18n/locales/haha/LC_MESSAGES/katrain.po @@ -6,136 +6,277 @@ msgstr "" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -msgid "general:sgf_load" -msgstr "ㅋㅋPath for loading SGF files" - -msgid "btn:Play" -msgstr "ㅋㅋPlay" - -msgid "game:normal" -msgstr "ㅋㅋNormal Game" - -msgid "engine:config" -msgstr "ㅋㅋPath to KataGo config file" - -msgid "aihelp:policy" -msgstr "" -"ㅋㅋPlays the top move from the policy network, without any reading. Strength " -"is mainly affected by `model` in engine settings. The opening moves setting " -"affects how many moves in the opening are more random." - -msgid "analysis:topmoves" -msgstr "" -"ㅋㅋTop\n" -"Moves" - -msgid "aihelp:p:tenuki" -msgstr "" -"ㅋㅋPicks `pick_n + pick_frac * ` weighted away from " -"the last move and plays the best one. Plays top move if policy value is " -"above `pick_override` to avoid obvious mistakes. A higher `stddev` makes it " -"play further away." - -msgid "general settings" -msgstr "ㅋㅋGeneral Settings" - -msgid "general:debug_level" -msgstr "ㅋㅋDebug level in the console" - -msgid "ai:p:local" -msgstr "ㅋㅋLocal Style" - -msgid "avoids replaying" -msgstr "" -"ㅋㅋAvoids replaying\n" -"identical games" - -msgid "ai:p:territory" -msgstr "ㅋㅋTerritorial Style" - -msgid "wait-before-equalize" -msgstr "" -"ㅋㅋWait for initial analysis to complete before requesting a refinement." - -msgid "Copied SGF to clipboard." -msgstr "ㅋㅋCopied SGF to clipboard." - -msgid "Info:AI thoughts" -msgstr "ㅋㅋAI thought process: {thoughts}" - -msgid "Starting Kata failed" -msgstr "" -"ㅋㅋStarting KataGo with command '{command}' failed with error {error}. Please" -" make sure the 'katago' value under 'engine' in settings points to the " -"correct KataGo executable." +msgid "analysis:equalize" +msgstr "ㅋㅋEqualize visits of potential moves" msgid "Engine died unexpectedly" msgstr "" "ㅋㅋEngine died unexpectedly without sending output, possibly due to out of " "memory: {error}" -msgid "menu:settings" -msgstr "ㅋㅋGeneral & Engine Settings" +msgid "general settings" +msgstr "ㅋㅋGeneral Settings" -msgid "save dots" -msgstr "ㅋㅋSave in SGF" +msgid "ai:p:local" +msgstr "ㅋㅋLocal Style" -msgid "ai:scoreloss" -msgstr "ㅋㅋScore Loss" - -msgid "player:human" -msgstr "ㅋㅋHuman" - -msgid "menu:playersetup" -msgstr "ㅋㅋPlayer Setup" - -msgid "tab:notes" -msgstr "ㅋㅋNotes" - -msgid "Jigo" -msgstr "ㅋㅋJigo" - -msgid "komi" -msgstr "ㅋㅋKomi" - -msgid "general:debug_level:hint" -msgstr "ㅋㅋSet to 1 when reporting errors" - -msgid "stats:pointslost" -msgstr "ㅋㅋPoints Lost" - -msgid "menu:load" -msgstr "ㅋㅋLoad Game" - -msgid "engine:wide_root_noise" -msgstr "ㅋㅋWide root noise (increases variety of moves considered)" - -msgid "engine:katago" -msgstr "ㅋㅋPath to KataGo executable" - -msgid "teacher settings" -msgstr "ㅋㅋEdit Teacher Settings" - -msgid "Info:undo predicted PV" -msgstr "ㅋㅋPredicted follow-up: {pv}" +msgid "point loss threshold" +msgstr "ㅋㅋPoint loss greater than" msgid "chinese" msgstr "ㅋㅋChinese" -msgid "update settings" -msgstr "ㅋㅋUpdate Settings" +msgid "load sgf rewind" +msgstr "ㅋㅋRewind to start" -msgid "ai:default" -msgstr "ㅋㅋKataGo" +msgid "save dots" +msgstr "ㅋㅋSave in SGF" -msgid "show dots" -msgstr "ㅋㅋShow dots" +msgid "ai-ponder" +msgstr "" +"ㅋㅋThis simply indicates the Engine status, going from green (idle) to orange" +" (processing queries). It turns red when the engine has crashed or fails to " +"start." msgid "ruleset" msgstr "ㅋㅋRules" -msgid "Analyzing move..." -msgstr "ㅋㅋAnalyzing move..." +msgid "non square board hint" +msgstr "ㅋㅋUse x:y (e.g. 19:9) for non-square size" + +msgid "menu:save" +msgstr "ㅋㅋSave Game" + +msgid "new game" +msgstr "ㅋㅋStart New Game" + +msgid "menu:load" +msgstr "ㅋㅋLoad Game" + +msgid "byoyomi length" +msgstr "ㅋㅋTime per Byo-yomi Period" + +msgid "player:ai" +msgstr "ㅋㅋAI" + +msgid "menu:aisettings" +msgstr "ㅋㅋAI Settings" + +msgid "sgf written" +msgstr "ㅋㅋSGF with analysis written to {file_name}" + +msgid "load sgf fast analysis" +msgstr "ㅋㅋUse fast analysis" + +msgid "btn:Analyze" +msgstr "ㅋㅋAnalysis Options" + +msgid "load sgf title" +msgstr "ㅋㅋLoad SGF File to Analyze" + +msgid "ai:policy" +msgstr "ㅋㅋPolicy" + +msgid "show last n dots" +msgstr "" +"ㅋㅋShow dots for the last\n" +" moves" + +msgid "engine:fast_visits" +msgstr "ㅋㅋMaximum number of visits in fast analysis" + +msgid "engine:max_visits" +msgstr "ㅋㅋMaximum number of visits in analysis" + +msgid "teacher settings" +msgstr "ㅋㅋEdit Teacher Settings" + +msgid "count down sound" +msgstr "ㅋㅋSound on" + +msgid "stats:pointslost" +msgstr "ㅋㅋPoints Lost" + +msgid "Copied SGF to clipboard." +msgstr "ㅋㅋCopied SGF to clipboard." + +msgid "Info:point loss" +msgstr "ㅋㅋEstimated point loss: {points_lost:.1f}" + +msgid "analysis:topmoves" +msgstr "" +"ㅋㅋTop\n" +"Moves" + +msgid "engine:wide_root_noise:hint" +msgstr "" +"ㅋㅋUse 0.02-0.1 to show\n" +"more possible moves" + +msgid "Info:best move" +msgstr "ㅋㅋMove was predicted best move" + +msgid "analysis:policy" +msgstr "" +"ㅋㅋPolicy\n" +"Moves" + +msgid "ai:p:tenuki" +msgstr "ㅋㅋTenuki Style" + +msgid "Info:undo predicted PV" +msgstr "ㅋㅋPredicted follow-up: {pv}" + +msgid "ai settings" +msgstr "ㅋㅋAdvanced AI Settings" + +msgid "stats:winrate" +msgstr "ㅋㅋWin Rate" + +msgid "ai:p:territory" +msgstr "ㅋㅋTerritorial Style" + +msgid "engine:wide_root_noise" +msgstr "ㅋㅋWide root noise (increases variety of moves considered)" + +msgid "analysis:territory" +msgstr "" +"ㅋㅋExpected\n" +"Territory" + +msgid "engine:katago" +msgstr "ㅋㅋPath to KataGo executable" + +msgid "wait-before-equalize" +msgstr "" +"ㅋㅋWait for initial analysis to complete before requesting a refinement." + +msgid "closedlabel:movestats" +msgstr "ㅋㅋMove Stats" + +msgid "menu:support" +msgstr "ㅋㅋSupport" + +msgid "Failed to import from clipboard" +msgstr "" +"ㅋㅋFailed to import game from clipboard: {error}\n" +"Clipboard contents: {contents}..." + +msgid "btn:Analysis" +msgstr "ㅋㅋAnalysis" + +msgid "aga" +msgstr "ㅋㅋAGA" + +msgid "teaching undo message" +msgstr "" +"ㅋㅋUndid move {move} as it lost {points_lost:.1f} points. Hover over the move" +" to see expected refutation. Please try again." + +msgid "menu:newgame" +msgstr "ㅋㅋNew Game" + +msgid "move" +msgstr "ㅋㅋMove {number}" + +msgid "board-game-end" +msgstr "" +"ㅋㅋgame\n" +"end" + +msgid "No analysis available" +msgstr "ㅋㅋNo analysis available" + +msgid "aihelp:p:influence" +msgstr "" +"ㅋㅋPicks moves biased above the `threshold` line and plays the best one. " +"Increase `line_weight` to penalize moves near the edge more. Stops strategy " +"after the 'endgame' fraction of the board is filled." + +msgid "tab:info" +msgstr "ㅋㅋInfo" + +msgid "engine:config" +msgstr "ㅋㅋPath to KataGo config file" + +msgid "ai:default" +msgstr "ㅋㅋKataGo" + +msgid "lock ai when playing" +msgstr "" +"ㅋㅋDisable top moves\n" +" while in play mode" + +msgid "player:type" +msgstr "ㅋㅋPlayer" + +msgid "show dots" +msgstr "ㅋㅋShow dots" + +msgid "closedlabel:info¬es" +msgstr "ㅋㅋMove Info & Notes" + +msgid "Info:top move" +msgstr "ㅋㅋPredicted top move was {top_move} ({score})." + +msgid "aihelp:scoreloss" +msgstr "" +"ㅋㅋPlays moves that lead to more points lost with lower probability. Likely " +"to play more varied/weaker with higher visits settings." + +msgid "num undos" +msgstr "ㅋㅋNumber of undos" + +msgid "ai:p:weighted" +msgstr "ㅋㅋPolicy Weighted" + +msgid "analysis:sweep" +msgstr "ㅋㅋFast analysis of all moves" + +msgid "update teacher" +msgstr "ㅋㅋUpdate Feedback Settings" + +msgid "japanese" +msgstr "ㅋㅋJapanese" + +msgid "btn:Play" +msgstr "ㅋㅋPlay" + +msgid "ai:p:pick" +msgstr "ㅋㅋBlinded Policy" + +msgid "aihelp:p:territory" +msgstr "" +"ㅋㅋPicks moves biased below the `threshold` line and plays the best one. " +"Increase `line_weight` to penalize moves near the center more. Stops " +"strategy after the 'endgame' fraction of the board is filled." + +msgid "timer settings" +msgstr "ㅋㅋAdjust Timer Settings" + +msgid "file not found" +msgstr "ㅋㅋPath does not exist" + +msgid "config file path" +msgstr "ㅋㅋAll options are saved in {file}" + +msgid "game:teach" +msgstr "ㅋㅋTeaching Game" + +msgid "Failed to load SGF" +msgstr "ㅋㅋFailed to load SGF. Parse Error: {error}" + +msgid "gametype" +msgstr "ㅋㅋGame Type" + +msgid "update ai settings" +msgstr "ㅋㅋUpdate AI Settings" + +msgid "aihelp:default" +msgstr "" +"ㅋㅋFull strength KataGo AI. Strength is affected by `max visits` and `model`" +" in the general settings `engine` section and engine configuration file. No " +"options are available here." msgid "Starting default Kata failed" msgstr "" @@ -143,26 +284,51 @@ msgstr "" "MacOS, see the manual on how to use brew to install katago first, and add it" " to your path or 'engine/katago' setting." +msgid "aihelp:p:pick" +msgstr "" +"ㅋㅋPicks `pick_n + pick_frac * ` at random and plays " +"the best one. For `pick_frac=1` plays like the `Policy` AI. Plays top move " +"if policy value is above `pick_override` to avoid obvious mistakes." + +msgid "show ai dots" +msgstr "" +"ㅋㅋShow dots/SGF comments\n" +" for AI players" + +msgid "menu:lang" +msgstr "ㅋㅋLanguage" + +msgid "Info:PV" +msgstr "ㅋㅋPV: {pv}" + msgid "tab:points" msgstr "ㅋㅋPoint Loss" -msgid "pass-button-text" -msgstr "ㅋㅋPass" +msgid "analysis:extra" +msgstr "ㅋㅋDeeper analysis" -msgid "ai settings" -msgstr "ㅋㅋAdvanced AI Settings" +msgid "SGF start message" +msgstr "" +"ㅋㅋMoves marked 'X' indicate the top move according to KataGo, those with a " +"square are moves that lose less than 0.5 points" + +msgid "general:sgf_load" +msgstr "ㅋㅋPath for loading SGF files" msgid "ai:jigo" msgstr "ㅋㅋKataJigo" -msgid "analysis:aimove" -msgstr "ㅋㅋForce AI Move" +msgid "engine settings" +msgstr "ㅋㅋKataGo Engine Settings" -msgid "board size" -msgstr "ㅋㅋBoard size" +msgid "komi" +msgstr "ㅋㅋKomi" -msgid "tab:winrate" -msgstr "ㅋㅋWin Rate" +msgid "general settings title" +msgstr "ㅋㅋGeneral and Engine Settings" + +msgid "byoyomi periods" +msgstr "ㅋㅋNumber of Periods" msgid "aihelp:p:weighted" msgstr "" @@ -172,72 +338,50 @@ msgstr "" "without randomness, and `lower_bound` determines the lower bound policy " "value that is allowed." -msgid "strength:dan" -msgstr "ㅋㅋd" +msgid "engine:katago:hint" +msgstr "ㅋㅋLeave blank to use included executable" -msgid "byoyomi length" -msgstr "ㅋㅋTime per Byo-yomi Period" +msgid "Analyzing move..." +msgstr "ㅋㅋAnalyzing move..." -msgid "tab:score" -msgstr "ㅋㅋScore" +msgid "update timer" +msgstr "ㅋㅋUpdate Timer" -msgid "sgf written" -msgstr "ㅋㅋSGF with analysis written to {file_name}" +msgid "engine:model" +msgstr "ㅋㅋPath to KataGo model file" -msgid "game:teach" -msgstr "ㅋㅋTeaching Game" - -msgid "menu:lang" -msgstr "ㅋㅋLanguage" - -msgid "clear cache" -msgstr "ㅋㅋClear Cache" +msgid "dot color" +msgstr "ㅋㅋColour (fixed)" msgid "aihelp:jigo" msgstr "" "ㅋㅋWill try to win by a set amount of points (default 0.5), without further " "restrictions." -msgid "Info:policy rank" -msgstr "ㅋㅋMove was #{rank} according to policy ({probability:.2%})." +msgid "strength:dan" +msgstr "ㅋㅋd" -msgid "update ai settings" -msgstr "ㅋㅋUpdate AI Settings" +msgid "stats:pointsgained" +msgstr "ㅋㅋPoints Gained" -msgid "menu:support" -msgstr "ㅋㅋSupport" +msgid "handicap" +msgstr "ㅋㅋHandicap" -msgid "dot color" -msgstr "ㅋㅋColour (fixed)" - -msgid "Failed to load SGF" -msgstr "ㅋㅋFailed to load SGF. Parse Error: {error}" - -msgid "update teacher" -msgstr "ㅋㅋUpdate Feedback Settings" - -msgid "menu:newgame" -msgstr "ㅋㅋNew Game" - -msgid "New Game title" -msgstr "ㅋㅋSetup New Game" - -msgid "Info:top move" -msgstr "ㅋㅋPredicted top move was {top_move} ({score})." - -msgid "show last n dots" +msgid "aihelp:p:tenuki" msgstr "" -"ㅋㅋShow dots for the last\n" -" moves" +"ㅋㅋPicks `pick_n + pick_frac * ` weighted away from " +"the last move and plays the best one. Plays top move if policy value is " +"above `pick_override` to avoid obvious mistakes. A higher `stddev` makes it " +"play further away." -msgid "num undos" -msgstr "ㅋㅋNumber of undos" +msgid "engine:max_time" +msgstr "ㅋㅋMaximum time for analysis" -msgid "ai-ponder" -msgstr "" -"ㅋㅋThis simply indicates the Engine status, going from green (idle) to orange" -" (processing queries). It turns red when the engine has crashed or fails to " -"start." +msgid "Info:policy best" +msgstr "ㅋㅋTop policy move was {move} ({probability:.1%})." + +msgid "game:normal" +msgstr "ㅋㅋNormal Game" msgid "aihelp:p:local" msgstr "" @@ -245,287 +389,143 @@ msgstr "" "last move and plays the best one. Plays top move if policy value is above " "`pick_override` to avoid obvious mistakes." -msgid "analysis:extra" -msgstr "ㅋㅋDeeper analysis" +msgid "tab:score" +msgstr "ㅋㅋScore" -msgid "byoyomi periods" -msgstr "ㅋㅋNumber of Periods" +msgid "strength:kyu" +msgstr "ㅋㅋk" -msgid "show ai dots" +msgid "clear cache" +msgstr "ㅋㅋClear Cache" + +msgid "ai:scoreloss" +msgstr "ㅋㅋScore Loss" + +msgid "Starting Kata failed" msgstr "" -"ㅋㅋShow dots/SGF comments\n" -" for AI players" +"ㅋㅋStarting KataGo with command '{command}' failed with error {error}. Please" +" make sure the 'katago' value under 'engine' in settings points to the " +"correct KataGo executable." -msgid "ai:p:pick" -msgstr "ㅋㅋBlinded Policy" +msgid "pass-button-text" +msgstr "ㅋㅋPass" -msgid "ai:policy" -msgstr "ㅋㅋPolicy" - -msgid "restarting engine" -msgstr "ㅋㅋRestarting Engine after Settings Change." - -msgid "menu:clocksettings" -msgstr "ㅋㅋTimer Settings" - -msgid "analysis:equalize" -msgstr "ㅋㅋEqualize visits of potential moves" - -msgid "engine:max_time" -msgstr "ㅋㅋMaximum time for analysis" - -msgid "closedlabel:info¬es" -msgstr "ㅋㅋMove Info & Notes" - -msgid "aihelp:p:pick" +msgid "avoids replaying" msgstr "" -"ㅋㅋPicks `pick_n + pick_frac * ` at random and plays " -"the best one. For `pick_frac=1` plays like the `Policy` AI. Plays top move " -"if policy value is above `pick_override` to avoid obvious mistakes." +"ㅋㅋAvoids replaying\n" +"identical games" -msgid "Info:score" -msgstr "ㅋㅋScore: {score}" +msgid "general:debug_level:hint" +msgstr "ㅋㅋSet to 1 when reporting errors" -msgid "japanese" -msgstr "ㅋㅋJapanese" - -msgid "engine settings" -msgstr "ㅋㅋKataGo Engine Settings" - -msgid "general settings title" -msgstr "ㅋㅋGeneral and Engine Settings" - -msgid "engine:katago:hint" -msgstr "ㅋㅋLeave blank to use included executable" - -msgid "Info:best move" -msgstr "ㅋㅋMove was predicted best move" - -msgid "file not found" -msgstr "ㅋㅋPath does not exist" - -msgid "analysis:policy" -msgstr "" -"ㅋㅋPolicy\n" -"Moves" - -msgid "Select AI" -msgstr "ㅋㅋSelect AI strategy to configure" - -msgid "SGF Notes Hint" -msgstr "ㅋㅋYour SGF notes for this position here." - -msgid "load sgf rewind" -msgstr "ㅋㅋRewind to start" - -msgid "Info:winrate" -msgstr "ㅋㅋWin rate: {winrate}" - -msgid "move" -msgstr "ㅋㅋMove {number}" - -msgid "menu:save" -msgstr "ㅋㅋSave Game" - -msgid "board-pass" -msgstr "ㅋㅋpass" - -msgid "aistrategy" -msgstr "ㅋㅋAI Strategy" - -msgid "load sgf fast analysis" -msgstr "ㅋㅋUse fast analysis" - -msgid "engine:fast_visits" -msgstr "ㅋㅋMaximum number of visits in fast analysis" - -msgid "player:ai" -msgstr "ㅋㅋAI" - -msgid "menu:manual" -msgstr "ㅋㅋManual" - -msgid "analysis:sweep" -msgstr "ㅋㅋFast analysis of all moves" - -msgid "board-game-end" -msgstr "" -"ㅋㅋgame\n" -"end" - -msgid "undo-button-text" -msgstr "ㅋㅋUndo" - -msgid "aihelp:p:territory" -msgstr "" -"ㅋㅋPicks moves biased below the `threshold` line and plays the best " -"one.Increase `line_weight` to penalize moves near the center more. Stops " -"strategy after the 'endgame' fraction of the board is filled." - -msgid "engine:model" -msgstr "ㅋㅋPath to KataGo model file" - -msgid "korean" -msgstr "ㅋㅋKorean" - -msgid "closedlabel:scoregraph" -msgstr "ㅋㅋScore Graph" +msgid "ai:p:influence" +msgstr "ㅋㅋInfluential Style" msgid "analysis:dots" msgstr "" "ㅋㅋShow\n" "Dots" -msgid "non square board hint" -msgstr "ㅋㅋUse x:y (e.g. 19:9) for non-square size" +msgid "menu:manual" +msgstr "ㅋㅋManual" -msgid "lock ai when playing" +msgid "general:sgf_save" +msgstr "ㅋㅋPath for saving SGF files" + +msgid "Jigo" +msgstr "ㅋㅋJigo" + +msgid "update settings" +msgstr "ㅋㅋUpdate Settings" + +msgid "Info:AI thoughts" +msgstr "ㅋㅋAI thought process: {thoughts}" + +msgid "Info:policy rank" +msgstr "ㅋㅋMove was #{rank} according to policy ({probability:.2%})." + +msgid "aihelp:policy" msgstr "" -"ㅋㅋDisable analysis\n" -" while in play mode" - -msgid "general:anim_pv_time" -msgstr "ㅋㅋTime between moves when animating a sequence" - -msgid "stats:score" -msgstr "ㅋㅋEstimated Score" - -msgid "new game" -msgstr "ㅋㅋStart New Game" - -msgid "update timer" -msgstr "ㅋㅋUpdate Timer" - -msgid "Info:policy best" -msgstr "ㅋㅋTop policy move was {move} ({probability:.1%})." - -msgid "handicap" -msgstr "ㅋㅋHandicap" - -msgid "closedlabel:movestats" -msgstr "ㅋㅋMove Stats" - -msgid "stats:pointsgained" -msgstr "ㅋㅋPoints Gained" - -msgid "Info:point loss" -msgstr "ㅋㅋEstimated point loss: {points_lost:.1f}" - -msgid "tab:info" -msgstr "ㅋㅋInfo" - -msgid "gametype" -msgstr "ㅋㅋGame Type" - -msgid "ai:p:weighted" -msgstr "ㅋㅋPolicy Weighted" - -msgid "menu:aisettings" -msgstr "ㅋㅋAI Settings" - -msgid "btn:Analysis" -msgstr "ㅋㅋAnalysis" - -msgid "SGF start message" -msgstr "" -"ㅋㅋMoves marked 'X' indicate the top move according to KataGo, those with a " -"square are moves that lose less than 0.5 points" - -msgid "player:type" -msgstr "ㅋㅋPlayer" - -msgid "aihelp:default" -msgstr "" -"ㅋㅋFull strength KataGo AI. Strength is affected by `max_visits` and `model`" -" in the general settings `engine` section and engine configuration file. No " -"options are available here." - -msgid "analysis:territory" -msgstr "" -"ㅋㅋExpected\n" -"Territory" - -msgid "No analysis available" -msgstr "ㅋㅋNo analysis available" - -msgid "point loss threshold" -msgstr "ㅋㅋPoint loss greater than" - -msgid "ai:p:influence" -msgstr "ㅋㅋInfluential Style" - -msgid "aihelp:p:influence" -msgstr "" -"ㅋㅋPicks moves biased above the `threshold` line and plays the best " -"one.Increase `line_weight` to penalize moves near the edge more. Stops " -"strategy after the 'endgame' fraction of the board is filled." - -msgid "ai:p:tenuki" -msgstr "ㅋㅋTenuki Style" +"ㅋㅋPlays the top move from the policy network, without any reading. Strength " +"is mainly affected by `model` in engine settings. The opening moves setting " +"affects how many moves in the opening are more random." msgid "menu:teachsettings" msgstr "ㅋㅋTeaching Game Settings" -msgid "aga" -msgstr "ㅋㅋAGA" +msgid "stats:score" +msgstr "ㅋㅋEstimated Score" -msgid "btn:Analyze" -msgstr "ㅋㅋAnalyze" +msgid "menu:clocksettings" +msgstr "ㅋㅋTimer Settings" -msgid "Info:PV" -msgstr "ㅋㅋPV: {pv}" +msgid "Info:score" +msgstr "ㅋㅋScore: {score}" -msgid "stats:winrate" +msgid "closedlabel:scoregraph" +msgstr "ㅋㅋScore Graph" + +msgid "Info:winrate" +msgstr "ㅋㅋWin rate: {winrate}" + +msgid "SGF Notes Hint" +msgstr "ㅋㅋYour SGF notes for this position here." + +msgid "menu:settings" +msgstr "ㅋㅋGeneral & Engine Settings" + +msgid "tab:notes" +msgstr "ㅋㅋNotes" + +msgid "general:anim_pv_time" +msgstr "ㅋㅋTime between moves when animating a sequence" + +msgid "analysis:aimove" +msgstr "ㅋㅋForce AI Move" + +msgid "board-pass" +msgstr "ㅋㅋpass" + +msgid "player:human" +msgstr "ㅋㅋHuman" + +msgid "aistrategy" +msgstr "ㅋㅋAI Strategy" + +msgid "korean" +msgstr "ㅋㅋKorean" + +msgid "menu:playersetup" +msgstr "ㅋㅋPlayer Setup" + +msgid "New Game title" +msgstr "ㅋㅋSetup New Game" + +msgid "tab:winrate" msgstr "ㅋㅋWin Rate" -msgid "engine:max_visits" -msgstr "ㅋㅋMaximum number of visits in analysis" +msgid "engine:time:hint" +msgstr "ㅋㅋTime in seconds" + +msgid "undo-button-text" +msgstr "ㅋㅋUndo" + +msgid "board size" +msgstr "ㅋㅋBoard size" + +msgid "Select AI" +msgstr "ㅋㅋSelect AI strategy to configure" + +msgid "general:debug_level" +msgstr "ㅋㅋDebug level in the console" msgid "Info:teaching undo" msgstr "ㅋㅋMove was automatically undone in teaching mode." -msgid "load sgf title" -msgstr "ㅋㅋLoad SGF File to Analyze" - -msgid "engine:time:hint" -msgstr "ㅋㅋTime in seconds" +msgid "restarting engine" +msgstr "ㅋㅋRestarting Engine after Settings Change." msgid "analysis:nextmoves" msgstr "" "ㅋㅋNext\n" "Moves" - -msgid "strength:kyu" -msgstr "ㅋㅋk" - -msgid "general:sgf_save" -msgstr "ㅋㅋPath for saving SGF files" - -msgid "Failed to import from clipboard" -msgstr "" -"ㅋㅋFailed to import game from clipboard: {error}\n" -"Clipboard contents: {contents}..." - -msgid "aihelp:scoreloss" -msgstr "" -"ㅋㅋPlays moves that lead to more points lost with lower probability. Likely " -"to play more varied/weaker with higher visits settings." - -msgid "timer settings" -msgstr "ㅋㅋAdjust Timer Settings" - -msgid "engine:wide_root_noise:hint" -msgstr "" -"ㅋㅋUse 0.02-0.1 to show\n" -"more possible moves" - -msgid "config file path" -msgstr "ㅋㅋAll options are saved in {file}" - -msgid "teaching undo message" -msgstr "" -"ㅋㅋUndid move {move} as it lost {points_lost:.1f} points. Hover over the move" -" to see expected refutation. Please try again." - -msgid "count down sounds" -msgstr "ㅋㅋCount Down Sounds" diff --git a/katrain/i18n/locales/ko/LC_MESSAGES/katrain.mo b/katrain/i18n/locales/ko/LC_MESSAGES/katrain.mo index 04c7ecf..fa5e2fd 100644 Binary files a/katrain/i18n/locales/ko/LC_MESSAGES/katrain.mo and b/katrain/i18n/locales/ko/LC_MESSAGES/katrain.mo differ diff --git a/katrain/i18n/locales/ko/LC_MESSAGES/katrain.po b/katrain/i18n/locales/ko/LC_MESSAGES/katrain.po index 25cc1ba..f646ae4 100644 --- a/katrain/i18n/locales/ko/LC_MESSAGES/katrain.po +++ b/katrain/i18n/locales/ko/LC_MESSAGES/katrain.po @@ -244,6 +244,9 @@ msgstr "초읽기 시간" msgid "byoyomi periods" msgstr "초읽기 횟수" +msgid "count down sound" +msgstr "소리" + #. submit button msgid "update timer" msgstr "시간 설정 갱신" @@ -535,7 +538,3 @@ msgstr "" msgid "teaching undo message" msgstr "" "{points_lost:.1f}집 손해이므로 {move}을/를 물렀습니다. 커서를 올려 상대의 대응책을 보십시오. 다시 두어 주세요." - -#. TODO -msgid "count down sounds" -msgstr "Count Down Sounds" diff --git a/katrain/popups.kv b/katrain/popups.kv index 58f898c..8f2e5de 100644 --- a/katrain/popups.kv +++ b/katrain/popups.kv @@ -237,8 +237,8 @@ MDGridLayout: cols: 2 rows: 3 - spacing: CP_SPACING - size_hint: 1,2 + spacing: 1.5 * CP_SPACING + size_hint: 1,2.5 DescriptionLabel: text: i18n._('byoyomi length') AnchorLayout: @@ -252,10 +252,10 @@ text: "5" input_property: "timer/byo_periods" DescriptionLabel: - text: i18n._('count down sounds') + text: i18n._('count down sound') AnchorLayout: LabelledCheckBox: - input_property: "timer/sounds" + input_property: "timer/sound" AnchorLayout: size_hint: 1,1 AutoSizedRoundedRectangleButton: