mirror of
https://github.com/onionshare/onionshare.git
synced 2025-04-29 06:09:31 -04:00
Use locale.getlocale() instead of deprecated locale.getdefaultlocale()
This commit is contained in:
parent
303c83604c
commit
f0b9001cb0
1 changed files with 1 additions and 1 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
Reference in a new issue