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

lupdate tool ignores tr() macro when inside "[]" brackets ?

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.2.0
    • 4.7.4
    • Tools: Linguist
    • None
    • Microsoft Visual C++ 2008 Express
    • 1c7d9a533509d510047c1ff4045e88262139c6aa

    Description

      The bug occured in this implementation :

      LanguageDialog::LanguageDialog(MainWindow *parent) : QDialog(parent,Qt::WindowTitleHint|Qt::WindowSystemMenuHint),
      (...)
      {
      (...)
      map<QString,QString> d;
      (...)
      d[possiblyComplete(tr("English"), "English")] = "English"; // BUG here
      (...)
      }
      

      I found this workaround for the last line :

      QString &englishTr = tr("English");
      d[possiblyComplete(englishTr, "English")] = "English";
      

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            jerome.bouat Jérôme Bouat
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes