mirror of
https://github.com/onionshare/onionshare.git
synced 2025-11-29 18:47:03 -05:00
Use locale.getlocale() instead of deprecated locale.getdefaultlocale()
This commit is contained in:
parent
2e222ce09d
commit
62073ab708
2 changed files with 6 additions and 6 deletions
|
|
@ -140,7 +140,7 @@ class Settings(object):
|
|||
|
||||
# Choose the default locale based on the OS preference, and fall-back to English
|
||||
if self._settings["locale"] is None:
|
||||
language_code, encoding = locale.getdefaultlocale()
|
||||
language_code, encoding = locale.getlocale()
|
||||
|
||||
# Default to English
|
||||
if not language_code:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue