Uploaded image for project: 'Qt Installer Framework'
  1. Qt Installer Framework
  2. QTIFW-2208

Add a constant that contains the current interface language

    XMLWordPrintable

Details

    • All
    • Qt Installer Sprint 41

    Description

      The cross-platform ability to determine the current installation language from the script can be very useful for multilingual applications. For example, you can set language-dependent components (translations, manuals, etc.) for installation by default during the installation phase. 

      Below is an example of how to use it in a setup script.

      // code placeholder
      Component.prototype.isDefault = function() {
        return installer.value("UILanguage").substring(0, 2) === "de";
      }
      

      Attached patch with the implementation of the functionality in the source code. ui_language.patch

      Attachments

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

        Activity

          People

            kamartti Katja Marttila
            e-kolosov Evgeny Kolosov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes