Skip to content

Commit

Permalink
Added Lang option
Browse files Browse the repository at this point in the history
  • Loading branch information
xuezhixin committed Dec 1, 2021
1 parent 5f9544b commit 35e4ee7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions terminatorlib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ def manual_lookup():
target = language
break
elif 'LANG' in os.environ:
languages = os.environ['LANG'].split('.')
for language in languages:
if language in available_languages:
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
Expand Down

0 comments on commit 35e4ee7

Please sign in to comment.