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

Generated TS file with plural forms contain incorrect <numerusform> entry count

    XMLWordPrintable

Details

    • 9b4d45d40 (dev), 31229209a (6.8), 78c505359 (6.7)

    Description

      TS files with translatable strings containing plurals should include the correct number of <numerusform> entries for the target language plural forms.

      The qt_add_translations() command is generating .ts files containing only one <numerusform> entry.

      Same behavior also observed when generating a plurals-only .ts file via the qt_add_lupdate(PLURAL_TS_FILE file.ts) and qt_add_translations(PLURAL_TS_FILE file.ts) commands.

      Possible related bug QTBUG-127789, since setting the language attribute in the generated .ts file and rebuilding the project with lupdate_translations leads to the file being updated to include the correct number of <numerusform> entries for the target language.

      To reproduce issue, build attached project with update_translations. 

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            lysandra.sola Lysandra Sola
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes