1
0
Fork 0
mirror of synced 2024-06-10 22:54:41 +12:00

some translation fixes

This commit is contained in:
Dummerle 2021-11-13 01:36:58 +01:00
parent c31c663c8a
commit efa4722475
No known key found for this signature in database
GPG key ID: AB68CC59CA39F2F1
4 changed files with 11 additions and 11 deletions

View file

@ -124,6 +124,7 @@ class App(QApplication):
if custom_palette is not None:
self.setPalette(custom_palette)
qtawesome.set_defaults(color=custom_palette.color(QPalette.Text))
elif style := self.settings.value("style_sheet", False):
self.setStyle(QStyleFactory.create("Fusion"))
self.settings.setValue("color_scheme", "")

View file

@ -2132,15 +2132,13 @@
<context>
<name>VerifyWorker</name>
<message>
<location filename="../utils/legendary_utils.py" line="183"/>
<source>VerifyWorker</source>
<comment>Path does not exist</comment>
<location filename="../utils/legendary_utils.py" line="184"/>
<source>Path does not exist</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../utils/legendary_utils.py" line="186"/>
<source>VerifyWorker</source>
<comment>No files to validate</comment>
<location filename="../utils/legendary_utils.py" line="187"/>
<source>No files to validate</source>
<translation type="unfinished"></translation>
</message>
</context>

View file

@ -6,12 +6,12 @@
<rect>
<x>0</x>
<y>0</y>
<width>223</width>
<width>235</width>
<height>127</height>
</rect>
</property>
<property name="windowTitle">
<string>ImportGroup</string>
<string notr="true">ImportGroup</string>
</property>
<property name="title">
<string>Import EGL game from a directory</string>

View file

@ -83,7 +83,6 @@ class VerifyWorker(QRunnable):
super(VerifyWorker, self).__init__()
self.core, self.app_name = core, app_name
self.signals = VerifySignals()
self.tr = QCoreApplication.translate
self.setAutoDelete(True)
def run(self):
@ -113,6 +112,8 @@ class VerifyWorker(QRunnable):
failed = []
missing = []
_translate = QCoreApplication.translate
logger.info(f'Verifying "{igame.title}" version "{manifest.meta.build_version}"')
repair_file = []
try:
@ -134,10 +135,10 @@ class VerifyWorker(QRunnable):
logger.error(f'Other failure (see log), treating file as missing: "{path}"')
missing.append(path)
except OSError as e:
QMessageBox.warning(None, "Error", self.tr("VerifyWorker", "Path does not exist"))
QMessageBox.warning(None, "Error", _translate("VerifyWorker", "Path does not exist"))
logger.error(str(e))
except ValueError as e:
QMessageBox.warning(None, "Error", self.tr("VerifyWorker", "No files to validate"))
QMessageBox.warning(None, "Error", _translate("VerifyWorker", "No files to validate"))
logger.error(str(e))
# always write repair file, even if all match