我是 playframework 的新手。 我读了这个教程。 http://www.playframework.org/documentation/1.1/i18n#messages
但我不明白如何为国际化消息写入多行文本。
最佳答案
这看起来像一个属性文件。尝试使用反斜杠 (\
) 并在下一行继续。
hello=line 1\
line2
back=Back
或者使用\n
作为换行符。
来自文档:
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.
关于java - 如何简单地在消息中编写多行文本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7684954/