Internationalization and translation library.
a5cc517100
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
|
||
---|---|---|
doc | ||
oslo_i18n | ||
releasenotes | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.pre-commit-config.yaml | ||
.stestr.conf | ||
.zuul.yaml | ||
CONTRIBUTING.rst | ||
HACKING.rst | ||
LICENSE | ||
README.rst | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
Team and repository tags
oslo.i18n -- Oslo Internationalization Utilities
The oslo.i18n library contain utilities for working with internationalization (i18n) features, especially translation for text strings in an application or library.
- Free software: Apache license
- Documentation: https://docs.openstack.org/oslo.i18n/latest
- Source: https://opendev.org/openstack/oslo.i18n
- Bugs: https://bugs.launchpad.net/oslo.i18n
- Release notes: https://docs.openstack.org/releasenotes/oslo.i18n/