Skip to content

Commit

Permalink
More DFU warning messages translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
Ultrawipf committed Mar 19, 2024
1 parent 7d10b14 commit 901f421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dfu_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,12 @@ def check_metadata(self,metadata):
if "HW_TYPE" in metadatadict and self.devinfo["CUR_HW_TYPE"]: # hw name definition of new firmware should match current one
if self.devinfo["CUR_HW_TYPE"] != metadatadict["HW_TYPE"]:
# Warn hwtype
warnmsg += f"Warning: Current firmware type {self.devinfo['CUR_HW_TYPE']} does not match new firmware type {metadatadict['HW_TYPE']}\n"
warnmsg += self.tr(f"Warning: Current firmware type {self.devinfo['CUR_HW_TYPE']} does not match new firmware type {metadatadict['HW_TYPE']}\n")
if warnmsg:
self.log(warnmsg + "\n")
msg = PyQt6.QtWidgets.QMessageBox()
msg.setIcon(PyQt6.QtWidgets.QMessageBox.Icon.Warning)
msg.setWindowTitle("WARNING")
msg.setText("Firmware mismatch detected!")
msg.setText(self.tr("Firmware mismatch detected!"))
msg.setInformativeText(warnmsg)
ret = msg.exec()

0 comments on commit 901f421

Please sign in to comment.