Remove i18n support

We don't use it.

Change-Id: I2266a2eb245d6e9dcce463e3c83d15233800e7aa
This commit is contained in:
Julien Danjou
2015-12-21 17:58:57 +01:00
parent da9a2a68c3
commit 0f49d552e4
5 changed files with 0 additions and 47 deletions

View File

@@ -1,2 +0,0 @@
[python: **.py]

View File

@@ -1,28 +0,0 @@
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import oslo_i18n as i18n
_translators = i18n.TranslatorFactory(domain='gnocchiclient')
# The primary translation function using the well-known name "_"
_ = _translators.primary
# 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

View File

@@ -3,9 +3,7 @@
# process, which may cause wedges in the gate later.
pbr<2.0,>=1.4
Babel>=1.3
cliff>=1.14.0 # Apache-2.0
oslo.i18n>=1.5.0 # Apache-2.0
oslo.serialization>=1.4.0 # Apache-2.0
oslo.utils>=2.0.0 # Apache-2.0
keystoneauth1>=1.0.0

View File

@@ -38,19 +38,5 @@ all_files = 1
[upload_sphinx]
upload-dir = doc/build/html
[compile_catalog]
directory = gnocchiclient/locale
domain = gnocchiclient
[update_catalog]
domain = gnocchiclient
output_dir = gnocchiclient/locale
input_file = gnocchiclient/locale/gnocchiclient.pot
[extract_messages]
keywords = _ gettext ngettext l_ lazy_gettext
mapping_file = babel.cfg
output_file = gnocchiclient/locale/gnocchiclient.pot
[wheel]
universal = 1

View File

@@ -36,5 +36,4 @@ commands = oslo_debug_helper {posargs}
show-source = True
ignore = E123,E125
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build