Add missing translation support

Update a number of files to add missing translation support.

The patch adds a new hacking check - N320. This ensures that
all log messages, except debug ones, have translations.

A '# noqa' indicates that the validation will not be done on
the specific log message. This should be used in cases where
the translations do not need to be done, for example, the log
message is logging raw data.

Change-Id: I3e1fdd04d87b09dff50950b5e85f5cacfb29afdc
Closes-bug: #1314994
This commit is contained in:
Gary Kotton 2014-05-01 06:10:57 -07:00 committed by Christian Berendt
parent df65ebdaee
commit 4683d539e2
2 changed files with 4 additions and 1 deletions

View File

@ -8,7 +8,7 @@ Neutron Style Commandments
Neutron Specific Commandments
--------------------------
None so far
- [N320] Validate that LOG messages, except debug ones, have translations
Creating Unit Tests
-------------------

View File

@ -46,3 +46,6 @@ ignore = E125,H404
show-source = true
builtins = _
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools,.ropeproject
[hacking]
local-check-factory = neutron.hacking.checks.factory