oslo.i18n/oslo_i18n
Pete Zaitcev a5cc517100 The locale.getdefaultlocale is deprecated
This patch is prompted by the following deprecation warning:

DeprecationWarning: Use setlocale(), getencoding() and getlocale() instead

But getdefaultlocale() is scheduled to be removed in Python
3.13, so we need to act anyway.

We use LC_CTYPE as the most compatible setting. Probablly what
we really want for translations is LANG, but that is not a
valid argument for getlocale(). Fortunately, LC_CTYPE is set
when the environment variable LANG is set, so this works for us.

Change-Id: I07bdbaf95108aa4fdb4c645c12b196dcb820059b
(cherry picked from commit 77a994a993)
2023-10-04 17:43:09 +00:00
..
locale Imported Translations from Zanata 2023-05-06 03:45:03 +00:00
tests The locale.getdefaultlocale is deprecated 2023-10-04 17:43:09 +00:00
__init__.py Move out of the oslo namespace package 2014-12-18 16:35:03 -05:00
_factory.py Remove six.PY3 2020-09-23 09:37:53 +00:00
_gettextutils.py Remove all usage of six library 2020-11-26 14:41:12 +08:00
_i18n.py Update translation setup 2016-01-31 00:20:42 +09:00
_lazy.py Move out of the oslo namespace package 2014-12-18 16:35:03 -05:00
_locale.py Move out of the oslo namespace package 2014-12-18 16:35:03 -05:00
_message.py The locale.getdefaultlocale is deprecated 2023-10-04 17:43:09 +00:00
_translate.py Remove all usage of six library 2020-11-26 14:41:12 +08:00
fixture.py Remove all usage of six library 2020-11-26 14:41:12 +08:00
log.py Move out of the oslo namespace package 2014-12-18 16:35:03 -05:00