Skip to content

Commit

Permalink
更新 readme.md 以及等待界面文本
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzaphkiel committed Nov 14, 2023
1 parent e51a7db commit d4da112
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 50 deletions.
Binary file modified app/resource/i18n/Seraphine.zh_CN.qm
Binary file not shown.
84 changes: 47 additions & 37 deletions app/resource/i18n/Seraphine.zh_CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,17 +488,17 @@
<context>
<name>GameTab</name>
<message>
<location filename="../../view/game_info_interface.py" line="579"/>
<location filename="../../view/game_info_interface.py" line="571"/>
<source>remake</source>
<translation>重开</translation>
</message>
<message>
<location filename="../../view/game_info_interface.py" line="581"/>
<location filename="../../view/game_info_interface.py" line="573"/>
<source>win</source>
<translation>胜利</translation>
</message>
<message>
<location filename="../../view/game_info_interface.py" line="583"/>
<location filename="../../view/game_info_interface.py" line="575"/>
<source>lose</source>
<translation>失败</translation>
</message>
Expand Down Expand Up @@ -591,7 +591,7 @@
<context>
<name>MainWindow</name>
<message>
<location filename="../../view/main_window.py" line="316"/>
<location filename="../../view/main_window.py" line="324"/>
<source>Career</source>
<translation>生涯</translation>
</message>
Expand All @@ -601,17 +601,17 @@
<translation type="obsolete">查查你的👀</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="318"/>
<location filename="../../view/main_window.py" line="326"/>
<source>Game Information</source>
<translation>对局信息</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="472"/>
<location filename="../../view/main_window.py" line="480"/>
<source>Start LOL</source>
<translation>启动游戏</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="319"/>
<location filename="../../view/main_window.py" line="327"/>
<source>Settings</source>
<translation>设置</translation>
</message>
Expand All @@ -621,17 +621,17 @@
<translation>其他功能</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="566"/>
<location filename="../../view/main_window.py" line="574"/>
<source>LOL Client has been connected</source>
<translation>客户端已连接</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="554"/>
<location filename="../../view/main_window.py" line="562"/>
<source>Invalid path</source>
<translation>路径非法</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="554"/>
<location filename="../../view/main_window.py" line="562"/>
<source>Please set the correct directory of the LOL client in the setting page</source>
<translation>请在设置页面中设置正确的 LOL 客户端路径</translation>
</message>
Expand All @@ -641,7 +641,7 @@
<translation>启动页</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="543"/>
<location filename="../../view/main_window.py" line="551"/>
<source>Start LOL successfully</source>
<translation>启动客户端成功</translation>
</message>
Expand All @@ -656,87 +656,87 @@
<translation type="obsolete">未定级</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="910"/>
<location filename="../../view/main_window.py" line="918"/>
<source>Home</source>
<translation>游戏大厅</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="913"/>
<location filename="../../view/main_window.py" line="921"/>
<source>Selecting Champions</source>
<translation>英雄选择</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="928"/>
<location filename="../../view/main_window.py" line="936"/>
<source>Gaming</source>
<translation>游戏中</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="934"/>
<location filename="../../view/main_window.py" line="942"/>
<source>Waiting for status</source>
<translation>等待游戏结果</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="936"/>
<location filename="../../view/main_window.py" line="944"/>
<source>End of game</source>
<translation>游戏结束</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="938"/>
<location filename="../../view/main_window.py" line="946"/>
<source>Lobby</source>
<translation>房间组队中</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="942"/>
<location filename="../../view/main_window.py" line="950"/>
<source>Ready check</source>
<translation>匹配确认</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="945"/>
<location filename="../../view/main_window.py" line="953"/>
<source>Match making</source>
<translation>匹配中</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="1340"/>
<location filename="../../view/main_window.py" line="1348"/>
<source>Exception occurred 😥</source>
<translation>程序出现异常 😥</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="1345"/>
<location filename="../../view/main_window.py" line="1353"/>
<source>Copy to clipboard</source>
<translation>确认并复制到剪贴板</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="1346"/>
<location filename="../../view/main_window.py" line="1354"/>
<source>Cancel</source>
<translation>取消</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="317"/>
<location filename="../../view/main_window.py" line="325"/>
<source>Search 👀</source>
<translation>战绩查询 👀</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="604"/>
<location filename="../../view/main_window.py" line="612"/>
<source>Exit</source>
<translation>直接退出</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="603"/>
<location filename="../../view/main_window.py" line="611"/>
<source>Minimize</source>
<translation>最小化到任务栏</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="320"/>
<location filename="../../view/main_window.py" line="328"/>
<source>Quit</source>
<translation>退出</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="596"/>
<location filename="../../view/main_window.py" line="604"/>
<source>Do you wish to exit?</source>
<translation>您第一次点击了关闭按钮</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="596"/>
<location filename="../../view/main_window.py" line="604"/>
<source>Choose action for close button (you can modify it at any time in the settings page)</source>
<translation>请选择点击关闭按钮的默认行为(您可以今后任意时间在设置界面修改它)</translation>
</message>
Expand All @@ -746,12 +746,12 @@
<translation type="obsolete">客户端请求超时</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="267"/>
<location filename="../../view/main_window.py" line="268"/>
<source>Check Update Failed</source>
<translation>检查更新失败</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="267"/>
<location filename="../../view/main_window.py" line="268"/>
<source>Failed to check for updates, possibly unable to connect to Github.</source>
<translation>请确保能连接至 GitHub</translation>
</message>
Expand Down Expand Up @@ -781,17 +781,17 @@
<translation>客户端信息请求失败</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="918"/>
<location filename="../../view/main_window.py" line="926"/>
<source>Blue Team</source>
<translation>蓝色方</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="919"/>
<location filename="../../view/main_window.py" line="927"/>
<source>Red Team</source>
<translation>红色方</translation>
</message>
<message>
<location filename="../../view/main_window.py" line="948"/>
<location filename="../../view/main_window.py" line="956"/>
<source>Waiting reconnect</source>
<translation>等待重新连接</translation>
</message>
Expand Down Expand Up @@ -1516,7 +1516,7 @@ when they are used by Seraphine, which will cost more time</source>
<message>
<location filename="../../view/start_interface.py" line="84"/>
<source>Connecting to LOL Client</source>
<translation>客户端连接中</translation>
<translation type="obsolete">客户端连接中</translation>
</message>
<message>
<location filename="../../view/start_interface.py" line="26"/>
Expand Down Expand Up @@ -1549,20 +1549,30 @@ when they are used by Seraphine, which will cost more time</source>
<translation type="obsolete">如果客户端已经启动,请尝试使用管理员身份打开 Seraphine</translation>
</message>
<message>
<location filename="../../view/start_interface.py" line="73"/>
<location filename="../../view/start_interface.py" line="72"/>
<source>LOL Client connected</source>
<translation>客户端连接成功</translation>
</message>
<message>
<location filename="../../view/start_interface.py" line="77"/>
<location filename="../../view/start_interface.py" line="76"/>
<source>Copy port and token</source>
<translation>复制端口号和令牌</translation>
</message>
<message>
<location filename="../../view/start_interface.py" line="85"/>
<location filename="../../view/start_interface.py" line="84"/>
<source>LOL client folder:</source>
<translation>客户端路径:</translation>
</message>
<message>
<location filename="../../view/start_interface.py" line="83"/>
<source>Connecting to LOL Client...</source>
<translation>客户端连接中...</translation>
</message>
<message>
<location filename="../../view/start_interface.py" line="86"/>
<source>(You can launch LOL by other means)</source>
<translation>(您也可以通过其他方式打开客户端)</translation>
</message>
</context>
<context>
<name>SummonerInfoBar</name>
Expand Down
3 changes: 2 additions & 1 deletion app/resource/qss/dark/start_interface.qss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ QLabel#label1 {
color: white
}

