Allow specifying context to trConst i18n function (#2246)

This commit is contained in:
Veronica Berglyd Olsen
2025-02-16 19:08:00 +01:00
parent cd1c7a3b0b
commit a6be3f9081
6 changed files with 23 additions and 21 deletions
+1 -1
View File
@@ -409,7 +409,7 @@ class _StatusPage(NFixedPage):
def buildMenu(menu: QMenu, items: dict[nwStatusShape, str]) -> None:
for shape, label in items.items():
icon = NWStatus.createIcon(self._iPx, iColor, shape)
action = menu.addAction(icon, trConst(label))
action = menu.addAction(icon, trConst(label, "Shape"))
action.triggered.connect(qtLambda(self._selectShape, shape))
self._icons[shape] = icon