mirror of
https://github.com/JoeanAmier/XHS-Downloader.git
synced 2026-03-22 06:57:16 +08:00
新增英语语言支持
This commit is contained in:
@@ -55,10 +55,10 @@ def show_state(function):
|
||||
class Index(Screen):
|
||||
CSS_PATH = ROOT.joinpath("static/XHS-Downloader.tcss")
|
||||
BINDINGS = [
|
||||
Binding(key="q", action="quit", description="退出程序"),
|
||||
Binding(key="u", action="check_update", description="检查更新"),
|
||||
Binding(key="m", action="user_script", description="获取脚本"),
|
||||
Binding(key="s", action="settings", description="程序设置"),
|
||||
Binding(key="q", action="quit", description="退出程序/Quit"),
|
||||
Binding(key="u", action="check_update", description="检查更新/Update"),
|
||||
Binding(key="m", action="user_script", description="获取脚本/Script"),
|
||||
Binding(key="s", action="settings", description="程序设置/Settings"),
|
||||
]
|
||||
|
||||
def __init__(self, app: XHS, language: Chinese | English):
|
||||
|
||||
@@ -25,8 +25,8 @@ __all__ = ["Setting"]
|
||||
class Setting(Screen):
|
||||
CSS_PATH = ROOT.joinpath("static/XHS-Downloader.tcss")
|
||||
BINDINGS = [
|
||||
Binding(key="q", action="quit", description="退出程序"),
|
||||
Binding(key="b", action="index", description="返回首页"),
|
||||
Binding(key="q", action="quit", description="退出程序/Quit"),
|
||||
Binding(key="b", action="index", description="返回首页/Back"),
|
||||
]
|
||||
|
||||
def __init__(self, data: dict, language: Chinese | English):
|
||||
@@ -73,8 +73,7 @@ class Setting(Screen):
|
||||
Select.from_values(list(LANGUAGE.keys()),
|
||||
value=self.data["language"],
|
||||
allow_blank=False,
|
||||
id="language",
|
||||
disabled=True, ),
|
||||
id="language", ),
|
||||
classes="horizontal-layout"),
|
||||
Container(
|
||||
Button(self.prompt.save_button, id="save", ),
|
||||
|
||||
Reference in New Issue
Block a user