Do not replace values before passing to gettext

This commit is contained in:
Salvo 'LtWorf' Tomaselli
2020-10-24 18:23:59 +02:00
parent 750f123620
commit 81cc446b90
6 changed files with 17 additions and 17 deletions

View File

@@ -99,7 +99,7 @@ class creatorForm(QtWidgets.QDialog):
try:
hlist.append(self.table.item(i, j).text())
except:
QtWidgets.QMessageBox.information(None, _("Error"), _(f'Unset value in {i + 1},{j + 1}!'))
QtWidgets.QMessageBox.information(None, _("Error"), _('Unset value in %d,%d!') % (i + 1, j + 1))
return None
content.append(hlist)
return relation.Relation.create_from(header, content)

View File

@@ -118,7 +118,7 @@ class relForm(QtWidgets.QMainWindow):
if online is None:
r = _('Network error')
elif online > version:
r = _(f'New version available online: {online}.')
r = _('New version available online: %s.') % online
elif online == version:
r = _('Latest version installed.')
else: