diff --git a/Gui.py b/Gui.py index 6433c79f..55defa7a 100755 --- a/Gui.py +++ b/Gui.py @@ -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() diff --git a/Main.py b/Main.py index 5a2e4370..665196fc 100644 --- a/Main.py +++ b/Main.py @@ -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): diff --git a/resources/app/cli/lang/en.json b/resources/app/cli/lang/en.json index 0ff910a9..d2be5eb0 100644 --- a/resources/app/cli/lang/en.json +++ b/resources/app/cli/lang/en.json @@ -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" ],