blocktrans in django templates should use 'trimmed' option
Bug #1655249 reported by
qiaomin032
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
trove-dashboard |
Fix Released
|
Undecided
|
qiaomin032 |
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 ""
"Allow the user to connect from this host\n"
" only. If not provided this user will be allowed to connect from "
"anywhere.\n"
" "
msgstr ""
"只允许这一用户从这一主机进行
"如果不提供这一信息,
" "
There has redundant whitespace
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/418230
Review: https:/