mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Solver: Parameters: Fix Y/N french translate.
This commit is contained in:
1 parent
b784f00b92
commit
502c2240f7
2 files changed
+22
-9
No files matched your search
@@ -60,13 +60,17 @@ class TableModel(PamhyrTableModel):
|
||||
|
||||
if cname == "name":
|
||||
value = self._lst.get(row)[cname]
|
||||
|
||||
if value in self._trad.get_dict("names"):
|
||||
value = self._trad.get_dict("names")[value]
|
||||
|
||||
return value
|
||||
elif cname == "value":
|
||||
value = self._lst.get(row)[cname]
|
||||
|
||||
if value in self._trad.get_dict("yes_no"):
|
||||
value = self._trad.get_dict("yes_no")[value]
|
||||
|
||||
return value
|
||||
|
||||
return QVariant()
|
||||
|
||||
Reference in new issue
Block a user