From f004c9ddf6045b3e5e4035d90413b30456516f26 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Wed, 26 Aug 2020 14:21:25 +0100 Subject: [PATCH] "Not Python 3.x" popup message sub-substitutions fixed. string.format() doesn't assign to string, so actually need to do that. --- EDMarketConnector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EDMarketConnector.py b/EDMarketConnector.py index dc1bdd16..94083df5 100755 --- a/EDMarketConnector.py +++ b/EDMarketConnector.py @@ -961,7 +961,7 @@ if __name__ == "__main__": # Now the string should match, so try translation popup_text = _(popup_text) # And substitute in the other words. - popup_text.format(PLUGINS=_('Plugins'), FILE=_('File'), SETTINGS=_('Settings'), DISABLED='.disabled') + popup_text = popup_text.format(PLUGINS=_('Plugins'), FILE=_('File'), SETTINGS=_('Settings'), DISABLED='.disabled') # And now we do need these to be actual \r\n popup_text = popup_text.replace('\\n', '\n') popup_text = popup_text.replace('\\r', '\r')