[Vtigercrm-developers] How to include a newline in the jsLanguageStrings translations?
Alan Lord
alanslists at gmail.com
Fri Aug 6 07:59:41 GMT 2021
Err, not sure I know what you mean. entering tags and or "\n" in an
email tends to not get displayed as one would like. But basically this
idea is:
'JS_MY_LABEL' => "some words followed by a newline\nfollowed by some
more words.",
I tried various html tags (I also tried using htmlentities, e.g.
but that broke the javascript in application.js [1]), I also tried a
PHP_EOL, I tried escaping the \n, e.g. \\n but nothing seemed to work.
The translated string is to be displayed in a
app.helper.showConfirmationBox().
Al
[1] Uncaught SyntaxError: JSON.parse: bad character in string literal at
line 1 column 25170 of the JSON data
On 06/08/2021 03:45, Prasad wrote:
> Example?
>
> On Thu, Aug 5, 2021 at 8:12 PM Alan Lord <alanslists at gmail.com
> <mailto:alanslists at gmail.com>> wrote:
>
> Is this possible?
>
> I tried a "backslash n", I tried a br tag and I tried a p tag. None
> worked?
>
> TIA
>
> Al
>
> _______________________________________________
> http://www.vtiger.com/ <http://www.vtiger.com/>
>
>
> _______________________________________________
> http://www.vtiger.com/
>
More information about the vtigercrm-developers
mailing list