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

Support locale-specific resource lookup in QML

    XMLWordPrintable

Details

    Description

      In QML there is a need to enable locale-specific resource lookup. E.g. an icon with a house (depicting home) would work well in western locales, but for asian locales you might want to replace that icon with the appropriate chinese character for "Home". Similarly, a Button.qml in Hebrew might use a different layout of the label where the text is right-aligned and the icon is placed to the right.

      Such resources could be provided per application / module by using a directory structure similar to W3C widgets "Content Localization";

      APP_DIRECTORY/locales/
         en_gb
            icon_home.png
         ch
            icon_home.png
      

      where the application replaces default resources using resources for the current locale.

      Attachments

        Issue Links

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

          Activity

            People

              martjone Martin Jones (closed Nokia identity) (Inactive)
              hhartz Henrik Hartz (closed Nokia identity) (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes