Skip to content

Commit 7f27767

Browse files
committed
chore:国际化
1 parent a46e97f commit 7f27767

File tree

9 files changed

+116
-15
lines changed

9 files changed

+116
-15
lines changed

Metaminesweeper.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
; 程序名称
77
#define MyAppName "Metasweeper"
88
; 程序版本
9-
#define MyAppVersion "3.2.1"
9+
#define MyAppVersion "3.2.2"
1010
; 发行商
1111
#define MyAppPublisher "eee555"
1212
; 官网

src/mineSweeperGUI.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,7 @@ def action_NEvent(self):
11101110
ui.Dialog.show()
11111111
ui.Dialog.exec_()
11121112
if ui.alter:
1113-
self.gameStart()
1113+
self.gameRestart()
11141114
self.pixSize = ui.pixSize
11151115
self.gameMode = ui.gameMode
11161116
self.auto_replay = ui.auto_replay

src/ui/de_DE.ts

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,17 +274,17 @@
274274
<translation>Personalisierte Identifizierung:</translation>
275275
</message>
276276
<message>
277-
<location filename="ui_video_control.py" line="185"/>
277+
<location filename="ui_video_control.py" line="190"/>
278278
<source>重播</source>
279279
<translation>Wiederholung</translation>
280280
</message>
281281
<message>
282-
<location filename="ui_video_control.py" line="186"/>
282+
<location filename="ui_video_control.py" line="191"/>
283283
<source>播放/暂停</source>
284284
<translation>Abspielen/Pause</translation>
285285
</message>
286286
<message>
287-
<location filename="ui_video_control.py" line="187"/>
287+
<location filename="ui_video_control.py" line="192"/>
288288
<source>滑动滚轮修改播放速度</source>
289289
<translation>Scrollrad zum Ändern der Abspielgeschwindigkeit</translation>
290290
</message>
@@ -638,6 +638,36 @@
638638
<source>致谢:濮天羿、向飞宇、钟言、翁逸杰、张砷镓、Thomas Kolar</source>
639639
<translation>Danksagungen: 濮天羿, 向飞宇, 钟言, 翁逸杰, 张砷镓, Thomas Kolar</translation>
640640
</message>
641+
<message>
642+
<location filename="../videoControl.py" line="463"/>
643+
<source>录像</source>
644+
<translation>Wiedergabe</translation>
645+
</message>
646+
<message>
647+
<location filename="../videoControl.py" line="151"/>
648+
<source>全选</source>
649+
<translation>Alles auswählen</translation>
650+
</message>
651+
<message>
652+
<location filename="../videoControl.py" line="167"/>
653+
<source>导出选中的录像</source>
654+
<translation>Ausgewählte Aufzeichnungen exportieren</translation>
655+
</message>
656+
<message>
657+
<location filename="../videoControl.py" line="292"/>
658+
<source>时间</source>
659+
<translation>Zeit</translation>
660+
</message>
661+
<message>
662+
<location filename="../videoControl.py" line="300"/>
663+
<source>事件</source>
664+
<translation>Ereignis</translation>
665+
</message>
666+
<message>
667+
<location filename="../videoControl.py" line="308"/>
668+
<source>标签</source>
669+
<translation>Bezeichnung</translation>
670+
</message>
641671
</context>
642672
<context>
643673
<name>MainWindow</name>

