Is there a newline character?
To be more precise: I want to use a localized string in a confirmation dialog and it's to long for a single line. Is it possible to split this into 2 lines without making a custom confirmation dialog?
No that didn't work either.
For a normal dc.drawText it does work with \n, but only if you put in a string literal, not when you have an attribute or variable, it seems. So I think the actual problem is not with the confirmation dialog, I think.
It works fine for me when working on a string...
i.e.: dateStr = Lang.format("$1$ \n$2$", [info.month, info.day]);
dc.drawText(x, y, font, "connect\niq", just);
var text = "connect\niq";
dc.drawText(x, y, font, "connect\niq", just);
var c = "connect";
var d = "iq";
dc.drawText(x, y, font, Lang.format("$1$\n$2$", [c, d]), just);