[Vtigercrm-developers] How to include a newline in the jsLanguageStrings translations?
Angelo Paglialonga
info at angelopaglialonga.com
Fri Aug 6 08:52:51 GMT 2021
Hi Alan I think I’ve seen some carriage return in vtiger labels maybe it was in Italian language.
So basically just hit ‘return' key , it should work!
Have a nice day
_______________
Angelo Paglialonga
Consulente per soluzioni CRM ad alto ROI.
Telefono: 3386077866
Skype: angelo.paglialonga
Web: https://www.angelopaglialonga.com
> Il giorno 6 ago 2021, alle ore 09:59, Alan Lord <alanslists at gmail.com> ha scritto:
>
> 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/
> _______________________________________________
> http://www.vtiger.com/
More information about the vtigercrm-developers
mailing list