370 @param filename name of the file containing the invalid data (string) |
370 @param filename name of the file containing the invalid data (string) |
371 @param linenum number of the invalid line (integer) |
371 @param linenum number of the invalid line (integer) |
372 """ |
372 """ |
373 if linenum < 0: |
373 if linenum < 0: |
374 msg = self.trUtf8("""<p>The file <b>{0}</b> does not contain""" |
374 msg = self.trUtf8("""<p>The file <b>{0}</b> does not contain""" |
375 """ valid data.</p>""").format(filename) |
375 """ valid data.</p>""").format(filename) |
376 else: |
376 else: |
377 msg = self.trUtf8("""<p>The file <b>{0}</b> does not contain""" |
377 msg = self.trUtf8("""<p>The file <b>{0}</b> does not contain""" |
378 """ valid data.</p><p>Invalid line: {1}</p>""" |
378 """ valid data.</p><p>Invalid line: {1}</p>""" |
379 ).format(filename, linenum + 1) |
379 ).format(filename, linenum + 1) |
380 E5MessageBox.critical(self, self.trUtf8("Load Diagram"), msg) |
380 E5MessageBox.critical(self, self.trUtf8("Load Diagram"), msg) |