From 019566b383cf3852897010ddce3e110f4f45e571 Mon Sep 17 00:00:00 2001 From: Johann Bauer Date: Sat, 12 Jan 2019 21:58:21 +0100 Subject: [PATCH] Change string formatting to improve translation For example, "Hide Console" would be "Konsole anzeigen" in German. Currently, translators can only show "Anzeigen Konsole" which doesn't make much sense. --- electrum/gui/qt/main_window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py index 7a64e3830..a37c2be84 100644 --- a/electrum/gui/qt/main_window.py +++ b/electrum/gui/qt/main_window.py @@ -255,7 +255,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): def toggle_tab(self, tab): show = not self.config.get('show_{}_tab'.format(tab.tab_name), False) self.config.set_key('show_{}_tab'.format(tab.tab_name), show) - item_text = (_("Hide") if show else _("Show")) + " " + tab.tab_description + item_text = (_("Hide {}") if show else _("Show {}")).format(tab.tab_description) tab.menu_action.setText(item_text) if show: # Find out where to place the tab