Add python version warning to the translation file.

This commit is contained in:
compiling
2021-07-25 19:48:07 +10:00
parent dc950112d9
commit 4d90ca9181
3 changed files with 8 additions and 5 deletions

6
Gui.py
View File

@@ -24,11 +24,11 @@ from source.classes.BabelFish import BabelFish
from source.classes.Empty import Empty
def check_python_version():
def check_python_version(fish):
import sys
version = sys.version_info
if version.major < 3 or version.minor < 7:
messagebox.showinfo("Door Shuffle " + ESVersion, 'Door Rando may have issues with python versions earlier than 3.7. Detected version: %s' % sys.version)
messagebox.showinfo("Door Shuffle " + ESVersion, fish.translate("cli","cli","old.python.version") % sys.version)
def guiMain(args=None):
@@ -195,7 +195,7 @@ def guiMain(args=None):
# load adjust settings into options
loadadjustargs(self, self.settings)
check_python_version()
check_python_version(self.fish)
# run main window
mainWindow.mainloop()

View File

@@ -29,6 +29,8 @@ from Utils import output_path, parse_player_names
__version__ = '0.4.0.11u'
from source.classes.BabelFish import BabelFish
class EnemizerError(RuntimeError):
pass
@@ -38,7 +40,7 @@ def check_python_version():
import sys
version = sys.version_info
if version.major < 3 or version.minor < 7:
logging.warning('Door Rando may have issues with python versions earlier than 3.7. Detected version: %s', sys.version)
logging.warning(BabelFish().translate("cli","cli","old.python.version"), sys.version)
def main(args, seed=None, fish=None):

View File

@@ -52,7 +52,8 @@
"enemizer.nothing.applied": "No Enemizer options will be applied until this is resolved.",
"building.collection.spheres": "Building up collection spheres",
"building.calculating.spheres": "Calculated sphere %i, containing %i of %i progress items.",
"building.final.spheres": "Calculated final sphere %i, containing %i of %i progress items."
"building.final.spheres": "Calculated final sphere %i, containing %i of %i progress items.",
"old.python.version": "Door Rando may have issues with python versions earlier than 3.7. Detected version: %s"
},
"help": {
"lang": [ "App Language, if available, defaults to English" ],