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. Language translation with hot keys...
Forum Updated to NodeBB v4.3 + New Features

Language translation with hot keys...

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 266 Views 2 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.
  • SPlattenS Offline
    SPlattenS Offline
    SPlatten
    wrote on last edited by
    #1

    The application I am working on has to work in both English and French, today I had to change hot keys on some of the buttons, now the translations no longer work.

    Before the working text was DataSets::tr("&Add New Dataset...") this is obviously the English version and the French translation worked, however now it is DataSets::tr("Add &New Dataset...") and the translation no longer works, when in French this entry still appears in English.

    I would imagine this is a common problem, what is the fix?

    Kind Regards,
    Sy

    Pablo J. RoginaP 1 Reply Last reply
    0
    • SPlattenS SPlatten

      The application I am working on has to work in both English and French, today I had to change hot keys on some of the buttons, now the translations no longer work.

      Before the working text was DataSets::tr("&Add New Dataset...") this is obviously the English version and the French translation worked, however now it is DataSets::tr("Add &New Dataset...") and the translation no longer works, when in French this entry still appears in English.

      I would imagine this is a common problem, what is the fix?

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

      @SPlatten said in Language translation with hot keys...:

      the translation no longer works, when in French this entry still appears in English

      Yes, because you changed the lookup "key" in the "translation map".
      Please keep in mind that the tr() method uses the string argument to look for and return a translated string in the current active translator.
      You need to do the lupdate/translate/lrelease cycle again.

      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

      SPlattenS 1 Reply Last reply
      1
      • Pablo J. RoginaP Pablo J. Rogina

        @SPlatten said in Language translation with hot keys...:

        the translation no longer works, when in French this entry still appears in English

        Yes, because you changed the lookup "key" in the "translation map".
        Please keep in mind that the tr() method uses the string argument to look for and return a translated string in the current active translator.
        You need to do the lupdate/translate/lrelease cycle again.

        SPlattenS Offline
        SPlattenS Offline
        SPlatten
        wrote on last edited by
        #3

        @Pablo-J-Rogina , of course, thank you.

        Kind Regards,
        Sy

        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