Use locale.getlocale() instead of deprecated locale.getdefaultlocale()

This commit is contained in:
Miguel Jacq 2025-03-06 16:23:34 +11:00
parent 303c83604c
commit f0b9001cb0
No known key found for this signature in database
GPG key ID: 59B3F0C24135C6A9

View file

@ -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: