diff options
author | Gary Kotton <gkotton@vmware.com> | 2014-03-02 00:04:24 -0800 |
---|---|---|
committer | Gary Kotton <gkotton@vmware.com> | 2014-06-02 22:18:05 -0700 |
commit | b4ef81d6a018a3e6781bbfd5c9a2c73727645cc5 (patch) | |
tree | 461067a2f8c245eee7273cabda2bde0b529f8423 /HACKING.rst | |
parent | 5d7ac6a92853992eb4f6a68b70196bdd540a4c60 (diff) | |
download | nova-b4ef81d6a018a3e6781bbfd5c9a2c73727645cc5.tar.gz |
Add missing translation support
Update a number of files to add missing translation support.
The patch adds a new hacking check - N321. 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.
Closes-bug: #1290261
Change-Id: Ib2ca0bfaaf432e15448c96619682c2cfd073fbbc
Diffstat (limited to 'HACKING.rst')
-rw-r--r-- | HACKING.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/HACKING.rst b/HACKING.rst index cbdee68822..1fa7dab6de 100644 --- a/HACKING.rst +++ b/HACKING.rst @@ -33,6 +33,7 @@ Nova Specific Commandments - [N319] Validate that debug level logs are not translated. - [N320] Setting CONF.* attributes directly in tests is forbidden. Use self.flags(option=value) instead. +- [N321] Validate that LOG messages, except debug ones, have translations Creating Unit Tests ------------------- |