QLabel#label2 {
QLabel#label2,
QLabel#label3 {
font: 14px 'Segoe UI', 'Microsoft YaHei';
color: rgb(176, 176, 177)
}
3 changes: 2 additions & 1 deletion app/resource/qss/light/start_interface.qss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ QLabel#label1 {
font: 33px 'Microsoft YaHei'
}

QLabel#label2 {
QLabel#label2,
QLabel#label3 {
font: 14px 'Segoe UI', 'Microsoft YaHei';
color: rgb(131, 131, 131)
}
18 changes: 9 additions & 9 deletions app/view/start_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,15 @@ def __init__(self, parent: QWidget = None):
self.processBar = IndeterminateProgressBar(self)
self.label1 = QLabel()
self.label2 = QLabel()
self.label3 = QLabel()
self.pushButton = PushButton()

self.pushButtonLayout = QHBoxLayout()

self.vBoxLayout = QVBoxLayout(self)

self.__initWidget()
self.__initLayout()

def __initLayout(self):
self.pushButtonLayout.addItem(
QSpacerItem(20, 20, QSizePolicy.Expanding, QSizePolicy.Minimum))
self.pushButtonLayout.addWidget(self.pushButton)
self.pushButtonLayout.addItem(
QSpacerItem(20, 20, QSizePolicy.Expanding, QSizePolicy.Minimum))

