translation - How to use HTML inside of translatable strings in Qt? -


the qt tutorial translatable texts not mention whether possible use html inside of translatable string.

however, some examples found use it, seems possible.

however, if use "<b>text</b>" in .ts file, qt linguist not open it. displays error message "unexpected tag" instead.

the ts file xml. if want use html tags need escape them. example: <source>&lt;b&gt;text&lt;/b&gt;</source>

note recommended way of managing translations in qt run lupdate tool on source code , have qt generate .ts file, in case done automatically.


Comments

Popular posts from this blog

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -

python - How to create a legend for 3D bar in matplotlib? -