开发者

Multiline Messages in Message Bundles

开发者 https://www.devze.com 2023-03-23 13:46 出处:网络
I would like to make 开发者_Go百科use of the message bundles feature in grails, but always run into the problem that I need multiline messages for text (instructions or help text for example).

I would like to make 开发者_Go百科use of the message bundles feature in grails, but always run into the problem that I need multiline messages for text (instructions or help text for example).

Is there a way to create multiline messages or do I have to create single line messages with <br />s or \ns in between?

Or is it the wrong approach for longer text?


I believe you can simply end the line with a trailing slash (\) and continue on the next line in Java Properties files.

See: http://www.rgagnon.com/javadetails/java-0503.html

0

精彩评论

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