I need to create a QString
that contains html. I want to internationalize it... adding QObject::tr()
How can I combine it ? At this point, my string is like this... I don't think I can apply tr
to he entire string, or I'd end up with odd words for colors, text, size...
const QString errorContent = QObject::tr("<!DOCTYPE html>\n"
"<svg height=\"100\" width=\"80\">\n"
"<text font-size=\"20\" x=\"10\" y=\"30\" fill=\"black\">Unable</text>\n"
"<text font-size=\"20\" x=\"10\" y=\"60\" fill=\"black\">to load</text>\n"
"<text font-size=\"20\" x=\"20\" y=\"90\" fill=\"black\">SVG</text>\n"
"Sorry, your browser does not support inline SVG.\n"
"\n</svg>");