Merge pull request #544 from xuezhixin/master
os.environ does not have LANGUAGE in Centos8.
This commit is contained in:
commit
00ea7e458f
|
@ -105,7 +105,12 @@ def manual_lookup():
|
||||||
if language in available_languages:
|
if language in available_languages:
|
||||||
target = language
|
target = language
|
||||||
break
|
break
|
||||||
|
elif 'LANG' in os.environ:
|
||||||
|
language = os.environ['LANG'].split('.')[0]
|
||||||
|
for i in range(len(available_languages)):
|
||||||
|
if language == available_languages[i]:
|
||||||
|
target = language
|
||||||
|
break
|
||||||
return base_url % target
|
return base_url % target
|
||||||
|
|
||||||
def path_lookup(command):
|
def path_lookup(command):
|
||||||
|
|
Loading…
Reference in New Issue