I'm new for playframework. and I read this tutorial. http://www.playframework.org/documentation/1.1/i18n#messages
but I didn't understand how do I write multi line text to messages for i18n.
That looks like a property file. Try using a backslash ( \\
) and continue on the next line.
hello=line 1\
line2
back=Back
or use \\n
as a new-line character.
From the documentation:
If a logical line is spread across several natural lines, the backslash escaping the line terminator sequence, the line terminator sequence, and any white space at the start of the following line have no affect on the key or element values.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.