Internationalization and translation library.
0901283923
This pulls in the alias mapping from Babel[0] that previously made
some two character locale names available. It simply appends each
alias that is found by gettext.find to the list of available languages.
This change in behavior was initially reported as a result of a
breaking Glance unit test. After looking a bit closer at the test
in question, it appears they mock out gettext.find to assume the
existence of that locale. Whether it would actually exist in a real
world deployment I have no idea. However, I don't think it hurts
anything to include these aliases in the list checked by
get_available_languages so this should be fine.
Note that I did no mapping of the aliases in our override of
gettext.find. There was no aliasing going on there for these two
letter locales before either, so if they were found before they
will be found now. The same is true if they were not found before,
so this maintains the previous behavior.
Change-Id: Ie57ed2ca0228634ed9a3def99bf606ce1832a195
0:
|
||
---|---|---|
doc | ||
oslo_i18n | ||
releasenotes | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.stestr.conf | ||
.zuul.yaml | ||
babel.cfg | ||
CONTRIBUTING.rst | ||
HACKING.rst | ||
LICENSE | ||
lower-constraints.txt | ||
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/