gpt4 book ai didi

java - 如何简单地在消息中编写多行文本?

转载 作者:搜寻专家 更新时间:2023-10-30 21:19:36 26 4
gpt4 key购买 nike

我是 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com