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

+3 -3
View File
@@ -18,12 +18,12 @@
from PyQt5.QtCore import QCoreApplication
from View.Tools.PamhyrTranslate import PamhyrTranslate
from View.Translate import MainTranslate
_translate = QCoreApplication.translate
class CheckListTranslate(PamhyrTranslate):
class CheckListTranslate(MainTranslate):
def __init__(self):
super(CheckListTranslate, self).__init__()
@@ -32,6 +32,6 @@ class CheckListTranslate(PamhyrTranslate):
)
self._sub_dict["table_headers"] = {
"name": _translate("CheckList", "Name"),
"name": self._dict["name"],
"status": _translate("CheckList", "Status"),
}