diff --git a/ecu.py b/ecu.py index b53ded15..5097d86e 100644 --- a/ecu.py +++ b/ecu.py @@ -1731,16 +1731,20 @@ def check_ecu2(self, diagversion, supplier, soft, version, label, addr, protocol if label is not None: label.setText("Found %i ecu" % self.num_ecu_found) - line = "" + _("Found ECU") + " [%s] " + _("(not perfect match)") + " :" \ + text = _("Found ECU") + text1 = _("(not perfect match)") + line = f"{text} {ecu_type} {text1} :" \ "%s DIAGVERSION [%s] SUPPLIER [%s] SOFT [%s] VERSION [%s instead %s]" \ - % (ecu_type, kept_ecu.name, diagversion, supplier, soft, version, tgt.version) + % (kept_ecu.name, diagversion, supplier, soft, version, tgt.version) options.main_window.logview.append(line) if not found_exact and not found_approximate: - line = "" + _("Found ECU") + " [%s] " + _("(no relevant ECU file found)") + " :" \ + text = _("Found ECU") + text1 = _("(no relevant ECU file found)") + line = f"{text} {ecu_type} {text1} :" \ "DIAGVERSION [%s] SUPPLIER [%s] SOFT [%s] VERSION [%s]" \ - % (ecu_type, diagversion, supplier, soft, version) + % (diagversion, supplier, soft, version) options.main_window.logview.append(line)