self.label1.setAlignment(Qt.AlignCenter)
self.label2.setAlignment(Qt.AlignCenter)
Expand All @@ -51,15 +45,20 @@ def __initLayout(self):
QSpacerItem(20, 20, QSizePolicy.Minimum, QSizePolicy.Expanding))
self.vBoxLayout.addWidget(self.label1)
self.vBoxLayout.addSpacing(20)
self.vBoxLayout.addLayout(self.pushButtonLayout)
self.vBoxLayout.addWidget(self.pushButton, alignment=Qt.AlignCenter)
self.vBoxLayout.addWidget(self.label3, alignment=Qt.AlignCenter)
self.vBoxLayout.addSpacing(20)
self.vBoxLayout.addWidget(self.label2)
self.vBoxLayout.addItem(
QSpacerItem(20, 20, QSizePolicy.Minimum, QSizePolicy.Expanding))

def __initWidget(self):
self.pushButton.setSizePolicy(
QSizePolicy.Policy.Maximum, QSizePolicy.Policy.Fixed)

self.label1.setObjectName('label1')
self.label2.setObjectName('label2')
self.label3.setObjectName("label3")

self.__onShowLoadingPage()

Expand All @@ -81,9 +80,10 @@ def __onShowLoadingPage(self):
self.processBar.start()
self.loading = True

self.label1.setText(self.tr("Connecting to LOL Client"))
self.label1.setText(self.tr("Connecting to LOL Client..."))
self.label2.setText(self.tr("LOL client folder:") +
f" {cfg.get(cfg.lolFolder)}")
self.label3.setText(self.tr("(You can launch LOL by other means)"))

self.pushButton.setIcon(Icon.CIRCLERIGHT)
self.pushButton.setText(self.tr("Start LOL Client"))
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

## 快速上手 🤗
### 直接使用打包好的程序
[release](https://github.com/Zzaphkiel/Seraphine/releases/latest) 中下载最新版本的压缩包后解压,运行文件夹内 `Seraphine.exe` 开始使用
点击[这里](https://github.com/Zzaphkiel/Seraphine/releases/latest)进入发布页面,在下方找到资源中的 `Seraphine.zip`,点击下载并解压至文件夹中,双击运行其中的 `Seraphine.exe` 即可

### 或通过本地构建
下载项目 `zip` 压缩包解压至文件夹或通过 `git`
Expand Down Expand Up @@ -90,7 +90,7 @@ Seraphine 提供的战绩查询相关功能的数据均是由英雄联盟客户

如果您有功能上的添加或修改建议,也非常欢迎提出 issue 进行讨论![PR](https://github.com/Zzaphkiel/Seraphine/pulls) 也大欢迎!

**发布新 issue 前先善用搜索功能,请看看之前是否讨论过相关或类似的问题** _因开学太忙,后续的功能更新、BUG 修复以及 issue 回复的速度将显著变慢,还请谅解。_
**发布新 issue 前请先善用搜索功能,看看之前是否讨论过相关或类似的问题** _因开学太忙,后续的功能更新、BUG 修复以及 issue 回复的速度将显著变慢,还请谅解。_

## 您也可以自己打包可执行文件 📂
`seraphine` 虚拟环境下安装 `Pyinstaller`
Expand Down

0 comments on commit d4da112

Please sign in to comment.