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

Consolidate linguist examples

    XMLWordPrintable

Details

    • User Story
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12
    • None

    Description

      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:

      Attachments

        Issue Links

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

          Activity

            People

              docteam Qt Documentation Team
              kkohne Kai Köhne
              Kai Köhne Kai Köhne
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change