Pamhyr: Factorize some translate.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-02-21 15:52:16 +01:00
1 parent b3a7e7f465
commit 2e158f4c1b
38 files changed
+274 -239

No files matched your search

+5 -5
View File
@@ -18,7 +18,7 @@
from PyQt5.QtCore import QCoreApplication
from View.Tools.PamhyrTranslate import PamhyrTranslate
from View.Translate import MainTranslate
from Model.LateralContribution.LateralContributionTypes import (
NotDefined, LateralContrib, Rain, Evaporation,
@@ -34,7 +34,7 @@ LC_types = {
}
class LCTranslate(PamhyrTranslate):
class LCTranslate(MainTranslate):
def __init__(self):
super(LCTranslate, self).__init__()
@@ -50,9 +50,9 @@ class LCTranslate(PamhyrTranslate):
}
self._sub_dict["table_headers"] = {
"name": _translate("LateralContribution", "Name"),
"type": _translate("LateralContribution", "Type"),
"edge": _translate("LateralContribution", "Reach"),
"name": self._dict["name"],
"type": self._dict["type"],
"edge": self._dict["reach"],
"begin_kp": _translate("LateralContribution", "Begin kp (m)"),
"end_kp": _translate("LateralContribution", "End kp (m)")
}