mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Pamhyr: Factorize some translate.
This commit is contained in:
1 parent
b3a7e7f465
commit
2e158f4c1b
38 files changed
+274
-239
No files matched your search
@@ -18,12 +18,12 @@
|
||||
|
||||
from PyQt5.QtCore import QCoreApplication
|
||||
|
||||
from View.Tools.PamhyrTranslate import PamhyrTranslate
|
||||
from View.Translate import MainTranslate
|
||||
|
||||
_translate = QCoreApplication.translate
|
||||
|
||||
|
||||
class ParamTranslate(PamhyrTranslate):
|
||||
class ParamTranslate(MainTranslate):
|
||||
def __init__(self):
|
||||
super(ParamTranslate, self).__init__()
|
||||
|
||||
@@ -32,8 +32,8 @@ class ParamTranslate(PamhyrTranslate):
|
||||
)
|
||||
|
||||
self._sub_dict["table_headers"] = {
|
||||
"name": _translate("SolverParameters", "Name"),
|
||||
"value": _translate("SolverParameters", "Value")
|
||||
"name": self._dict["name"],
|
||||
"value": self._dict["value"],
|
||||
}
|
||||
|
||||
self._sub_dict["yes_no"] = {
|
||||
|
||||
Reference in new issue
Block a user