diff --git a/babel.cfg b/babel.cfg deleted file mode 100644 index 15cd6cb..0000000 --- a/babel.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[python: **.py] - diff --git a/gnocchiclient/i18n.py b/gnocchiclient/i18n.py deleted file mode 100644 index 048e8f4..0000000 --- a/gnocchiclient/i18n.py +++ /dev/null @@ -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 diff --git a/requirements.txt b/requirements.txt index 67f4e1c..f423224 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 diff --git a/setup.cfg b/setup.cfg index 7b2a79b..1533483 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 diff --git a/tox.ini b/tox.ini index 97f03e2..d9f0317 100644 --- a/tox.ini +++ b/tox.ini @@ -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