How to use single quotes in i18n in Playframework2?

While working on a French application (French is full of single quotes) I needed to use i18n with single quotes and many other underlined characters.

So here is an excerpt of my messages.fr-FR file:

 some.key=C'est la vie! 

And here is the conclusion:

 Cest la vie! 

How can I use single quoted strings in my posts? Already tried those:

 some.key=C\'est la vie! --> C\est la vie! some.key="C'est la vie!" --> "Cest la vie!" 

EDIT : thanks to the KDavid link , I was able to find a solution. You need to double the single quote.

 C''est la vie! --> C'est la vie! 
+7
source share
1 answer

single quote prefix with ... single quote (so just use two single quotes):

 some.key=C''est la vie! 
+13
source

All Articles