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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.12.6
    • 5.12.3
    • Core: Locales (i18n)
    • None
    • Android
    • 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

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

          Activity

            People

              Eddy Edward Welbourne
              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