Debian Codegraph @

adjutantclient/_i18n.py

raw
1 # Licensed under the Apache License, Version 2.0 (the "License"); you may
2 # not use this file except in compliance with the License. You may obtain
3 # a copy of the License at
4 #
5 # http://www.apache.org/licenses/LICENSE-2.0
6 #
7 # Unless required by applicable law or agreed to in writing, software
8 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 # License for the specific language governing permissions and limitations
11 # under the License.
12
13 """oslo.i18n integration module.
14
15 See http://docs.openstack.org/developer/oslo.i18n/usage.html
16
17 """
18
19 import oslo_i18n
20
21 # NOTE(dhellmann): This reference to o-s-l-o will be replaced by the
22 # application name when this module is synced into the separate
23 # repository. It is OK to have more than one translation function
24 # using the same domain, since there will still only be one message
25 # catalog.
26 _translators = oslo_i18n.TranslatorFactory(domain='adjutantclient')
27
28 # The primary translation function using the well-known name "_"
29 _ = _translators.primary
30
31
32 def get_available_languages():
33 return oslo_i18n.get_available_languages('adjutantclient')
34
35
36 def enable_lazy():
37 return oslo_i18n.enable_lazy()