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. How to translate application menu on Mac OS
Qt 6.11 is out! See what's new in the release blog

How to translate application menu on Mac OS

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 2.0k 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
    Arus1
    wrote on last edited by
    #1

    In Qt desktop application the application menu is not translated and only "Services" submenu items are translated after changing Mac OS language. I followed the steps described "here":http://qt-project.org/doc/qt-5/macosx-issues.html to create locversion.plist but could not achieve the result.

    Is it possible to translate the whole application menu like submenu items or is there a known issue related to menu translation on Mac OS?
    Is it necessary to add translated strings in .qm file within corresponding context (MAC_APPLICATION_MENU) or it is possible to translate the menu automatically?

    Thanks in advance.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you check that "thread":http://qt-project.org/forums/viewthread/21134 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Arus1
        wrote on last edited by
        #3

        Yes, I tried this solution and it works, but I'm looking for a better solution to get the translation automatically, like translations of submenus of application menu which gets translated right after changing Mac OS language.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Are you reacting to the QEvent::LanguageChange event ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Arus1
            wrote on last edited by
            #5

            QEvent::LanguageChange event occurs when the application translation is changed.
            The event QEvent::LocaleChange should occur when the system locale is changed but it does not work on Mac OS.

            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