Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    QFileDialog being translated

    General and Desktop
    3
    3
    2149
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      steno last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • A
        alexisdm last edited by

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

        1 Reply Last reply Reply Quote 0
        • D
          dexter last edited by

          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?

          1 Reply Last reply Reply Quote 0
          • First post
            Last post