tChange string formatting to improve translation - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 019566b383cf3852897010ddce3e110f4f45e571 DIR parent c60583293a632b782e3840cd5af0a0083b64bfbd HTML Author: Johann Bauer <bauerj@bauerj.eu> Date: Sat, 12 Jan 2019 21:58:21 +0100 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. Diffstat: M electrum/gui/qt/main_window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py t@@ -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