This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
in "Settings > Translate messages" when i'm translating texts there is only text-input, so i can't add line-brakes into my translations https://www.dropbox.com/s/z2geqmodggra3n7/Screenshot%202017-06-12%2022.03.14.png?dl=0
You should be able to use
or other line break symbol if you need.
In layout/page file:
{# This will break only on <br> #}
{{ 'line_break_1'|_ }}
{# This will handle both: <br> and \br #}
{{ 'line_break_2'|_|replace({'\\br':'<br>'})|raw }}
In translations table I have:
line_break_1 ...... This is <br> line break
line_break_2 ...... This is <br> first break \br and second one
Is this what you are looking for?
not exactly, i want to have textarea (not text input) in "Settings > Translate messages".
so my client / translator can just press-enter for new line... not typing <br>
or so... hi dont know what br is
Last updated
And what about translations in Static Pages plugin?
You can create your own Custom fields that are translatable right inside of Pages.
There you can add textarea, richeditor, text, ...
In layout you can add Custom field like this:
{variable type="textarea" name="someName" label="Write your content" tab="Extra info"}{/variable}
I am using it for my editors to translate most of website content.
1-6 of 6