i18n: trim whitespaces in extracted messages from AngularJS templates
When extracting translation messages from AngularJS templates,
there is no need to keep whitespaces in the messages as there is
no meaning of repeated whitespaces in HTML.
This will make translation effort much simpler.
More detail is described in the bug report.
This commit trims such whitespaces. Django provides a convenient method
to do the same purpose for 'trimmed' option in Django templates.
This method is reused in this commit as well.
Reviewed: https:/ /review. openstack. org/330183 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=f87b58fcabf 84c9b73b07b5874 16cc0b6cc814b1
Committed: https:/
Submitter: Jenkins
Branch: master
commit f87b58fcabf84c9 b73b07b587416cc 0b6cc814b1
Author: Akihiro Motoki <email address hidden>
Date: Thu Jun 16 05:06:32 2016 +0900
i18n: trim whitespaces in extracted messages from AngularJS templates
When extracting translation messages from AngularJS templates,
there is no need to keep whitespaces in the messages as there is
no meaning of repeated whitespaces in HTML.
This will make translation effort much simpler.
More detail is described in the bug report.
This commit trims such whitespaces. Django provides a convenient method
to do the same purpose for 'trimmed' option in Django templates.
This method is reused in this commit as well.
Closes-Bug: #1592965 2350eecc3115db2 e4173df5167
Change-Id: I9b7ce54452f3db