max4ever
max4ever

Reputation: 12142

joomla with multiple line translation

i am developing a joomla 1.5 module and don't know how to make a multiple row translation file

in my file en-gb.com_abc.ini

i have:

TITLE=Title
AUTH LINK=Authorization Link
CONTRACT=this is a very long translation
and i need it on more than one row
is it possible?

when i use echo JText::_('CONTRACT'); joomla only outputs

this is a very long translation

but i would like it to ouput

this is a very long translation
and i need it on more than one row
is it possible?

how to do it ?

Upvotes: 0

Views: 301

Answers (2)

max4ever
max4ever

Reputation: 12142

in joomla 1.5 "" doesn't work, the only solution i found was writing a script which replaces all "\r\n" with

"\\n"

Upvotes: 1

youseeus
youseeus

Reputation: 357

put "" around the text or put '\n' at the end of each line.

Upvotes: 1

Related Questions