Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Translating application menu on Mac
Forum Updated to NodeBB v4.3 + New Features

Translating application menu on Mac

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.6k 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.
  • P Offline
    P Offline
    Priyanka
    wrote on last edited by
    #1

    Hello,

    I'm building a desktop application using Qt4.6.2 for both Mac and Windows. We would like to support dynamic translations i.e update the application when the user selects a language from a Preferences dialog.
    On the Mac, I'm unable to translate the application menu when I do this. The application menu is translated only when I change the system language (using System Preferences -> Language and Text -> Language) and then restart the application.
    I found a bug filed for this: "Qt Bug":http://bugreports.qt.nokia.com/browse/QTBUG-5875
    But there's no indication of when this might get fixed.
    I'm wondering if anyone has run into this problem and can point me to a solution.

    Thanks,
    Priyanka

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Franzk
      wrote on last edited by
      #2

      Well, the obvious workaround would be to manually update the texts for each action in the menu. If that fails, you might try to setup the menu from scratch again. But as I'm not really familiar with mac development, those two might not even work in this case?

      After reading the issue a bit better, I started wondering if Qt does at all any effort to get the correct locale in native widgets.

      "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Priyanka
        wrote on last edited by
        #3

        Thanks Franzk.
        Since I couldn't find a way to access the application menu, manually translating or recreating the menu isn't possible.

        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