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

Linguist 'does not know the plural rules for Luganda'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15, 6.7.0
    • None
    • Attachment 'qtdiag-output.txt'
    • 1d48bf34d (dev)

    Description

          Problem
          Opened a .ts file which had its target language set to Luganda ('Ganda').
          Expected to be able to translate strings including their plural options.
          Instead the following happens:
             a. It complains that it does not know the plural rules for the language (attached picture 'does-not-know-plurals-rules.png'.)
             b. It does not allow translation for plurals (attached picture, 'unpatched-behaviour.png'.)

          Cause
          Missing entry for 'Ganda' in <somepath>/qt5/qttools/src/linguist/shared/numerus.cpp
          (Also noted that <somepath>/qt5/qtbase/util/locale_database/testlocales/localemodel.cpp is missing an entry for the same language)
           
           Fix
           Apply patch to <somepath>/qt5/qttools/src/linguist/shared/numerus.cpp. Attachment 'numerus-ganda-patch.txt'.
           It adds the language into the 'English style' section.
           (Patch also supplied for <somepath>/qt5/qtbase/util/locale_database/testlocales/localemodel.cpp. Attachment 'localemodel-ganda-patch.txt'.)

      Attachments

        1. does-not-know-plurals-rules.png
          does-not-know-plurals-rules.png
          54 kB
        2. localemodel-ganda-patch.txt
          3 kB
        3. numerus-ganda-patch.txt
          0.3 kB
        4. qtdiag-output.txt
          9 kB
        5. unpatched-behaviour.png
          unpatched-behaviour.png
          200 kB
        For Gerrit Dashboard: QTBUG-124200
        # Subject Branch Project Status CR V

        Activity

          People

            kkohne Kai Köhne
            kizito Kizito Birabwa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes