我们从Python开源项目中,提取了以下30个代码示例,用于说明如何使用oslo_i18n.get_available_languages()。
def get_available_languages(): return oslo_i18n.get_available_languages(DOMAIN)
def get_available_languages(): return i18n.get_available_languages(DOMAIN)
def best_match_language(self): """Determines best available locale from the Accept-Language header. :returns: the best language match or None if the 'Accept-Language' header was not available in the request. """ if not self.accept_language: return None all_languages = oslo_i18n.get_available_languages('bilean') return self.accept_language.best_match(all_languages)
def get_available_languages(): return oslo_i18n.get_available_languages('adjutantclient')
def get_available_languages(): return oslo_i18n.get_available_languages('karborclient')
def get_available_languages(): """Get Available Languages""" return oslo_i18n.get_available_languages(DOMAIN)