mirror of https://gitlab.com/pamhyr/pamhyr2
Friction: Fix talbe translate.
parent
ffebfbdddc
commit
95288e6eef
|
|
@ -51,7 +51,7 @@ from View.Frictions.Table import (
|
||||||
from View.Plot.MplCanvas import MplCanvas
|
from View.Plot.MplCanvas import MplCanvas
|
||||||
from View.Geometry.PlotKPZ import PlotKPZ
|
from View.Geometry.PlotKPZ import PlotKPZ
|
||||||
from View.Frictions.PlotStricklers import PlotStricklers
|
from View.Frictions.PlotStricklers import PlotStricklers
|
||||||
from View.Frictions.translate import *
|
from View.Frictions.translate import table_headers, retranslate
|
||||||
|
|
||||||
from View.Stricklers.Window import StricklersWindow
|
from View.Stricklers.Window import StricklersWindow
|
||||||
|
|
||||||
|
|
@ -94,6 +94,7 @@ class FrictionsWindow(ASubMainWindow, ListedSubWindow):
|
||||||
self.paste_sc = QShortcut(QKeySequence.Paste, self)
|
self.paste_sc = QShortcut(QKeySequence.Paste, self)
|
||||||
|
|
||||||
def setup_table(self):
|
def setup_table(self):
|
||||||
|
retranslate()
|
||||||
self._table = {}
|
self._table = {}
|
||||||
|
|
||||||
table = self.find(QTableView, f"tableView")
|
table = self.find(QTableView, f"tableView")
|
||||||
|
|
|
||||||
|
|
@ -28,3 +28,11 @@ table_headers = {
|
||||||
"begin_strickler": _translate("Frictions", "Begin strickler"),
|
"begin_strickler": _translate("Frictions", "Begin strickler"),
|
||||||
"end_strickler": _translate("Frictions", "End strickler"),
|
"end_strickler": _translate("Frictions", "End strickler"),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def retranslate():
|
||||||
|
table_headers["name"] = _translate("Frictions", "Name")
|
||||||
|
# table_headers["edge"] = _translate("Frictions", "Reach")
|
||||||
|
table_headers["begin_kp"] = _translate("Frictions", "Begin kp (m)")
|
||||||
|
table_headers["end_kp"] = _translate("Frictions", "End kp (m)")
|
||||||
|
table_headers["begin_strickler"] = _translate("Frictions", "Begin strickler")
|
||||||
|
table_headers["end_strickler"] = _translate("Frictions", "End strickler")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue