horizon/horizon/utils
Kenji Ishii 5e00cc5e92 Revert "i18n: trim whitespaces in extracted messages"
This reverts commit f87b58fcab.
In https://bugs.launchpad.net/horizon/+bug/1592965,
extracted messages are stored with trimming.
After this change, strings with multi lines cannot be translated.

This change cause the difference between the real strings in html
and a key in pot, from the view point of extra spaces and break lines.
Message extraction is done by babel (with horizon specific extractor),
but translation message lookup is done by angular-gettext.
As a result, a key used in translation lookup becomes different from
a key generated by the message extraction.
Keys in both steps should be same.
So this patch reverts the corresponding commit to make translation
work, even though it may be annoying for translators again.

Regarding the comment from i18n perspective, see Akihiro's comment
in patch set 3 in https://review.openstack.org/#/c/347725

Closes-Bug: #1606837
Change-Id: I651a2f39fdc0209f702cb9cf45691c944382b897
2016-08-03 17:11:40 +00:00
..
__init__.py Unifies the project packaging into one set of modules. 2012-02-29 00:20:13 -08:00
babel_extract_angular.py Revert "i18n: trim whitespaces in extracted messages" 2016-08-03 17:11:40 +00:00
csvbase.py Merge "Port openstack dashboard overview tests to Python 3" 2015-10-06 11:26:22 +00:00
escape.py Escape angularjs templating in unsafe HTML 2016-06-15 11:03:01 -04:00
file_discovery.py Fixing docstring formatting errors and warnings 2015-08-18 17:14:22 -06:00
filters.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
functions.py Port horizon utils tests to Python 3 2015-09-28 21:35:49 +00:00
html.py Horizon Dropdown now inherits from Bootstrap Theme 2015-12-03 16:07:00 +00:00
lazy_encoder.py Translate status in network topology 2016-01-18 13:19:20 +00:00
memoized.py Stop memoizing on request arguments in nova api 2016-06-10 13:22:14 -05:00
scss_filter.py SCSS $webroot should inherit from settings.py 2015-08-15 08:05:24 -07:00
secret_key.py Add warning when falling back to insecure key generation 2016-06-27 10:46:57 -06:00
units.py Update metering unit selection to use smaller units for time 2014-11-19 20:44:43 -06:00
validators.py ICMP type & code validation while adding Security Group rules 2016-06-10 12:29:54 +02:00