开发者

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

开发者 https://www.devze.com 2023-04-11 15:16 出处:网络
I\'m new for playframework. and I read this tutorial. http://www.playframe开发者_开发百科work.org/documentation/1.1/i18n#messages

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

精彩评论

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