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. QML ContextMenu only appears in english language
QtWS25 Last Chance

QML ContextMenu only appears in english language

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 347 Views
  • 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.
  • R Offline
    R Offline
    rgerlach81
    wrote on last edited by
    #1

    Hello everybody,

    I'am developing a project on one machine. For testing I copy the executables to another machine with the necessary libraries. My project runs on the second machine, but the standard context menu of QML Types like TextField comes in english language. On the first machine there it was all in german language.

    I'd like to have the context menu in german language. What am I doing wrong?

    I tried with setting environment variables, setting QLocale::setDefault(QLocale::German); in main.cpp and copied all *.qm's to the same directory like executables.

    Thank you for your help.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rgerlach81
      wrote on last edited by
      #2

      Solution is to modify db.conf: https://doc.qt.io/qt-5/qt-conf.html and change the Path for translation-directory.

      Pablo J. RoginaP 1 Reply Last reply
      2
      • R rgerlach81

        Solution is to modify db.conf: https://doc.qt.io/qt-5/qt-conf.html and change the Path for translation-directory.

        Pablo J. RoginaP Offline
        Pablo J. RoginaP Offline
        Pablo J. Rogina
        wrote on last edited by
        #3

        @rgerlach81 Thank you for sharing. If your issue is solved, please don't forget to mark it as such.

        Upvote the answer(s) that helped you solve the issue
        Use "Topic Tools" button to mark your post as Solved
        Add screenshots via postimage.org
        Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

        1 Reply Last reply
        1

        • Login

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