Skip to content

Commit

Permalink
Changes for Python >= 3.11
Browse files Browse the repository at this point in the history
deprecation of locale.getdefaultlocale
  • Loading branch information
PCigales authored Apr 27, 2022
1 parent ce85deb commit 2b1abce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PlayOn.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@
}
LSTRINGS = EN_STRINGS
try:
if locale.getdefaultlocale()[0][:2].lower() == 'fr':
if locale.getlocale()[0][:2].lower() == 'fr':
LSTRINGS = FR_STRINGS
except:
pass
Expand Down

0 comments on commit 2b1abce

Please sign in to comment.