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:
|
||
---|---|---|
.. | ||
__init__.py | ||
fakes.py | ||
test_factory.py | ||
test_fixture.py | ||
test_gettextutils.py | ||
test_handler.py | ||
test_lazy.py | ||
test_locale_dir_variable.py | ||
test_logging.py | ||
test_message.py | ||
test_public_api.py | ||
test_translate.py | ||
utils.py |