diff options
author | Mike Durnosvistov <mdurnosvistov@mirantis.com> | 2014-09-18 13:08:37 +0300 |
---|---|---|
committer | Mike Durnosvistov <mdurnosvistov@mirantis.com> | 2014-11-20 10:19:17 +0200 |
commit | 8431670ef8d4dc59b0aa7a7263cc871e48150b87 (patch) | |
tree | 71d63e1a7909ac16f6a87db0c625289286a21ea3 /HACKING.rst | |
parent | b32ccb7b415137dfb450ee9d0cfd5992e2941370 (diff) | |
download | nova-8431670ef8d4dc59b0aa7a7263cc871e48150b87.tar.gz |
Replacement `_` on `_LI` in all LOG.info - part 1
oslo.i18n uses different marker functions to separate the
translatable messages into different catalogs, which the translation
teams can prioritize translating. For details, please refer to:
http://docs.openstack.org/developer/oslo.i18n/guidelines.html#guidelines-for-use-in-openstack
There were not marker fuctions some places in directory network.
This commit makes changes:
* Add missing marker functions
* Use ',' instead of '%' while adding variables to log messages
Added a hacking rule for the log info about checking
translation for it.
Change-Id: I96766d723b01082339876ed94bbaa77783322b8c
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 0fb08e6670..e03f416580 100644 --- a/HACKING.rst +++ b/HACKING.rst @@ -40,6 +40,7 @@ Nova Specific Commandments - [N325] str() and unicode() cannot be used on an exception. Remove use or use six.text_type() - [N326] Translated messages cannot be concatenated. String should be included in translated message. - [N327] assert_called_once() is not a valid method +- [N328] Validate that LOG.info messages use _LI. Creating Unit Tests ------------------- |