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

qt5_add_big_resources does not support language-dependent resources

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 5.14.2
    • Build System
    • None
    • Linux/X11

    Description

      According to the documentation (https://doc.qt.io/qt-5/resources.html), the Qt resource system supports resources need to change based on the user's locale. This is done by adding a lang attribute to the qresource tag, specifying a suitable locale string.

      While this works fine if I add the *.qrc file as the to the SOURCES of my cmake project, the locale-speficif behaviour fails when I use the CMake macro qt5_add_big_resources. On compilation, I receive a warning ("Possible duplicate alias detected"), and the first-mentioned resource is used indepently of the locate.

      I would suggest to either implement locale-speficic behaviour in qt5_add_big_resources, or to add a big warning in the documentation that qt5_add_big_resources does not behaves as expected.

       

      Attachments

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

        Activity

          People

            kkohne Kai Köhne
            skebekus Stefan Kebekus
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes