i18n fixes
This commit is contained in:
1 parent
8d2b49b424
commit
537168d8ee
11 files changed
+31
-22
No files matched your search
@@ -292,6 +292,10 @@ class AIPopup(QuickConfigGui):
|
|||||||
|
|
||||||
|
|
||||||
class ConfigPopup(QuickConfigGui):
|
class ConfigPopup(QuickConfigGui):
|
||||||
|
def __init__(self, katrain):
|
||||||
|
super().__init__(katrain)
|
||||||
|
self.configfile.text = i18n._("config file path").format(file=katrain.config_file)
|
||||||
|
|
||||||
def update_config(self, save_to_file=True):
|
def update_config(self, save_to_file=True):
|
||||||
updated = super().update_config(save_to_file=save_to_file)
|
updated = super().update_config(save_to_file=save_to_file)
|
||||||
self.katrain.debug_level = self.katrain.config("general/debug_level", OUTPUT_INFO)
|
self.katrain.debug_level = self.katrain.config("general/debug_level", OUTPUT_INFO)
|
||||||
|
|||||||
Binary file not shown.
@@ -353,6 +353,9 @@ msgstr "General Settings"
|
|||||||
msgid "engine settings"
|
msgid "engine settings"
|
||||||
msgstr "KataGo Engine Settings"
|
msgstr "KataGo Engine Settings"
|
||||||
|
|
||||||
|
msgid "config file path"
|
||||||
|
msgstr "All options are saved in {file}"
|
||||||
|
|
||||||
msgid "engine:katago"
|
msgid "engine:katago"
|
||||||
msgstr "Path to KataGo executable"
|
msgstr "Path to KataGo executable"
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@@ -558,3 +558,7 @@ msgstr ""
|
|||||||
"Picks moves biased below the `threshold` line and plays the best "
|
"Picks moves biased below the `threshold` line and plays the best "
|
||||||
"one.Increase `line_weight` to penalize moves near the center more. Stops "
|
"one.Increase `line_weight` to penalize moves near the center more. Stops "
|
||||||
"strategy after the 'endgame' fraction of the board is filled."
|
"strategy after the 'endgame' fraction of the board is filled."
|
||||||
|
|
||||||
|
#. TODO
|
||||||
|
msgid "config file path"
|
||||||
|
msgstr "All options are saved in {file}"
|
||||||
Binary file not shown.
@@ -518,3 +518,6 @@ msgid "engine:wide_root_noise:hint"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"ㅋㅋUse 0.02-0.1 to show\n"
|
"ㅋㅋUse 0.02-0.1 to show\n"
|
||||||
"more possible moves"
|
"more possible moves"
|
||||||
|
|
||||||
|
msgid "config file path"
|
||||||
|
msgstr "ㅋㅋAll options are saved in {file}"
|
||||||
Binary file not shown.
@@ -528,3 +528,7 @@ msgid "aihelp:p:territory"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"`threshold`선 밑의 수를 더 많이 뽑은 후 그 중 최선의 수를 둡니다. `line_weight`을 증가시키면 바둑판 중앙에 있는"
|
"`threshold`선 밑의 수를 더 많이 뽑은 후 그 중 최선의 수를 둡니다. `line_weight`을 증가시키면 바둑판 중앙에 있는"
|
||||||
" 수를 더욱 꺼리게 됩니다. 판이 `endgame` 비율만큼 차면 평범하게 둡니다."
|
" 수를 더욱 꺼리게 됩니다. 판이 `endgame` 비율만큼 차면 평범하게 둡니다."
|
||||||
|
|
||||||
|
#. TODO
|
||||||
|
msgid "config file path"
|
||||||
|
msgstr "All options are saved in {file}"
|
||||||
+5
-3
@@ -75,6 +75,7 @@
|
|||||||
font_size: DESC_FONT_SIZE * 0.66
|
font_size: DESC_FONT_SIZE * 0.66
|
||||||
|
|
||||||
<ConfigPopup>:
|
<ConfigPopup>:
|
||||||
|
configfile: configfile
|
||||||
BoxLayout:
|
BoxLayout:
|
||||||
size_hint: 1,9
|
size_hint: 1,9
|
||||||
orientation: 'horizontal'
|
orientation: 'horizontal'
|
||||||
@@ -84,7 +85,7 @@
|
|||||||
spacing: CP_SPACING
|
spacing: CP_SPACING
|
||||||
Label:
|
Label:
|
||||||
DescriptionLabel:
|
DescriptionLabel:
|
||||||
text: i18n._('General Settings')
|
text: i18n._('general settings')
|
||||||
font_size: DESC_FONT_SIZE * 1.5
|
font_size: DESC_FONT_SIZE * 1.5
|
||||||
DescriptionLabel:
|
DescriptionLabel:
|
||||||
text: i18n._("general:sgf_load")
|
text: i18n._("general:sgf_load")
|
||||||
@@ -113,7 +114,8 @@
|
|||||||
Label:
|
Label:
|
||||||
Label:
|
Label:
|
||||||
Label:
|
Label:
|
||||||
Label:
|
SmallDescriptionLabel:
|
||||||
|
id: configfile
|
||||||
Label:
|
Label:
|
||||||
BackgroundMixin:
|
BackgroundMixin:
|
||||||
background_color: LIGHTGREY
|
background_color: LIGHTGREY
|
||||||
@@ -126,7 +128,7 @@
|
|||||||
Label:
|
Label:
|
||||||
DescriptionLabel:
|
DescriptionLabel:
|
||||||
font_size: DESC_FONT_SIZE * 1.5
|
font_size: DESC_FONT_SIZE * 1.5
|
||||||
text: i18n._('Engine Settings')
|
text: i18n._('engine settings')
|
||||||
DescriptionLabel:
|
DescriptionLabel:
|
||||||
text: i18n._("engine:katago")
|
text: i18n._("engine:katago")
|
||||||
AnchorLayout:
|
AnchorLayout:
|
||||||
|
|||||||
+8
-19
@@ -3,7 +3,6 @@ from kivy_deps import sdl2, glew
|
|||||||
from kivymd import hooks_path as kivymd_hooks_path
|
from kivymd import hooks_path as kivymd_hooks_path
|
||||||
|
|
||||||
block_cipher = None
|
block_cipher = None
|
||||||
console = False
|
|
||||||
|
|
||||||
# pyinstaller spec/katrain.spec --noconfirm
|
# pyinstaller spec/katrain.spec --noconfirm
|
||||||
# --upx-dir my
|
# --upx-dir my
|
||||||
@@ -43,13 +42,18 @@ a.datas = [
|
|||||||
|
|
||||||
print("DATA FILTERED", len(a.datas))
|
print("DATA FILTERED", len(a.datas))
|
||||||
|
|
||||||
|
console_names = {True:"KaTrain",False:"KaTrainNC"}
|
||||||
|
|
||||||
|
for console, name in console_names.items():
|
||||||
|
|
||||||
|
|
||||||
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
|
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
|
||||||
exe = EXE(
|
exe = EXE(
|
||||||
pyz,
|
pyz,
|
||||||
a.scripts,
|
a.scripts,
|
||||||
[],
|
[],
|
||||||
exclude_binaries=True,
|
exclude_binaries=True,
|
||||||
name="KaTrain",
|
name=name,
|
||||||
debug=False,
|
debug=False,
|
||||||
bootloader_ignore_signals=False,
|
bootloader_ignore_signals=False,
|
||||||
strip=False,
|
strip=False,
|
||||||
@@ -67,7 +71,7 @@ coll = COLLECT(
|
|||||||
strip=False,
|
strip=False,
|
||||||
upx=True,
|
upx=True,
|
||||||
upx_exclude=[],
|
upx_exclude=[],
|
||||||
name="KaTrain",
|
name=name,
|
||||||
)
|
)
|
||||||
|
|
||||||
exe = EXE(
|
exe = EXE(
|
||||||
@@ -80,23 +84,8 @@ exe = EXE(
|
|||||||
debug=False,
|
debug=False,
|
||||||
strip=False,
|
strip=False,
|
||||||
upx=True,
|
upx=True,
|
||||||
name="KaTrain",
|
name=name,
|
||||||
console=False,
|
console=False,
|
||||||
icon="C:\\icon.ico",
|
icon="C:\\icon.ico",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
exe = EXE(
|
|
||||||
pyz,
|
|
||||||
a.scripts,
|
|
||||||
a.binaries,
|
|
||||||
a.zipfiles,
|
|
||||||
a.datas,
|
|
||||||
*[Tree(p) for p in (sdl2.dep_bins + glew.dep_bins)],
|
|
||||||
debug=False,
|
|
||||||
strip=False,
|
|
||||||
upx=True,
|
|
||||||
name="KaTrainConsole",
|
|
||||||
console=True,
|
|
||||||
icon="C:\\icon.ico",
|
|
||||||
)
|
|
||||||
Reference in new issue
Block a user