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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -