From 4a1a3013f4b5cf5d615eb107613e80de67a0ec80 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Sat, 13 Apr 2024 18:34:09 +0200 Subject: [PATCH] Add missing i18n wrapper to shape labels --- novelwriter/dialogs/projectsettings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/novelwriter/dialogs/projectsettings.py b/novelwriter/dialogs/projectsettings.py index 10077c84..23bb43da 100644 --- a/novelwriter/dialogs/projectsettings.py +++ b/novelwriter/dialogs/projectsettings.py @@ -36,7 +36,7 @@ from PyQt5.QtWidgets import ( from novelwriter import CONFIG, SHARED from novelwriter.common import simplified -from novelwriter.constants import nwLabels +from novelwriter.constants import nwLabels, trConst from novelwriter.core.status import NWStatus, StatusEntry from novelwriter.enum import nwStatusShape from novelwriter.extensions.configlayout import NColourLabel, NFixedPage, NScrollableForm @@ -399,7 +399,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, label) + action = menu.addAction(icon, trConst(label)) action.triggered.connect(lambda _, shape=shape: self._selectShape(shape)) self._icons[shape] = icon