Mnemonics in translated text
Unsolved
QML and Qt Quick
-
Hi,
I reproduced the example at https://www.qt.io/blog/qt-quick-multilingual-app-creation with qsTr. I was able to change the user language in the running application without a restart and to see the right translations without additional c++ code. If I use mnemonics like "&Button" then this text is displayed correctly after the program start. If I change the user language then the translations remain correct. But, all underlining is gone, even when I switch back to the first user language. I have found a workaround to use "<u>B</u>tton" and to translate this string with "<u>...</u>...". Is there a qml function to keep the "&.." based mnemonics when I want to change the user language?Kind regards,
Andreas