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

Add functionality to QTranslator/QCoreApplication to load translations for each module individually

XMLWordPrintable

      Due to the modularization of Qt, we will end up with modules being developed and released at various times, and maintained by various groups. Translations should therefore be maintained by whoever is maintaining the individual modules.

      Qt therefor needs a way to easily load all these individual module translations.

      Some ways could include:
      1) Meta-TS/QM files, which instructs a QTranslator to load several other
      per-module translation files (most source compatible, and maybe the
      easiest way to still get complete translation contributions from the
      community?)
      2) A QCoreApplication property, which when set (say just a locale or
      something), loads the translations for each module loaded. (cleanest
      solution)
      3) Enable file globbing for QTranslator, f.ex.
      qtranslator.load(QLatin1String("qt_*") + sysLocale, resourceDir)

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

            buddenha Oswald Buddenhagen
            stormols Marius Storm-Olsen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes