Internationalization and translation library.
Go to file
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
doc Remove unnecessary unicode prefixes 2022-04-19 19:31:26 +08:00
oslo_i18n The locale.getdefaultlocale is deprecated 2023-10-04 17:43:09 +00:00
releasenotes Imported Translations from Zanata 2023-05-09 02:36:19 +00:00
.coveragerc Fix coverage configuration and execution 2015-10-08 17:18:36 -04:00
.gitignore Integrate sphinxcontrib-apidoc 2019-12-17 16:36:08 +00:00
.gitreview Update .gitreview for stable/2023.2 2023-09-07 09:36:40 +00:00
.mailmap initial export with graduate.sh 2014-04-29 11:58:57 -07:00
.pre-commit-config.yaml Upgrade the pre-commit-hooks version 2021-05-18 11:07:20 +08:00
.stestr.conf Switch to stestr 2018-07-03 16:10:13 +07:00
.zuul.yaml Update CI to use unversioned jobs template 2022-03-15 15:07:13 +00:00
CONTRIBUTING.rst Align contributing doc with oslo's policy 2020-05-04 18:23:33 +02:00
HACKING.rst Update URLs in documents according to document migration 2017-07-12 15:47:32 +08:00
LICENSE initial export with graduate.sh 2014-04-29 11:58:57 -07:00
README.rst Replace git.openstack.org URLs with opendev.org URLs 2019-04-24 19:12:27 +08:00
requirements.txt Remove all usage of six library 2020-11-26 14:41:12 +08:00
setup.cfg Revert "Moves supported python runtimes from version 3.8 to 3.10" 2023-05-04 20:19:45 +00:00
setup.py remove outdated header 2020-02-11 18:49:19 +01:00
test-requirements.txt Fix hacking min version to 3.0.1 2020-10-16 01:19:48 +00:00
tox.ini Update TOX_CONSTRAINTS_FILE for stable/2023.2 2023-09-07 09:36:41 +00:00

README.rst

Team and repository tags

image

oslo.i18n -- Oslo Internationalization Utilities

Latest Version

Downloads

The oslo.i18n library contain utilities for working with internationalization (i18n) features, especially translation for text strings in an application or library.