Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Mnemonics in translated text
Forum Updated to NodeBB v4.3 + New Features

Mnemonics in translated text

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 95 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Andreas999
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved