some translation fixes
This commit is contained in:
parent
c31c663c8a
commit
efa4722475
4 changed files with 11 additions and 11 deletions
|
@ -124,6 +124,7 @@ class App(QApplication):
|
||||||
if custom_palette is not None:
|
if custom_palette is not None:
|
||||||
self.setPalette(custom_palette)
|
self.setPalette(custom_palette)
|
||||||
qtawesome.set_defaults(color=custom_palette.color(QPalette.Text))
|
qtawesome.set_defaults(color=custom_palette.color(QPalette.Text))
|
||||||
|
|
||||||
elif style := self.settings.value("style_sheet", False):
|
elif style := self.settings.value("style_sheet", False):
|
||||||
self.setStyle(QStyleFactory.create("Fusion"))
|
self.setStyle(QStyleFactory.create("Fusion"))
|
||||||
self.settings.setValue("color_scheme", "")
|
self.settings.setValue("color_scheme", "")
|
||||||
|
|
|
@ -2132,15 +2132,13 @@
|
||||||
<context>
|
<context>
|
||||||
<name>VerifyWorker</name>
|
<name>VerifyWorker</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../utils/legendary_utils.py" line="183"/>
|
<location filename="../utils/legendary_utils.py" line="184"/>
|
||||||
<source>VerifyWorker</source>
|
<source>Path does not exist</source>
|
||||||
<comment>Path does not exist</comment>
|
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../utils/legendary_utils.py" line="186"/>
|
<location filename="../utils/legendary_utils.py" line="187"/>
|
||||||
<source>VerifyWorker</source>
|
<source>No files to validate</source>
|
||||||
<comment>No files to validate</comment>
|
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
|
|
@ -6,12 +6,12 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>223</width>
|
<width>235</width>
|
||||||
<height>127</height>
|
<height>127</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>ImportGroup</string>
|
<string notr="true">ImportGroup</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Import EGL game from a directory</string>
|
<string>Import EGL game from a directory</string>
|
||||||
|
|
|
@ -83,7 +83,6 @@ class VerifyWorker(QRunnable):
|
||||||
super(VerifyWorker, self).__init__()
|
super(VerifyWorker, self).__init__()
|
||||||
self.core, self.app_name = core, app_name
|
self.core, self.app_name = core, app_name
|
||||||
self.signals = VerifySignals()
|
self.signals = VerifySignals()
|
||||||
self.tr = QCoreApplication.translate
|
|
||||||
self.setAutoDelete(True)
|
self.setAutoDelete(True)
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
@ -113,6 +112,8 @@ class VerifyWorker(QRunnable):
|
||||||
failed = []
|
failed = []
|
||||||
missing = []
|
missing = []
|
||||||
|
|
||||||
|
_translate = QCoreApplication.translate
|
||||||
|
|
||||||
logger.info(f'Verifying "{igame.title}" version "{manifest.meta.build_version}"')
|
logger.info(f'Verifying "{igame.title}" version "{manifest.meta.build_version}"')
|
||||||
repair_file = []
|
repair_file = []
|
||||||
try:
|
try:
|
||||||
|
@ -134,10 +135,10 @@ class VerifyWorker(QRunnable):
|
||||||
logger.error(f'Other failure (see log), treating file as missing: "{path}"')
|
logger.error(f'Other failure (see log), treating file as missing: "{path}"')
|
||||||
missing.append(path)
|
missing.append(path)
|
||||||
except OSError as e:
|
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))
|
logger.error(str(e))
|
||||||
except ValueError as 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))
|
logger.error(str(e))
|
||||||
|
|
||||||
# always write repair file, even if all match
|
# always write repair file, even if all match
|
||||||
|
|
Loading…
Reference in a new issue