diff --git a/src/upscaler.py b/src/upscaler.py index 9688a2b..3e0137f 100755 --- a/src/upscaler.py +++ b/src/upscaler.py @@ -4,7 +4,7 @@ Name: Video2X Upscaler Author: K4YT3X Date Created: December 10, 2018 -Last Modified: October 26, 2020 +Last Modified: December 30, 2020 Description: This file contains the Upscaler class. Each instance of the Upscaler class is an upscaler on an image or @@ -48,6 +48,8 @@ LOCALE_DIRECTORY = pathlib.Path(__file__).parent.absolute() / "locale" # getting default locale settings default_locale, encoding = locale.getdefaultlocale() +if default_locale is None: + default_locale = "en_US" language = gettext.translation( DOMAIN, LOCALE_DIRECTORY, [default_locale], fallback=True ) @@ -55,7 +57,7 @@ language.install() _ = language.gettext # version information -UPSCALER_VERSION = "4.4.1" +UPSCALER_VERSION = "4.4.2" # these names are consistent for # - driver selection in command line diff --git a/src/video2x.py b/src/video2x.py index cd1a597..74dcb1a 100755 --- a/src/video2x.py +++ b/src/video2x.py @@ -13,7 +13,7 @@ __ __ _ _ ___ __ __ Name: Video2X Controller Creator: K4YT3X Date Created: Feb 24, 2018 -Last Modified: September 13, 2020 +Last Modified: December 30, 2020 Editor: BrianPetkovsek Last Modified: June 17, 2019 @@ -76,13 +76,15 @@ LOCALE_DIRECTORY = pathlib.Path(__file__).parent.absolute() / "locale" # getting default locale settings default_locale, encoding = locale.getdefaultlocale() +if default_locale is None: + default_locale = "en_US" language = gettext.translation( DOMAIN, LOCALE_DIRECTORY, [default_locale], fallback=True ) language.install() _ = language.gettext -CLI_VERSION = "4.3.1" +CLI_VERSION = "4.3.2" LEGAL_INFO = _( """Video2X CLI Version: {}