Skip to content

Commit 9f3fa9c

Browse files
committed
Fix Translate Context
1 parent f5a4be1 commit 9f3fa9c

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed

steamCloudSaveDownloaderGUI/dialogs.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,13 +493,15 @@ def set_repo(self):
493493
self.repo_label.setOpenExternalLinks(True)
494494

495495
def set_author(self):
496-
self.author_label = QW.QLabel(self.tr("Author: <a href='https://github.com/hhhhhojeihsu'>hhhhhojeihsu</a>"))
496+
author_str = self.tr("Author:")
497+
self.author_label = QW.QLabel(f"{author_str} <a href='https://github.com/hhhhhojeihsu'>hhhhhojeihsu</a>")
497498
self.author_label.setTextFormat(QtCore.Qt.TextFormat.RichText)
498499
self.author_label.setTextInteractionFlags(QtCore.Qt.TextInteractionFlag.TextBrowserInteraction)
499500
self.author_label.setOpenExternalLinks(True)
500501

501502
def set_submit_issue(self):
502-
self.issue_label = QW.QLabel(self.tr("<a href='https://github.com/pyscsd/steamCloudSaveDownloader/issues'>Submit Issue</a>"))
503+
submit_str = self.tr("Submit Issue")
504+
self.issue_label = QW.QLabel(f"<a href='https://github.com/pyscsd/steamCloudSaveDownloaderGUI/issues'>{submit_str}</a>")
503505
self.issue_label.setTextFormat(QtCore.Qt.TextFormat.RichText)
504506
self.issue_label.setTextInteractionFlags(QtCore.Qt.TextInteractionFlag.TextBrowserInteraction)
505507
self.issue_label.setOpenExternalLinks(True)
@@ -515,4 +517,4 @@ def set_button_box(self):
515517
self.button_box.close_button = self.button_box.addButton(
516518
self.tr("Close"),
517519
QW.QDialogButtonBox.ButtonRole.AcceptRole)
518-
self.button_box.close_button.clicked.connect(self.accept)
520+
self.button_box.close_button.clicked.connect(self.accept)

steamCloudSaveDownloaderGUI/i18n/scsdGUI_zh_CN.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,28 @@
3535
<translation type="unfinished"></translation>
3636
</message>
3737
<message>
38-
<location filename="../dialogs.py" line="496"/>
39-
<source>Author: &lt;a href=&apos;https://github.com/hhhhhojeihsu&apos;&gt;hhhhhojeihsu&lt;/a&gt;</source>
38+
<location filename="../dialogs.py" line="497"/>
39+
<source>Author:</source>
4040
<translation type="unfinished"></translation>
4141
</message>
4242
<message>
43-
<location filename="../dialogs.py" line="502"/>
44-
<source>&lt;a href=&apos;https://github.com/pyscsd/steamCloudSaveDownloader/issues&apos;&gt;Submit Issue&lt;/a&gt;</source>
43+
<location filename="../dialogs.py" line="504"/>
44+
<source>Submit Issue</source>
4545
<translation type="unfinished"></translation>
4646
</message>
4747
<message>
48-
<location filename="../dialogs.py" line="508"/>
48+
<location filename="../dialogs.py" line="510"/>
4949
<source>Released under MIT License</source>
5050
<translation type="unfinished"></translation>
5151
</message>
5252
<message>
53-
<location filename="../dialogs.py" line="511"/>
53+
<location filename="../dialogs.py" line="513"/>
5454
<source>This program is not affiliated with Valve or Steam.
5555
Steam is a trademark of Valve Corporation.</source>
5656
<translation type="unfinished"></translation>
5757
</message>
5858
<message>
59-
<location filename="../dialogs.py" line="516"/>
59+
<location filename="../dialogs.py" line="518"/>
6060
<source>Close</source>
6161
<translation type="unfinished"></translation>
6262
</message>

steamCloudSaveDownloaderGUI/i18n/scsdGUI_zh_TW.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,28 @@
3535
<translation>關於</translation>
3636
</message>
3737
<message>
38-
<location filename="../dialogs.py" line="496"/>
39-
<source>Author: &lt;a href=&apos;https://github.com/hhhhhojeihsu&apos;&gt;hhhhhojeihsu&lt;/a&gt;</source>
38+
<location filename="../dialogs.py" line="497"/>
39+
<source>Author:</source>
4040
<translation type="unfinished"></translation>
4141
</message>
4242
<message>
43-
<location filename="../dialogs.py" line="502"/>
44-
<source>&lt;a href=&apos;https://github.com/pyscsd/steamCloudSaveDownloader/issues&apos;&gt;Submit Issue&lt;/a&gt;</source>
43+
<location filename="../dialogs.py" line="504"/>
44+
<source>Submit Issue</source>
4545
<translation type="unfinished"></translation>
4646
</message>
4747
<message>
48-
<location filename="../dialogs.py" line="508"/>
48+
<location filename="../dialogs.py" line="510"/>
4949
<source>Released under MIT License</source>
5050
<translation type="unfinished"></translation>
5151
</message>
5252
<message>
53-
<location filename="../dialogs.py" line="511"/>
53+
<location filename="../dialogs.py" line="513"/>
5454
<source>This program is not affiliated with Valve or Steam.
5555
Steam is a trademark of Valve Corporation.</source>
5656
<translation type="unfinished"></translation>
5757
</message>
5858
<message>
59-
<location filename="../dialogs.py" line="516"/>
59+
<location filename="../dialogs.py" line="518"/>
6060
<source>Close</source>
6161
<translation type="unfinished"></translation>
6262
</message>

0 commit comments

Comments
 (0)