Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-129392

Linguist doesn't display id for id-based translations

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.8.2, 6.9.0 FF
    • 6.8.0
    • Tools: Linguist
    • None
    • All
    • a5ccc4bce (dev), 62ab2fbf1 (6.8)

    Description

      Consider the following source file with id-based translations.

      int myFunction()
      {
          //% "%n fooish bar(s) found.\n"
          //% "Do you want to continue?"
          QString text = qtTrId("qtn_foo_bar", n);
      }
      

      If we create a .ts file from it, we can see the translation ID only in the source window.

      $ lupdate foo.cpp -ts foo_de.ts 
      

      Now, if the user disables locations (for example, to work around QTBUG-127139), there's no way to determine the ID for a translation anymore:

      $ lupdate foo.cpp -ts foo_de.ts -locations none
      

      Since id-based TS files don't contain context information, Linguist makes the translation task unnecessary hard by omitting the display of the ID.

      Original forum post: https://forum.qt.io/topic/158298/linguist-not-showing-id-in-id-based-mode/5

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            masoud.jami Masoud Jami
            jbornema Joerg Bornemann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes