horizon/horizon/test/tests
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 Splits OpenStack Dashboard bits from framework app code. 2012-10-11 11:47:50 -07:00
babel_extract_angular.py Revert "i18n: trim whitespaces in extracted messages" 2016-08-03 17:11:40 +00:00
base.py Fix remaining Django 1.9 test failures 2016-04-09 11:13:16 +00:00
exceptions.py Improve message propagation in exceptions.handle 2015-09-02 18:03:57 -06:00
forms.py Horizon selects are now themable: Launch Instance 2016-06-08 18:25:23 +00:00
messages.py Removed the '_safe_message' variable from the API exceptions 2015-05-06 15:33:10 +00:00
middleware.py Fix typo 'occured' -> 'occurred' 2016-06-28 18:37:10 +02:00
notifications.py Add message of the day option 2016-01-22 11:31:36 -08:00
selenium_tests.py Fix Selenium Tests 2016-04-08 20:44:11 +01:00
tables.py Honor comments for translators when extracting messages 2016-03-07 23:11:39 +09:00
tabs.py Fix UTF-8 handling in tables 2015-09-22 18:38:18 +10:00
templatetags.py Remove arguments "{}" in function definitions 2015-12-15 14:30:22 +00:00
test_commands.py Update startdash/startpanel for newer Django patterns 2015-11-13 03:40:26 +00:00
test_file_discovery.py [Django 1.9] Replace django.utils.unittest 2016-01-18 16:19:00 +00:00
utils.py Merge "Stop memoizing on request arguments in nova api" 2016-06-17 08:40:28 +00:00
views.py Document and improve PageTitleMixin readability 2015-02-11 16:16:20 +00:00
workflows.py Modals should inherit from the theme 2016-06-21 15:54:00 -07:00