Lang in os.environ is used as an alternative
This commit is contained in:
parent
a21575b0ab
commit
5f9544b3b3
|
@ -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:
|
||||||
|
languages = os.environ['LANG'].split('.')
|
||||||
|
for language in languages:
|
||||||
|
if language in available_languages:
|
||||||
|
target = language
|
||||||
|
break
|
||||||
return base_url % target
|
return base_url % target
|
||||||
|
|
||||||
def path_lookup(command):
|
def path_lookup(command):
|
||||||
|
|
Loading…
Reference in New Issue