diff options
author | James Carey <jecarey@us.ibm.com> | 2014-08-21 03:57:30 +0000 |
---|---|---|
committer | Jay S. Bryant <jsbryant@us.ibm.com> | 2014-08-27 21:47:49 -0500 |
commit | 4ef6c1d4eac7c20b70042f7c668f38c62cfbbf21 (patch) | |
tree | 1471d35078988357352e388c3cf1b4c581ffc9fb /HACKING.rst | |
parent | 298b0328d2048609a6dce0b919a546c12475a8da (diff) | |
download | nova-4ef6c1d4eac7c20b70042f7c668f38c62cfbbf21.tar.gz |
Remove concatenation with translated messages
Translated messages should not be expanded by concatenation. Instead
the additional text should be replacement text or part of the translated
message to allow the translators as much information as possible when
doing the translations.
Also, when lazy translation is enabled, the object returned does not
support concatenation and raises an exception. Thus this patch is
needed to support blueprint: i18n-enablement.
This patch includes a hacking check for concatenation with a translated
message.
Change-Id: I8b368d275faa14b4750735445321874ce1da37d5
Partially-Implements: blueprint i18n-enablement
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 3995a9ba08..34c79b1e21 100644 --- a/HACKING.rst +++ b/HACKING.rst @@ -38,6 +38,7 @@ Nova Specific Commandments - [N323] Ensure that the _() function is explicitly imported to ensure proper translations. - [N324] Ensure that jsonutils.%(fun)s must be used instead of json.%(fun)s - [N325] str() 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. Creating Unit Tests ------------------- |