频闭获取语言环境变量
This commit is contained in:
parent
e6d97dcb07
commit
8982ee6402
|
@ -149,12 +149,12 @@ class UpdateManagerDbusController(dbus.service.Object):
|
|||
def GetBackendStatus(self,user_lang):
|
||||
try:
|
||||
# if user_lang not in os.environ["LANG"]:
|
||||
#如果系统不是中文也不是英文 就默认中文
|
||||
# 如果系统不是中文也不是英文 就默认中文
|
||||
# if user_lang != "en" and user_lang != "zh_CN:en":
|
||||
# logging.error("%s",user_lang)
|
||||
# user_lang = "zh_CN:en"
|
||||
|
||||
# logging.warning("The system language is switched to %s",user_lang)
|
||||
# logging.warning("The system language is switched %s to %s",os.environ["LANGUAGE"],user_lang)
|
||||
# os.environ["LANGUAGE"] = user_lang
|
||||
|
||||
#处于更新和升级中的话 不进行更新
|
||||
|
|
|
@ -70,7 +70,8 @@ if __name__ == "__main__":
|
|||
else:
|
||||
logging.basicConfig(format=FORMAT,level=logging.DEBUG,filename = logfile(),filemode = 'a')
|
||||
|
||||
logging.info('kylin-system-updater(lang:%s) starting ...',os.environ["LANGUAGE"])
|
||||
# logging.info('kylin-system-updater(lang:%s) starting ...',os.environ["LANGUAGE"])
|
||||
logging.info('kylin-system-updater starting ...')
|
||||
|
||||
app = UpdateManager(options)
|
||||
|
||||
|
|
Loading…
Reference in New Issue