update comment

This commit is contained in:
Sander Land committed 2020-08-25 12:50:56 +02:00
1 parent 20b39a4e2c
commit 2d11be6282
12 files changed
+13 -14

No files matched your search

+2
View File
@@ -1,6 +1,7 @@
import glob import glob
import os import os
import re import re
import stat
from typing import Any, Dict, List, Tuple, Union from typing import Any, Dict, List, Tuple, Union
from zipfile import ZipFile from zipfile import ZipFile
@@ -517,6 +518,7 @@ class ConfigPopup(QuickConfigGui):
) )
with open(path, "wb") as fout: with open(path, "wb") as fout:
fout.write(zipObj.read(exes[0])) fout.write(zipObj.read(exes[0]))
os.chmod(path, os.stat(path).st_mode | stat.S_IXUSR | stat.S_IXGRP)
for f in zipObj.namelist(): for f in zipObj.namelist():
if f.lower().endswith("dll"): if f.lower().endswith("dll"):
with open(os.path.join(os.path.split(path)[0], f), "wb") as fout: with open(os.path.join(os.path.split(path)[0], f), "wb") as fout:
Binary file not shown.
@@ -616,7 +616,6 @@ msgstr "下载KataGo 版本"
msgid "show point loss as text" msgid "show point loss as text"
msgstr "在棋子上显示目数损失" msgstr "在棋子上显示目数损失"
msgid "katago binaries available" msgid "katago binaries available"
msgstr "{num} 个exe文件可用" msgstr "{num} 个exe文件可用"
@@ -627,6 +626,4 @@ msgid "All binaries downloaded"
msgstr "所有可用的exe文件已下载" msgstr "所有可用的exe文件已下载"
msgid "Engine missing DLL" msgid "Engine missing DLL"
msgstr "" msgstr "启动katago失败因缺失dll文件. 请检查运行要求, 或尝试让exe文件自行运行并检查细节. "
"启动katago失败因缺失dll文件. 请检查运行要求, 或尝试让exe文件自行运行并检查细节. "
Binary file not shown.
@@ -662,7 +662,7 @@ msgstr ""
msgid "engine:altcommand" msgid "engine:altcommand"
msgstr "Override Engine Command" msgstr "Override Engine Command"
#. TODO - button in general settings for downloading models #. TODO - button in general settings for downloading katago executables
msgid "download katago button" msgid "download katago button"
msgstr "Download KataGo versions" msgstr "Download KataGo versions"
@@ -681,7 +681,7 @@ msgstr "All available binaries already downloaded"
#. TODO #. TODO
msgid "Engine missing DLL" msgid "Engine missing DLL"
msgstr "" msgstr ""
"Failed to start KataGo due to missing DLL. Check the requiments, or try " "Failed to start KataGo due to missing DLL. Check the requirements, or try "
"running the binary by itself for details. " "running the binary by itself for details. "
#. TODO - in addition to colour, show point loss as -0.1 etc on hints/top #. TODO - in addition to colour, show point loss as -0.1 etc on hints/top
@@ -645,7 +645,7 @@ msgstr "Estimated Strength"
msgid "download models button" msgid "download models button"
msgstr "Download Models" msgstr "Download Models"
#. button in general settings for downloading models #. button in general settings for downloading katago executables
msgid "download katago button" msgid "download katago button"
msgstr "Download KataGo versions" msgstr "Download KataGo versions"
Binary file not shown.
@@ -658,7 +658,7 @@ msgstr ""
msgid "engine:altcommand" msgid "engine:altcommand"
msgstr "Override Engine Command" msgstr "Override Engine Command"
#. TODO - button in general settings for downloading models #. TODO - button in general settings for downloading katago executables
msgid "download katago button" msgid "download katago button"
msgstr "Download KataGo versions" msgstr "Download KataGo versions"
@@ -677,7 +677,7 @@ msgstr "All available binaries already downloaded"
#. TODO #. TODO
msgid "Engine missing DLL" msgid "Engine missing DLL"
msgstr "" msgstr ""
"Failed to start KataGo due to missing DLL. Check the requiments, or try " "Failed to start KataGo due to missing DLL. Check the requirements, or try "
"running the binary by itself for details. " "running the binary by itself for details. "
#. TODO - in addition to colour, show point loss as -0.1 etc on hints/top #. TODO - in addition to colour, show point loss as -0.1 etc on hints/top
@@ -699,7 +699,7 @@ msgstr ""
msgid "engine:altcommand" msgid "engine:altcommand"
msgstr "Override Engine Command" msgstr "Override Engine Command"
#. TODO - button in general settings for downloading models #. TODO - button in general settings for downloading katago executables
msgid "download katago button" msgid "download katago button"
msgstr "Download KataGo versions" msgstr "Download KataGo versions"
Binary file not shown.
@@ -641,7 +641,7 @@ msgstr "エンジン起動コマンド全体 (plinkでリモートエンジン
msgid "engine:altcommand" msgid "engine:altcommand"
msgstr "エンジンコマンドの上書き" msgstr "エンジンコマンドの上書き"
#. TODO - button in general settings for downloading models #. TODO - button in general settings for downloading katago executables
msgid "download katago button" msgid "download katago button"
msgstr "Download KataGo versions" msgstr "Download KataGo versions"
@@ -660,7 +660,7 @@ msgstr "All available binaries already downloaded"
#. TODO #. TODO
msgid "Engine missing DLL" msgid "Engine missing DLL"
msgstr "" msgstr ""
"Failed to start KataGo due to missing DLL. Check the requiments, or try " "Failed to start KataGo due to missing DLL. Check the requirements, or try "
"running the binary by itself for details. " "running the binary by itself for details. "
#. TODO - in addition to colour, show point loss as -0.1 etc on hints/top #. TODO - in addition to colour, show point loss as -0.1 etc on hints/top
+2 -2
View File
@@ -268,13 +268,13 @@
cols: 2 cols: 2
rows: 4 rows: 4
padding: 4 padding: 4
size_hint: 0.8, 1 size_hint: 0.9, 1
DescriptionLabel: DescriptionLabel:
font_size: DESC_FONT_SIZE * 0.8 font_size: DESC_FONT_SIZE * 0.8
text: i18n._("theme") text: i18n._("theme")
AnchorLayout: AnchorLayout:
LabelledSpinner: LabelledSpinner:
size_hint: 0.8,0.8 size_hint: 0.95,0.8
input_property: 'trainer/theme' input_property: 'trainer/theme'
font_size: DESC_FONT_SIZE * 0.8 font_size: DESC_FONT_SIZE * 0.8
id: themes_spinner id: themes_spinner