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