Localise missing strings

This commit is contained in:
Salvo 'LtWorf' Tomaselli 2020-10-25 18:55:16 +01:00
parent 88b9098afc
commit f56e2afc01
No known key found for this signature in database
GPG Key ID: B3A7CF0C801886CF

View File

@ -56,7 +56,7 @@ class creatorForm(QtWidgets.QDialog):
self.table.insertRow(self.table.rowCount()) self.table.insertRow(self.table.rowCount())
for j, value in enumerate(i): for j, value in enumerate(i):
if value is None: if value is None:
raise Exception('Relation contains a None value and cannot be edited from the GUI') raise Exception(_('Relation contains a None value and cannot be edited from the GUI'))
item = QtWidgets.QTableWidgetItem() item = QtWidgets.QTableWidgetItem()
item.setText(str(value)) item.setText(str(value))
self.table.setItem(self.table.rowCount() - 1, j, item) self.table.setItem(self.table.rowCount() - 1, j, item)
@ -71,10 +71,10 @@ class creatorForm(QtWidgets.QDialog):
i01 = QtWidgets.QTableWidgetItem() i01 = QtWidgets.QTableWidgetItem()
i10 = QtWidgets.QTableWidgetItem() i10 = QtWidgets.QTableWidgetItem()
i11 = QtWidgets.QTableWidgetItem() i11 = QtWidgets.QTableWidgetItem()
i00.setText('Field name 1') i00.setText(_('Field name 1'))
i01.setText('Field name 2') i01.setText(_('Field name 2'))
i10.setText('Value 1') i10.setText(_('Value 1'))
i11.setText('Value 2') i11.setText(_('Value 2'))
self.table.setItem(0, 0, i00) self.table.setItem(0, 0, i00)
self.table.setItem(0, 1, i01) self.table.setItem(0, 1, i01)