From 66fbacf1fd439817b92648ef87e42ccdbd923302 Mon Sep 17 00:00:00 2001 From: Sander Land Date: Mon, 16 Nov 2020 18:30:38 +0100 Subject: [PATCH] i18n --- .github/FUNDING.yml | 2 +- i18n.py | 2 +- katrain/core/constants.py | 2 +- katrain/i18n/locales/cn/LC_MESSAGES/katrain.po | 4 ++-- katrain/i18n/locales/de/LC_MESSAGES/katrain.po | 4 ++-- katrain/i18n/locales/en/LC_MESSAGES/katrain.po | 2 ++ katrain/i18n/locales/es/LC_MESSAGES/katrain.po | 4 ++-- katrain/i18n/locales/fr/LC_MESSAGES/katrain.po | 2 +- katrain/i18n/locales/jp/LC_MESSAGES/katrain.po | 1 - katrain/i18n/locales/ko/LC_MESSAGES/katrain.po | 4 ++-- katrain/i18n/locales/ru/LC_MESSAGES/katrain.po | 4 ++-- 11 files changed, 16 insertions(+), 15 deletions(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index e23f350..4989a61 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,7 +1,7 @@ # These are supported funding model platforms github: sanderland # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] -patreon: katrainbaduk # Replace with a single Patreon username +patreon: # Replace with a single Patreon username open_collective: # Replace with a single Open Collective username ko_fi: # Replace with a single Ko-fi username tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel diff --git a/i18n.py b/i18n.py index b1ca000..37f1dc0 100644 --- a/i18n.py +++ b/i18n.py @@ -26,7 +26,7 @@ for lang in locales: pofile[lang] = os.path.join(localedir, lang, "LC_MESSAGES", "katrain.po") po[lang] = polib.pofile(pofile[lang]) for entry in po[lang].translated_entries(): - if "TODO" in entry.comment: + if "TODO" in entry.comment and not "DEPRECATED" in entry.comment: todos[lang].append(entry) strings_to_langs[entry.msgid][lang] = entry strings_to_keys[entry.msgid][lang] = set(re.findall("{.*?}", entry.msgstr)) diff --git a/katrain/core/constants.py b/katrain/core/constants.py index 2b8e22a..b40cbd6 100644 --- a/katrain/core/constants.py +++ b/katrain/core/constants.py @@ -38,7 +38,7 @@ AI_SETTLE_STONES = "ai:settle" AI_CONFIG_DEFAULT = AI_RANK -AI_STRATEGIES_ENGINE = [AI_DEFAULT, AI_HANDICAP, AI_SCORELOSS, AI_SIMPLE_OWNERSHIP, AI_JIGO] # AI_SETTLE_STONES +AI_STRATEGIES_ENGINE = [AI_DEFAULT, AI_HANDICAP, AI_SCORELOSS, AI_SIMPLE_OWNERSHIP, AI_JIGO] # AI_SETTLE_STONES AI_STRATEGIES_PICK = [AI_PICK, AI_LOCAL, AI_TENUKI, AI_INFLUENCE, AI_TERRITORY, AI_RANK] AI_STRATEGIES_POLICY = [AI_WEIGHTED, AI_POLICY] + AI_STRATEGIES_PICK AI_STRATEGIES = AI_STRATEGIES_ENGINE + AI_STRATEGIES_POLICY diff --git a/katrain/i18n/locales/cn/LC_MESSAGES/katrain.po b/katrain/i18n/locales/cn/LC_MESSAGES/katrain.po index 37abc8e..68fba63 100644 --- a/katrain/i18n/locales/cn/LC_MESSAGES/katrain.po +++ b/katrain/i18n/locales/cn/LC_MESSAGES/katrain.po @@ -670,7 +670,7 @@ msgstr "" msgid "ai:simple" msgstr "Simple Style" -#. TODO +#. TODO - DEPRECATED msgid "aihelp:settle" msgstr "" "Plays moves that lead to clarity on stones' status, favouring solid moves " @@ -683,7 +683,7 @@ msgstr "" " instead, and wide root noise (in general settings) can be used to further " "play according to the style at the cost of strength. " -#. TODO +#. TODO - DEPRECATED msgid "ai:settle" msgstr "Settle Style" diff --git a/katrain/i18n/locales/de/LC_MESSAGES/katrain.po b/katrain/i18n/locales/de/LC_MESSAGES/katrain.po index 41f675b..f307922 100644 --- a/katrain/i18n/locales/de/LC_MESSAGES/katrain.po +++ b/katrain/i18n/locales/de/LC_MESSAGES/katrain.po @@ -719,7 +719,7 @@ msgstr "" msgid "ai:simple" msgstr "Simple Style" -#. TODO +#. TODO - DEPRECATED msgid "aihelp:settle" msgstr "" "Plays moves that lead to clarity on stones' status, favouring solid moves " @@ -732,7 +732,7 @@ msgstr "" " instead, and wide root noise (in general settings) can be used to further " "play according to the style at the cost of strength. " -#. TODO +#. TODO - DEPRECATED msgid "ai:settle" msgstr "Settle Style" diff --git a/katrain/i18n/locales/en/LC_MESSAGES/katrain.po b/katrain/i18n/locales/en/LC_MESSAGES/katrain.po index f10d0ea..7365f08 100644 --- a/katrain/i18n/locales/en/LC_MESSAGES/katrain.po +++ b/katrain/i18n/locales/en/LC_MESSAGES/katrain.po @@ -600,9 +600,11 @@ msgstr "" "root noise (in general settings) can be used to further play according to " "the style at the cost of strength. " +#. DEPRECATED msgid "ai:settle" msgstr "Settle Style" +#. DEPRECATED msgid "aihelp:settle" msgstr "" "Plays moves that lead to clarity on stones' status, favouring solid moves " diff --git a/katrain/i18n/locales/es/LC_MESSAGES/katrain.po b/katrain/i18n/locales/es/LC_MESSAGES/katrain.po index 741062c..c2124ec 100644 --- a/katrain/i18n/locales/es/LC_MESSAGES/katrain.po +++ b/katrain/i18n/locales/es/LC_MESSAGES/katrain.po @@ -718,7 +718,7 @@ msgstr "Plays moves that lead to simplifying the board state." msgid "ai:simple" msgstr "Simple Style" -#. TODO +#. TODO - DEPRECATED msgid "aihelp:settle" msgstr "" "Plays moves that lead to clarity on stones' status, favouring solid moves " @@ -731,7 +731,7 @@ msgstr "" " instead, and wide root noise (in general settings) can be used to further " "play according to the style at the cost of strength. " -#. TODO +#. TODO - DEPRECATED msgid "ai:settle" msgstr "Settle Style" diff --git a/katrain/i18n/locales/fr/LC_MESSAGES/katrain.po b/katrain/i18n/locales/fr/LC_MESSAGES/katrain.po index 8397214..71ab1f5 100644 --- a/katrain/i18n/locales/fr/LC_MESSAGES/katrain.po +++ b/katrain/i18n/locales/fr/LC_MESSAGES/katrain.po @@ -751,7 +751,7 @@ msgstr "" msgid "ai:simple" msgstr "Simple Style" -#. TODO +#. TODO - DEPRECATED msgid "aihelp:settle" msgstr "" "Plays moves that lead to clarity on stones' status, favouring solid moves " diff --git a/katrain/i18n/locales/jp/LC_MESSAGES/katrain.po b/katrain/i18n/locales/jp/LC_MESSAGES/katrain.po index 8ef2b9f..bc6154c 100644 --- a/katrain/i18n/locales/jp/LC_MESSAGES/katrain.po +++ b/katrain/i18n/locales/jp/LC_MESSAGES/katrain.po @@ -723,7 +723,6 @@ msgstr "近辺の応手に絞って分析" msgid "local analysis" msgstr "近辺の応手を分析中" -#. TODO - change komi etc in current game msgid "change current game" msgstr "" "現対局のコミ・\n" diff --git a/katrain/i18n/locales/ko/LC_MESSAGES/katrain.po b/katrain/i18n/locales/ko/LC_MESSAGES/katrain.po index 054a292..6011439 100644 --- a/katrain/i18n/locales/ko/LC_MESSAGES/katrain.po +++ b/katrain/i18n/locales/ko/LC_MESSAGES/katrain.po @@ -681,7 +681,7 @@ msgstr "" msgid "ai:simple" msgstr "Simple Style" -#. TODO +#. TODO - DEPRECATED msgid "aihelp:settle" msgstr "" "Plays moves that lead to clarity on stones' status, favouring solid moves " @@ -694,7 +694,7 @@ msgstr "" " instead, and wide root noise (in general settings) can be used to further " "play according to the style at the cost of strength. " -#. TODO +#. TODO - DEPRECATED msgid "ai:settle" msgstr "Settle Style" diff --git a/katrain/i18n/locales/ru/LC_MESSAGES/katrain.po b/katrain/i18n/locales/ru/LC_MESSAGES/katrain.po index e2d92d7..ab824a1 100644 --- a/katrain/i18n/locales/ru/LC_MESSAGES/katrain.po +++ b/katrain/i18n/locales/ru/LC_MESSAGES/katrain.po @@ -714,7 +714,7 @@ msgstr "" msgid "ai:simple" msgstr "Simple Style" -#. TODO +#. TODO - DEPRECATED msgid "aihelp:settle" msgstr "" "Plays moves that lead to clarity on stones' status, favouring solid moves " @@ -727,7 +727,7 @@ msgstr "" " instead, and wide root noise (in general settings) can be used to further " "play according to the style at the cost of strength. " -#. TODO +#. TODO - DEPRECATED msgid "ai:settle" msgstr "Settle Style"