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

QTranslator::load(QLocale(),...) not working

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.12.3
    • Fix Version/s: 5.12.6
    • Component/s: Core: Locales (L10n)
    • Labels:
      None
    • Environment:
    • Platform/s:
      Android
    • Commits:
      0118e2e9151ae3e1e1cd72f24e8c129eaa69dc4f (qt/qtbase/5.15) 1fd2124de7b17901ba75d7b74dc39b381b5537ee (qt/qtbase/5.12)

      Description

      QTranslator::load function with QLocale not working after upgrading to QT5.12.3, it works in QT5.12.0, the sample codes as following:

      QTranslator translator;

      // look up e.g. :/translations/myapp_de.qm

      if (translator.load(QLocale(), QLatin1String("myapp"), QLatin1String("_"), QLatin1String(":/translations"))) app.installTranslator(&translator);

       

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              Eddy Edward Welbourne
              Reporter:
              bugman Vico Liang
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes