1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-16 09:10:35 +03:00

Add translations for python 3.x warning popup

This commit is contained in:
Athanasius 2020-06-27 23:02:03 +01:00
parent 02c232c279
commit 821111284e
2 changed files with 8 additions and 9 deletions

View File

@ -913,15 +913,8 @@ if __name__ == "__main__":
plugins_not_py3_last = config.getint('plugins_not_py3_last') or 0
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\n"
"You can disable a plugin by renaming its folder to have '.disabled' "
"on the end of the name."
)
_('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.")
)
config.set('plugins_not_py3_last', int(time()))

View File

@ -334,6 +334,12 @@
/* Section heading in settings. [prefs.py] */
"Plugins folder" = "Plugins folder";
/* Popup title: Warning about plugins without Python 3.x support [EDMarketConnector.py] */
"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.";
/* Federation rank. [stats.py] */
"Post Captain" = "Post Captain";