PDA

View Full Version : C++ / Qt5.11 - Translate and QString with HTML included



jimbo
15th June 2018, 10:04
Hello,



QString text = ( tr( "Select a line, circle or arc<br>" ) );
text.append( tr( "and press <i><b>\"enter/return\"</b></i>.<br>" ) );
text.append( tr( "One entity only!" ) );
msgBox.setText( text );Given a QString with embedded HTML, will the tanslate function work or do I have to seperate the text & HTML code ?

Regards

Ginsengelf
15th June 2018, 10:12
Hi, translate will work. You will need to keep the HTML tags in the translation, of course.

Ginsengelf

jimbo
15th June 2018, 10:22
Hello,


Hi, translate will work. You will need to keep the HTML tags in the translation, of course.

Thanks.

Regards