Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QFileDialog being translated

QFileDialog being translated

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 2.4k Views
  • 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 Offline
    S Offline
    steno
    wrote on last edited by
    #1

    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
    0
    • A Offline
      A Offline
      alexisdm
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dexter
        wrote on last edited by
        #3

        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
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved