diff --git a/install.py b/install.py index fb54d55..4e40482 100644 --- a/install.py +++ b/install.py @@ -55,6 +55,7 @@ def main(): # download base + url_prefix = os.environ.get('FISHROS_URL','http://mirror.fishros.com/install') os.system("wget {} -O /tmp/fishinstall/{} --no-check-certificate".format(base_url,base_url.replace(url_prefix,''))) from tools.base import CmdTask,FileUtils,PrintUtils,ChooseTask,ChooseWithCategoriesTask diff --git a/tools/translation/translator.py b/tools/translation/translator.py index ca01ce9..4c1416a 100644 --- a/tools/translation/translator.py +++ b/tools/translation/translator.py @@ -24,11 +24,11 @@ class Linguist: def __init__(self): # Initialize the current locale. + self.country = 'CN' self._currentLocale = self.getLocalFromIP() if self._currentLocale is None: self._currentLocale = locale.getdefaultlocale()[0] # Load the translation file. - self.country = 'CN' self.lang = self._currentLocale for lang in _suported_languages: CmdTask("wget {} -O /tmp/fishinstall/{} --no-check-certificate".format(lang_url.format(lang),lang_url.format(lang).replace(url_prefix,''))).run()