Skip to content

Commit

Permalink
Merge pull request #156 from sanderland/1.3.4
Browse files Browse the repository at this point in the history
fix teaching settings / 1.3.4
  • Loading branch information
sanderland authored Aug 5, 2020
2 parents b47a715 + dcc17ac commit 3d28be4
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion katrain/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"anim_pv_time": 0.5,
"debug_level": 0,
"lang": "en",
"version": "1.3.3"
"version": "1.3.4"
},
"timer": {
"byo_length": 30,
Expand Down
2 changes: 1 addition & 1 deletion katrain/core/constants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = "1.3.3"
VERSION = "1.3.4"
HOMEPAGE = "https://github.com/sanderland/katrain"
CONFIG_MIN_VERSION = "1.3.3" # keep config files from this version

Expand Down
8 changes: 8 additions & 0 deletions katrain/gui/popups.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,10 @@ def wrap_anchor(widget):


class ConfigTeacherPopup(QuickConfigGui):
def __init__(self, katrain):
super().__init__(katrain)
MDApp.get_running_app().bind(language=self.build_and_set_properties)

def add_option_widgets(self, widgets):
for widget in widgets:
self.options_grid.add_widget(wrap_anchor(widget))
Expand All @@ -277,6 +281,10 @@ def build_and_set_properties(self, *_args):

self.themes_spinner.value_refs = list(EVAL_COLORS.keys())
self.options_grid.clear_widgets()

for k in ["dot color", "point loss threshold", "num undos", "show dots", "save dots"]:
self.options_grid.add_widget(DescriptionLabel(text=i18n._(k), font_name=i18n.font_name, font_size=dp(17)))

for i, (color, threshold, undo, show_dot, savesgf) in enumerate(
zip(EVAL_COLORS[theme], thresholds, undos, show_dots, savesgfs)
):
Expand Down
Binary file modified katrain/i18n/locales/cn/LC_MESSAGES/katrain.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion katrain/i18n/locales/cn/LC_MESSAGES/katrain.po
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ msgid "num undos"
msgstr "悔棋机会"

msgid "dot color"
msgstr "选点颜色显示 (固定)"
msgstr "选点颜色显示"

msgid "show dots"
msgstr "显示选点"
Expand Down
Binary file modified katrain/i18n/locales/de/LC_MESSAGES/katrain.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion katrain/i18n/locales/de/LC_MESSAGES/katrain.po
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ msgid "num undos"
msgstr "Anzahl der Undos"

msgid "dot color"
msgstr "Farbe (fix)"
msgstr "Farbe"

msgid "show dots"
msgstr "Dots zeigen"
Expand Down
Binary file modified katrain/i18n/locales/en/LC_MESSAGES/katrain.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion katrain/i18n/locales/en/LC_MESSAGES/katrain.po
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ msgid "num undos"
msgstr "Number of undos"

msgid "dot color"
msgstr "Colour (fixed)"
msgstr "Colour"

msgid "show dots"
msgstr "Show dots"
Expand Down
Binary file modified katrain/i18n/locales/jp/LC_MESSAGES/katrain.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion katrain/i18n/locales/jp/LC_MESSAGES/katrain.po
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ msgid "num undos"
msgstr "待ったの回数"

msgid "dot color"
msgstr "色(固定)"
msgstr "色"

msgid "show dots"
msgstr "ドットを表示"
Expand Down
Binary file modified katrain/i18n/locales/ko/LC_MESSAGES/katrain.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion katrain/i18n/locales/ko/LC_MESSAGES/katrain.po
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ msgid "num undos"
msgstr "무르기 횟수"

msgid "dot color"
msgstr "색(고정됨)"
msgstr "색"

msgid "show dots"
msgstr "색 표시하기"
Expand Down
Binary file modified katrain/i18n/locales/ru/LC_MESSAGES/katrain.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion katrain/i18n/locales/ru/LC_MESSAGES/katrain.po
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ msgid "num undos"
msgstr "Количество отмен хода"

msgid "dot color"
msgstr "Цвет (фикс.)"
msgstr "Цвет"

msgid "show dots"
msgstr "Показывать точки"
Expand Down

0 comments on commit 3d28be4

Please sign in to comment.