src/ui/en_US.ts

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,17 +274,17 @@
274274
<translation>Unique identifier:</translation>
275275
</message>
276276
<message>
277-
<location filename="ui_video_control.py" line="185"/>
277+
<location filename="ui_video_control.py" line="190"/>
278278
<source>重播</source>
279279
<translation>Replay</translation>
280280
</message>
281281
<message>
282-
<location filename="ui_video_control.py" line="186"/>
282+
<location filename="ui_video_control.py" line="191"/>
283283
<source>播放/暂停</source>
284284
<translation>Play/Pause</translation>
285285
</message>
286286
<message>
287-
<location filename="ui_video_control.py" line="187"/>
287+
<location filename="ui_video_control.py" line="192"/>
288288
<source>滑动滚轮修改播放速度</source>
289289
<translation>Scroll the mouse wheel to adjust the playing speed</translation>
290290
</message>
@@ -638,6 +638,36 @@
638638
<source>致谢:濮天羿、向飞宇、钟言、翁逸杰、张砷镓、Thomas Kolar</source>
639639
<translation>Acknowledgements: 濮天羿, 向飞宇, 钟言, 翁逸杰, 张砷镓, Thomas Kolar</translation>
640640
</message>
641+
<message>
642+
<location filename="../videoControl.py" line="463"/>
643+
<source>录像</source>
644+
<translation>Replay</translation>
645+
</message>
646+
<message>
647+
<location filename="../videoControl.py" line="151"/>
648+
<source>全选</source>
649+
<translation>Select All</translation>
650+
</message>
651+
<message>
652+
<location filename="../videoControl.py" line="167"/>
653+
<source>导出选中的录像</source>
654+
<translation>Export selected replays</translation>
655+
</message>
656+
<message>
657+
<location filename="../videoControl.py" line="292"/>
658+
<source>时间</source>
659+
<translation>Time</translation>
660+
</message>
661+
<message>
662+
<location filename="../videoControl.py" line="300"/>
663+
<source>事件</source>
664+
<translation>Event</translation>
665+
</message>
666+
<message>
667+
<location filename="../videoControl.py" line="308"/>
668+
<source>标签</source>
669+
<translation>Label</translation>
670+
</message>
641671
</context>
642672
<context>
643673
<name>MainWindow</name>

src/ui/pl_PL.ts

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,17 +274,17 @@
274274
<translation>Identyfikacja spersonalizowana:</translation>
275275
</message>
276276
<message>
277-
<location filename="ui_video_control.py" line="185"/>
277+
<location filename="ui_video_control.py" line="190"/>
278278
<source>重播</source>
279279
<translation>Powtórka</translation>
280280
</message>
281281
<message>
282-
<location filename="ui_video_control.py" line="186"/>
282+
<location filename="ui_video_control.py" line="191"/>
283283
<source>播放/暂停</source>
284284
<translation>Odtwórz/Wstrzymaj</translation>
285285
</message>
286286
<message>
287-
<location filename="ui_video_control.py" line="187"/>
287+
<location filename="ui_video_control.py" line="192"/>
288288
<source>滑动滚轮修改播放速度</source>
289289
<translation>Reguluj prędkość odtwarzania, przesuwając pokrętło</translation>
290290
</message>
@@ -638,6 +638,36 @@
638638
<source>致谢:濮天羿、向飞宇、钟言、翁逸杰、张砷镓、Thomas Kolar</source>
639639
<translation>Podziękowania: 濮天羿, 向飞宇, 钟言, 翁逸杰, 张砷镓, Thomas Kolar</translation>
640640
</message>
641+
<message>
642+
<location filename="../videoControl.py" line="463"/>
643+
<source>录像</source>
644+
<translation>Powtórka</translation>
645+
</message>
646+
<message>
647+
<location filename="../videoControl.py" line="151"/>
648+
<source>全选</source>
649+
<translation>Zaznacz wszystko</translation>
650+
</message>
651+
<message>
652+
<location filename="../videoControl.py" line="167"/>
653+
<source>导出选中的录像</source>
654+
<translation>Eksportuj wybrane powtórki</translation>
655+
</message>
656+
<message>
657+
<location filename="../videoControl.py" line="292"/>
658+
<source>时间</source>
659+
<translation>Czas</translation>
660+
</message>
661+
<message>
662+
<location filename="../videoControl.py" line="300"/>
663+
<source>事件</source>
664+
<translation>Zdarzenie</translation>
665+
</message>
666+
<message>
667+
<location filename="../videoControl.py" line="308"/>
668+
<source>标签</source>
669+
<translation>Etykieta</translation>
670+
</message>
641671
</context>
642672
<context>
643673
<name>MainWindow</name>

