Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved QML ContextMenu only appears in english language

    QML and Qt Quick
    2
    3
    159
    Loading More Posts
    • 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
      rgerlach81 last edited by

      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 Reply Quote 0
      • R
        rgerlach81 last edited by

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

        Pablo J. Rogina 1 Reply Last reply Reply Quote 2
        • Pablo J. Rogina
          Pablo J. Rogina @rgerlach81 last edited by

          @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 Reply Quote 1
          • First post
            Last post