Skip to content

Commit

Permalink
Merge pull request #544 from xuezhixin/master
Browse files Browse the repository at this point in the history
os.environ does not have LANGUAGE in Centos8.
  • Loading branch information
mattrose authored Dec 2, 2021
2 parents a21575b + 35e4ee7 commit 00ea7e4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion terminatorlib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,12 @@ def manual_lookup():
if language in available_languages:
target = language
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

def path_lookup(command):
Expand Down

0 comments on commit 00ea7e4

Please sign in to comment.