From 8610b6e873526b78c96188533cb249adb99efe86 Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Sun, 11 Apr 2021 18:39:31 +0200 Subject: [PATCH] gui_qt/dictionaries: fix doubled gettext calls --- plover/gui_qt/dictionaries_widget.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/plover/gui_qt/dictionaries_widget.py b/plover/gui_qt/dictionaries_widget.py index 313e936f7..fad993039 100644 --- a/plover/gui_qt/dictionaries_widget.py +++ b/plover/gui_qt/dictionaries_widget.py @@ -119,21 +119,21 @@ def __init__(self, *args, **kwargs): # Add menu. self.menu_AddDictionaries = QMenu(self.action_AddDictionaries.text()) self.menu_AddDictionaries.setIcon(self.action_AddDictionaries.icon()) - self.menu_AddDictionaries.addAction(_( + self.menu_AddDictionaries.addAction( _('Open dictionaries'), - )).triggered.connect(self._add_existing_dictionaries) - self.menu_AddDictionaries.addAction(_( + ).triggered.connect(self._add_existing_dictionaries) + self.menu_AddDictionaries.addAction( _('New dictionary'), - )).triggered.connect(self._create_new_dictionary) + ).triggered.connect(self._create_new_dictionary) # Save menu. self.menu_SaveDictionaries = QMenu(self.action_SaveDictionaries.text()) self.menu_SaveDictionaries.setIcon(self.action_SaveDictionaries.icon()) - self.menu_SaveDictionaries.addAction(_( + self.menu_SaveDictionaries.addAction( _('Create a copy of each dictionary'), - )).triggered.connect(self._save_dictionaries) - self.menu_SaveDictionaries.addAction(_( + ).triggered.connect(self._save_dictionaries) + self.menu_SaveDictionaries.addAction( _('Merge dictionaries into a new one'), - )).triggered.connect(functools.partial(self._save_dictionaries, + ).triggered.connect(functools.partial(self._save_dictionaries, merge=True)) self.table.supportedDropActions = self._supported_drop_actions self.table.dragEnterEvent = self._drag_enter_event