Houman
Houman

Reputation: 66390

How to escape a single quote within trans when the line is already wrapped with single quotes?

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

The line is already wrapped with single quotes and double quote are also utilised in the line. So how can I escape friend's here?

Upvotes: 3

Views: 2149

Answers (2)

Akshar Raaj
Akshar Raaj

Reputation: 15231

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

Upvotes: 5

Houman
Houman

Reputation: 66390

I actually found it. Using blocktrans allows you to have anything in there, mixed and matched. :)

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

Upvotes: 7

Related Questions