LC: Fix table translate.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-09-19 15:19:06 +02:00
1 parent ecefb39265
commit f4545b0075
4 files changed
+27 -2

No files matched your search

+2 -1
View File
@@ -41,7 +41,7 @@ from View.Plot.MplCanvas import MplCanvas
from View.Plot.PamhyrToolbar import PamhyrPlotToolbar
from View.LateralContribution.translate import long_types
from View.LateralContribution.Edit.translate import table_headers
from View.LateralContribution.Edit.translate import table_headers, retranslate
from View.LateralContribution.Edit.Table import TableModel
from View.LateralContribution.Edit.Plot import Plot
@@ -87,6 +87,7 @@ class EditLateralContributionWindow(ASubMainWindow, ListedSubWindow):
self.paste_sc = QShortcut(QKeySequence.Paste, self)
def setup_table(self):
retranslate()
headers = {}
for h in self._data.header:
headers[h] = table_headers[h]