Skip to content

Commit

Permalink
gui_qt/dictionaries: fix doubled gettext calls
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-pierre committed Apr 11, 2021
1 parent 666a9f7 commit 8610b6e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions plover/gui_qt/dictionaries_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8610b6e

Please sign in to comment.