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

Consolidate linguist examples

XMLWordPrintable

    • b743a9827 (dev), 99e98ea25 (dev), acb8ca6ab (6.10), 2390cb872 (dev), 80c798d23 (6.10)

      The examples in Qt Linguist should be revised & consolidated. In particular, they do not follow best practices:

      • All of them look up the translation files in the current working directory, which is confusing especially for shadow builds. Instead, the qrc system should be used (possible nowadays with CONFIG += lrelease embed_translations)
      • The current locale is determined via QLocale::system().name(). Instead, best practice is to use QTranslator::load(QLocale(), ...).

      Qt Linguist Examples

      There are also other examples and demos that do show translation support:

      Finally, some examples do contain QTranslator setups that do not follow best practices, either:

        For Gerrit Dashboard: QTBUG-71856
        # Subject Branch Project Status CR V

            masoud.jami Masoud Jami
            kkohne Kai Köhne
            Kai Köhne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: