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), 2bd4f8b80 (6.7), 3d9c69047 (tqtc/lts-6.5)

    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

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

          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 are no open Gerrit changes