Commit aa8a9dcc authored by Theophile Terraz's avatar Theophile Terraz
Browse files

translation

No related merge requests found
Showing with 121 additions and 111 deletions
+121 -111
...@@ -88,13 +88,13 @@ class EditBoundaryConditionWindow(PamhyrWindow): ...@@ -88,13 +88,13 @@ class EditBoundaryConditionWindow(PamhyrWindow):
self.setup_connections() self.setup_connections()
def setup_table(self): def setup_table(self):
table_headers = self._trad.get_dict("table_headers")
if self._data.type == "Concentration": if self._data.type == "Concentration":
self._data.header = ["time", "concentration"] self._data.header = ["time", "concentration"]
else: else:
self._data.header = ["time", "rate"] self._data.header = ["time", "mass"]
headers = {} headers = {}
table_headers = self._trad.get_dict("table_headers")
for h in self._data.header: for h in self._data.header:
headers[h] = table_headers[h] headers[h] = table_headers[h]
......
...@@ -30,13 +30,13 @@ class BCETranslate(BCTranslate): ...@@ -30,13 +30,13 @@ class BCETranslate(BCTranslate):
super(BCETranslate, self).__init__() super(BCETranslate, self).__init__()
self._dict["Edit Boundary Conditions AdisTS"] = _translate( self._dict["Edit Boundary Conditions AdisTS"] = _translate(
"BoundaryConditionAdisTS", "Edit boundary conditions AdisTS" "BoundaryConditionsAdisTS", "Edit boundary conditions AdisTS"
) )
self._sub_dict["table_headers"] = { self._sub_dict["table_headers"] = {
"time": self._dict["time"], "time": self._dict["time"],
"date": self._dict["date"], "date": self._dict["date"],
"rate": _translate("BoundaryConditionAdisTS", "Rate"), "mass": _translate("BoundaryConditionsAdisTS", "Mass"),
"concentration": _translate("BoundaryConditionAdisTS", "concentration": _translate("BoundaryConditionsAdisTS",
"Concentration"), "Concentration"),
} }
...@@ -70,7 +70,7 @@ class ComboBoxDelegate(QItemDelegate): ...@@ -70,7 +70,7 @@ class ComboBoxDelegate(QItemDelegate):
self.editor = QComboBox(parent) self.editor = QComboBox(parent)
if self._mode == "type": if self._mode == "type":
lst = [self._trad["not_associated"], "Concentration", "Rate"] lst = [self._trad["not_associated"], "Concentration", "Mass"]
self.editor.addItems( self.editor.addItems(
lst lst
) )
......
...@@ -28,7 +28,7 @@ class LCTranslate(MainTranslate): ...@@ -28,7 +28,7 @@ class LCTranslate(MainTranslate):
super(LCTranslate, self).__init__() super(LCTranslate, self).__init__()
self._dict["Lateral contribution AdisTS"] = _translate( self._dict["Lateral contribution AdisTS"] = _translate(
"LateralContribution1adisTS", "Lateral contribution AdisTS" "LateralContributionAdisTS", "Lateral contribution AdisTS"
) )
self._sub_dict["long_types"] = { self._sub_dict["long_types"] = {
......
...@@ -35,7 +35,7 @@ class EditPollutantTranslate(PollutantsTranslate): ...@@ -35,7 +35,7 @@ class EditPollutantTranslate(PollutantsTranslate):
self._sub_dict["table_headers"] = { self._sub_dict["table_headers"] = {
"type": self._dict["type"], "type": self._dict["type"],
"diametre": self._dict["unit_area"], "diameter": self._dict["unit_diameter"],
"rho": self._dict["unit_rho"], "rho": self._dict["unit_rho"],
"porosity": self._dict["unit_porosity"], "porosity": self._dict["unit_porosity"],
"cdc_riv": self._dict["unit_cdc_riv"], "cdc_riv": self._dict["unit_cdc_riv"],
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment