From 38593058f4a7c8310b90e97039c842bc4e62f332 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sun, 28 Jun 2020 14:57:10 +0100 Subject: [PATCH] Use translations of some words in Python 3.x popup text 'File', 'Settings' and 'Plugins' are defined to have translations for the menus/tabs texts, so use them. --- EDMarketConnector.py | 2 +- L10n/en.template | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/EDMarketConnector.py b/EDMarketConnector.py index 8e7469ea..34c8cb4b 100755 --- a/EDMarketConnector.py +++ b/EDMarketConnector.py @@ -914,7 +914,7 @@ if __name__ == "__main__": if (plugins_not_py3_last + 86400) < int(time()) and len(plug.PLUGINS_not_py3): tk.messagebox.showinfo( _('EDMC: Plugins Without Python 3.x Support'), - _("One or more of your enabled plugins do not yet have support for Python 3.x. Please see the list on the 'Plugins' tab of 'File' > 'Settings'. You should check if there is an updated version available, else alert the developer that they need to update the code for Python 3.x.\r\n\r\nYou can disable a plugin by renaming its folder to have '.disabled' on the end of the name.") + _("One or more of your enabled plugins do not yet have support for Python 3.x. Please see the list on the '{PLUGINS}' tab of '{FILE}' > '{SETTINGS}'. You should check if there is an updated version available, else alert the developer that they need to update the code for Python 3.x.\r\n\r\nYou can disable a plugin by renaming its folder to have '{DISABLED}' on the end of the name.".format(PLUGINS=_('Plugins'), FILE=_('File'), SETTINGS=_('Settings'), DISABLED='.disabled')) ) config.set('plugins_not_py3_last', int(time())) diff --git a/L10n/en.template b/L10n/en.template index 94a5e3ad..fdfef11d 100644 --- a/L10n/en.template +++ b/L10n/en.template @@ -341,7 +341,7 @@ "EDMC: Plugins Without Python 3.x Support" = "EDMC: Plugins Without Python 3.x Support"; /* Popup body: Warning about plugins without Python 3.x support [EDMarketConnector.py] */ -"One or more of your enabled plugins do not yet have support for Python 3.x. Please see the list on the 'Plugins' tab of 'File' > 'Settings'. You should check if there is an updated version available, else alert the developer that they need to update the code for Python 3.x.\r\n\r\nYou can disable a plugin by renaming its folder to have '{DISABLED}' on the end of the name." = "One or more of your enabled plugins do not yet have support for Python 3.x. Please see the list on the 'Plugins' tab of 'File' > 'Settings'. You should check if there is an updated version available, else alert the developer that they need to update the code for Python 3.x.\r\n\r\nYou can disable a plugin by renaming its folder to have '{DISABLED}' on the end of the name."; +"One or more of your enabled plugins do not yet have support for Python 3.x. Please see the list on the '{PLUGINS}' tab of '{FILE}' > '{SETTINGS}'. You should check if there is an updated version available, else alert the developer that they need to update the code for Python 3.x.\r\n\r\nYou can disable a plugin by renaming its folder to have '{DISABLED}' on the end of the name." = "One or more of your enabled plugins do not yet have support for Python 3.x. Please see the list on the '{PLUGINS}' tab of '{FILE}' > '{SETTINGS}'. You should check if there is an updated version available, else alert the developer that they need to update the code for Python 3.x.\r\n\r\nYou can disable a plugin by renaming its folder to have '{DISABLED}' on the end of the name."; /* Settings>Plugins>Plugins without Python 3.x support [prefs.py] */ "Plugins Without Python 3.x Support" = "Plugins Without Python 3.x Support";