I'm new for playframework. and I read this tutorial. http://www.playframe开发者_开发百科work.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.
精彩评论