From c12625124641907ecc133bab661b853b9bd8c1a5 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 2e76163f..cfd92b1c 100755 --- a/EDMarketConnector.py +++ b/EDMarketConnector.py @@ -1065,7 +1065,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')