
This is in line with discussion [1] where translators asked to stop translating log messages, leaving translations for user visible messages only. This patch introduces a new N537 check, and since it is more broad than N533 while covering all cases of the latter check, N533 is removed. This patch also cleans up _i18n._L? translation hints since they are internal and won't be allowed anymore. [1] http://lists.openstack.org/pipermail/openstack-dev/2017-March/114191.html Related-Bug: #1674569 Change-Id: I2813587824eac1a996c715b0c4bd36b0c9580d73
25 lines
968 B
Python
25 lines
968 B
Python
# All Rights Reserved.
|
|
#
|
|
# 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.
|
|
#
|
|
# INTERNAL INTERFACE: PLEASE NOTE THE LEADING _ ON THIS FILE. THIS IS
|
|
# NOT A LIBRARY INTERFACE. IF YOU WISH TO USE OSLO_I18N, please refer
|
|
# to http://docs.openstack.org/developer/oslo.i18n/usage.html
|
|
|
|
import oslo_i18n
|
|
|
|
_translators = oslo_i18n.TranslatorFactory(domain='neutron_lib')
|
|
|
|
# The translation function using the well-known name "_"
|
|
_ = _translators.primary
|