diff options
author | Mike Durnosvistov <mdurnosvistov@mirantis.com> | 2014-09-22 15:39:12 +0300 |
---|---|---|
committer | Mike Durnosvistov <mdurnosvistov@mirantis.com> | 2014-11-20 11:19:09 +0200 |
commit | b7535793afb4e40d8920a85bb44a894a6c6af1c2 (patch) | |
tree | 893c8a04f98ee3b195c2116eba45af8c98116943 /HACKING.rst | |
parent | 5ec332c197718d105fc33ba38407e34f7849477c (diff) | |
download | nova-b7535793afb4e40d8920a85bb44a894a6c6af1c2.tar.gz |
Replacement `_` on `_LE` in all LOG.exception
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 exception about checking
translation for it.
Change-Id: If80ea6f177bb65afcdffce71550bb38fedcc54eb
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 e03f416580..042d7773a8 100644 --- a/HACKING.rst +++ b/HACKING.rst @@ -41,6 +41,7 @@ Nova Specific Commandments - [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. +- [N329] Validate that LOG.exception messages use _LE. Creating Unit Tests ------------------- |