Merge pull request #156 from sanderland/1.3.4

fix teaching settings / 1.3.4
This commit is contained in:
sanderland authored and GitHub committed 2020-08-05 21:59:10 +02:00
commit 3d28be45bc
15 files changed
+16 -8

No files matched your search

+1 -1
View File
@@ -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,
+1 -1
View File
@@ -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
+8
View File
@@ -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))
@@ -277,6 +281,10 @@ class ConfigTeacherPopup(QuickConfigGui):
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)
):
Binary file not shown.
@@ -304,7 +304,7 @@ msgid "num undos"
msgstr "悔棋机会"
msgid "dot color"
msgstr "选点颜色显示 (固定)"
msgstr "选点颜色显示"
msgid "show dots"
msgstr "显示选点"
Binary file not shown.
@@ -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"
Binary file not shown.
@@ -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"
Binary file not shown.
@@ -340,7 +340,7 @@ msgid "num undos"
msgstr "待ったの回数"
msgid "dot color"
msgstr "色(固定)"
msgstr "色"
msgid "show dots"
msgstr "ドットを表示"
Binary file not shown.
@@ -308,7 +308,7 @@ msgid "num undos"
msgstr "무르기 횟수"
msgid "dot color"
msgstr "색(고정됨)"
msgstr "색"
msgid "show dots"
msgstr "색 표시하기"
Binary file not shown.
@@ -331,7 +331,7 @@ msgid "num undos"
msgstr "Количество отмен хода"
msgid "dot color"
msgstr "Цвет (фикс.)"
msgstr "Цвет"
msgid "show dots"
msgstr "Показывать точки"