![Ihar Hrachyshka](/assets/img/avatar_default.png)
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
15 lines
633 B
YAML
15 lines
633 B
YAML
---
|
|
features:
|
|
- |
|
|
New ``N537`` hacking check is introduced that enforces no logging message
|
|
translations, in any logging level. The check is enabled by default. Also,
|
|
the ``N533`` hacking check is now removed because it is covered by
|
|
``N537``.
|
|
upgrade:
|
|
- |
|
|
Library consumers may need to adopt their code to new requirements of ``N537`` hacking check,
|
|
removing translation markers from all logging messages. If for some reason
|
|
it doesn't fit the project, consumers can disable the new hacking check
|
|
using ``ignore`` statement in ``flake8`` section of their ``tox.ini`` file,
|
|
or by other means.
|