Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946

QFileDialog being translated



  • I'm running Mac os x 10.8 with the native language of english.

    I preform the following.

    @
    QTranslator qtTranslator;
    qtTranslator.load("qt_es",QLibraryInfo::location(QLibraryInfo::TranslationsPath));
    a.installTranslator(&qtTranslator);

    QString fileName = QFileDialog::getSaveFileName(this, "Save As",docsPath,"*.txt");
    

    @

    I thought you couldn't translate native dialogs; however, the following code has spanish for the save button. Nothing else is in spanish. Is this a bug, or can we translate native dialogs?



  • The text of that button is only translated because it is set by Qt to tr("&Save") with NSSavePanel::setPrompt.



  • Noticed this feature if you are going build from *.pro then okay, but if you are going build using CMake will be partially translated dialogue. Can this be fixed?


Log in to reply