Files
dash-stack/dash_stack_dashboard/_i18n.py
Paarhati Ozkasgarli cc0308df9c Provider and Provider Management
Change-Id: I8c72bbc02ad975ee02fc282ddc894f49b5cfb254
2016-12-04 10:20:09 +00:00

32 lines
854 B
Python

import oslo_i18n
oslo_i18n.enable_lazy()
DOMAIN = "dash_stack_dashboard"
_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
ya
# The plural translation function using the name "_P"
# requires oslo.i18n >=2.1.0
_P = _translators.plural_form
# Translators for log levels.
#
# The abbreviated names are meant to reflect the usual use of a short
# name like '_'. The "L" is for "log" and the other letter comes from
# the level.
_LI = _translators.log_info
_LW = _translators.log_warning
_LE = _translators.log_error
_LC = _translators.log_critical
def get_available_languages():
return oslo_i18n.get_available_languages(DOMAIN)