Skip to content

Commit

Permalink
deprecated as 3.11 getdefaultlocale set to getlocale
Browse files Browse the repository at this point in the history
  • Loading branch information
Furtif committed Jun 12, 2023
1 parent 98cf05e commit 12f91e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion options.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def get_last_error():

def translator(filename):
try:
lang, enc = locale.getdefaultlocale()
lang, enc = locale.getlocale()
os.environ['LANG'] = lang
except:
# defaul tranlation if err en_US
Expand Down

0 comments on commit 12f91e5

Please sign in to comment.