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><b>text</b></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
Post a Comment