3
{% trans 'Enter your friend's name and email below, and click "send invite" to invite your friend.' %}

该行已经用单引号包裹,并且在该行中也使用了双引号。那我怎么能逃到friend's这里呢?

4

2 回答 2

7

我真的找到了。使用 blocktrans 可以让你有任何东西,混合和匹配。:)

{% blocktrans %}Enter your friend's name and email below, and click "send invite" to invite your friend.{% endblocktrans %}
于 2012-09-30T17:39:56.203 回答
5
{% trans 'Enter your friend's name and email below, and click "send invite" to invite your friend.' %}
于 2013-04-02T17:29:21.460 回答