Remove the unused oslo.i18n bits

There is a discussion to make get_available_languages optional
since it pulls in Babel (which is very heavy).

Change-Id: Iaa2fc4b467c43a1d3251ebc50040b39764f4b0e4
This commit is contained in:
Dmitry Tantsur 2020-04-16 11:11:10 +02:00
parent 12d7aab08b
commit 04bc2a6f83

View file

@ -19,15 +19,3 @@ _translators = oslo_i18n.TranslatorFactory(domain=DOMAIN)
# The primary translation function using the well-known name "_"
_ = _translators.primary
# The contextual translation function using the name "_C"
# requires oslo.i18n >=2.1.0
_C = _translators.contextual_form
# The plural translation function using the name "_P"
# requires oslo.i18n >=2.1.0
_P = _translators.plural_form
def get_available_languages():
return oslo_i18n.get_available_languages(DOMAIN)