开发者

How can I write multi line text in messages as simple?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