blocktrans in django templates should use 'trimmed' option

Bug #1742162 reported by qiaomin032
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate Dashboard
Fix Released
Medium
Unassigned

Bug Description

Django templates support 'trimmed' option. it can remove newline characters from the beginning and the end of the content of the {% blocktrans %} tag, replace any whitespace at the beginning and end of a line and merge all lines into one using a space character to separate them.

Without 'trimmed' option, translators will get source strings with meaningless newlines and whitespace as blew:
msgid ""
"\n"
" The Email field should contain a valid email address to be associated\n"
" with the domain.\n"
" "
msgstr ""
"\n"
"电子邮件项应包括一个有效的邮件地址来\n"
"跟域名进行关联。\n"
" "
There has redundant whitespace and "\n".

Changed in designate-dashboard:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/designate-dashboard 7.0.0.0b1

This issue was fixed in the openstack/designate-dashboard 7.0.0.0b1 development milestone.

Revision history for this message
Tobias Urdin (tobias-urdin) wrote :
Changed in designate-dashboard:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.