1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-17 17:42:20 +03:00

"Not Python 3.x" popup message sub-substitutions fixed.

string.format() doesn't assign to string, so actually need to do that.
This commit is contained in:
Athanasius 2020-08-26 14:21:25 +01:00
parent 98b6d4db38
commit c126251246

View File

@ -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')