src/ui/ui_video_control.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,11 @@ def setupUi(self, Form):
169169
self.tabWidget = QtWidgets.QTabWidget(Form)
170170
self.tabWidget.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
171171
self.tabWidget.setStyleSheet("QTabWidget::pane { margin: 0px; border: 0px; }\n"
172+
"QTabBar::tab {\n"
173+
" font-family: \"Microsoft YaHei\", \"微软雅黑\", \"Segoe UI\", Arial, sans-serif;\n"
174+
" font-size: 9pt;\n"
175+
" height: 22px;\n"
176+
"}\n"
172177
"")
173178
self.tabWidget.setTabsClosable(True)
174179
self.tabWidget.setMovable(True)

src/ui/生成ts文件.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
pylupdate5 ui_gameSettings.py ui_main_board.py ui_about.py ui_defined_parameter.py ui_gameSettingShortcuts.py ui_score_board.py ui_record_pop.py ui_video_control.py ../pluginDialog.py ../history_gui.py ../utils.py -ts en_US.ts -noobsolete
1+
pylupdate5 ui_gameSettings.py ui_main_board.py ui_about.py ui_defined_parameter.py ui_gameSettingShortcuts.py ui_score_board.py ui_record_pop.py ui_video_control.py ../videoControl.py ../pluginDialog.py ../history_gui.py ../utils.py -ts en_US.ts -noobsolete
22

3-
pylupdate5 ui_gameSettings.py ui_main_board.py ui_about.py ui_defined_parameter.py ui_gameSettingShortcuts.py ui_score_board.py ui_record_pop.py ui_video_control.py ../pluginDialog.py ../history_gui.py ../utils.py -ts pl_PL.ts -noobsolete
3+
pylupdate5 ui_gameSettings.py ui_main_board.py ui_about.py ui_defined_parameter.py ui_gameSettingShortcuts.py ui_score_board.py ui_record_pop.py ui_video_control.py ../videoControl.py ../pluginDialog.py ../history_gui.py ../utils.py -ts pl_PL.ts -noobsolete
44

5-
pylupdate5 ui_gameSettings.py ui_main_board.py ui_about.py ui_defined_parameter.py ui_gameSettingShortcuts.py ui_score_board.py ui_record_pop.py ui_video_control.py ../pluginDialog.py ../history_gui.py ../utils.py -ts de_DE.ts -noobsolete
5+
pylupdate5 ui_gameSettings.py ui_main_board.py ui_about.py ui_defined_parameter.py ui_gameSettingShortcuts.py ui_score_board.py ui_record_pop.py ui_video_control.py ../videoControl.py ../pluginDialog.py ../history_gui.py ../utils.py -ts de_DE.ts -noobsolete

src/videoControl.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ def __init__(self, r_path, game_setting, parent):
426426

427427

428428
def add_new_video_tab(self, video):
429+
_translate = QtCore.QCoreApplication.translate
429430
# 组织录像评论
430431
comments = []
431432
for event in video.events:
@@ -459,7 +460,7 @@ def add_new_video_tab(self, video):
459460

460461
tab.scrollAreaWidgetContents.setFixedHeight(42 * (comment_row + 1))
461462

462-
self.tabWidget.addTab(tab, f"录像({self.tab_id})")
463+
self.tabWidget.addTab(tab, _translate("Form", "录像") + f"({self.tab_id})")
463464
...
464465

465466

uiFiles/ui_video_control.ui

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,11 @@ background-color: rgb(240, 240, 240);</string>
336336
</property>
337337
<property name="styleSheet">
338338
<string notr="true">QTabWidget::pane { margin: 0px; border: 0px; }
339+
QTabBar::tab {
340+
font-family: &quot;Microsoft YaHei&quot;, &quot;微软雅黑&quot;, &quot;Segoe UI&quot;, Arial, sans-serif;
341+
font-size: 9pt;
342+
height: 22px;
343+
}
339344
</string>
340345
</property>
341346
<property name="currentIndex">

0 commit comments

Comments
 (0)