Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm new for playframework. and I read this tutorial. http://www.playframework.org/documentation/1.1/i18n#messages

but I didn't understand how do I write multi line text to messages for i18n.

like image 913
DyK Avatar asked Oct 07 '11 08:10

DyK


People also ask

How do I display text on multiple lines?

Click the Display tab. To enable multiple lines of text to be typed in the text box, select the Multi-line check box, and then optionally do one of the following: To prevent users from being able to insert paragraph breaks in the text box by pressing ENTER, clear the Paragraph breaks check box.

What is multiple lines of text?

The Multiline Text Field can be used to store larger amounts of text. The Multiline Text Field offers a lot of formatting options, such as: Adding bulleted and numbered lists. Use bold, italics and underline styling.

How can we create a textbox that allows to enter multiple of text?

To create a multi-line text input, use the HTML <textarea> tag. You can set the size of a text area using the cols and rows attributes. It is used within a form, to allow users to input text over multiple rows.


1 Answers

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.

like image 98
aioobe Avatar answered Oct 12 '22 01:10

aioobe