Added Lang option
This commit is contained in:
parent
5f9544b3b3
commit
35e4ee7286
|
@ -106,9 +106,9 @@ def manual_lookup():
|
||||||
target = language
|
target = language
|
||||||
break
|
break
|
||||||
elif 'LANG' in os.environ:
|
elif 'LANG' in os.environ:
|
||||||
languages = os.environ['LANG'].split('.')
|
language = os.environ['LANG'].split('.')[0]
|
||||||
for language in languages:
|
for i in range(len(available_languages)):
|
||||||
if language in available_languages:
|
if language == available_languages[i]:
|
||||||
target = language
|
target = language
|
||||||
break
|
break
|
||||||
return base_url % target
|
return base_url % target
|
||||||
|
|
Loading…
Reference in New Issue