Adoption of base framework code for azure plugin
[multicloud/azure.git] / azure / azure / event_listener / i18n.py
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3
4 # Copyright (c) 2018 Amdocs
5 #
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at:
9 #
10 #       http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
16 import oslo_i18n
17
18 DOMAIN = "test_oslo"
19
20 _translators = oslo_i18n.TranslatorFactory(domain=DOMAIN)
21
22 # The primary translation function using the well-known name "_"
23 _ = _translators.primary
24
25 # The contextual translation function using the name "_C"
26 _C = _translators.contextual_form
27
28 # The plural translation function using the name "_P"
29 _P = _translators.plural_form
30
31 # Translators for log levels.
32 #
33 # The abbreviated names are meant to reflect the usual use of a short
34 # name like '_'. The "L" is for "log" and the other letter comes from
35 # the level.
36 _LI = _translators.log_info
37 _LW = _translators.log_warning
38 _LE = _translators.log_error
39 _LC = _translators.log_critical