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
@@ -601,7 +601,7 @@ class GuiMainMenu(QMenuBar):
self.mInsField = self.insMenu.addMenu(self.tr("Word/Character Count"))
for field in nwStats.ALL_FIELDS:
value = nwShortcode.FIELD_VALUE.format(field)
action = self.mInsField.addAction(trConst(nwLabels.STATS_NAME[field]))
action = self.mInsField.addAction(trConst(nwLabels.STATS_NAME[field], "Stats"))
action.triggered.connect(qtLambda(self.requestDocInsertText.emit, value))
# Insert > Breaks and Vertical Space