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

Translation doesn't apply for Mac OS X system menu

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 5.1.0 Beta 1, 5.9, 5.12
    • None
    • OS X 10.8.2
    • macOS

      It's a regression. In Qt-4.8.4 no this problem.
      To reproduce this choose non English system language

      #include <QApplication>
      #include <QDialog>
      #include <QTranslator>
      #include <QLocale>
      #include <QMessageBox>
      #include <QLibraryInfo>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
      
          QTranslator qtTranslator;
          qtTranslator.load("qt_" + QLocale::system().name(), QLibraryInfo::location(QLibraryInfo::TranslationsPath));
          a.installTranslator(&qtTranslator);
          QWidget w;
          w.setWindowFlags(Qt::Window | Qt::Dialog);
          w.show();
          
          QMessageBox::information(0, "test", QLocale::system().name(), QMessageBox::Yes | QMessageBox::No);
      
          return a.exec();
      }
      

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

            srutledg Shawn Rutledge
            taurus Ivan Romanov
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes