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

Linguist shipped with Qt6 breaks how language tag is handled

    XMLWordPrintable

Details

    • a8a091694 (dev), eda9675eb (6.8)

    Description

      A sample .ts file is uploaded. Loading it into Linguist from Qt5/6 yields different results:
      Qt5 Linguist: all good
      Qt6 Linguist: broken plural rules (see screenshot)

      The issue is language tag:

      <TS version="2.1" language="en-US">
      

      "en-US" is separated by dash. Replacing dash with underscore solves the problem.

      Nevertheless, Linguist should be able to handle both dash and undrescore. Qt6 Linguist is more or less broken. Possible related commit:
      https://codereview.qt-project.org/c/qt/qttools/+/343860

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-126139
          # Subject Branch Project Status CR V

          Activity

            People

              kkohne Kai Köhne
              luqiaochen Luqiao Chen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There is 1 open Gerrit change