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. QFileSystemModel not showing localized directory names with Windows 7
Forum Updated to NodeBB v4.3 + New Features

QFileSystemModel not showing localized directory names with Windows 7

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 3.5k Views 1 Watching
  • 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.
  • F Offline
    F Offline
    fips
    wrote on last edited by
    #1

    Hello,

    I am wondering if it is possible to tell QFileSystemModel to show localized directory names with a german or other localized Windows 7. Just putting it into a QTreeView always shows the lower level directory name. i.e. "User" vs. "Benutzer" and "Program Files" vs. "Programme".
    Instantiating a QFileDialog and showing it yieds the same problem. Only with the static functions of QFileDialog, the native file dialog with correct translations will be shown, as stated in the documentation for QFileDialog.

    I tested it with Qt 4.6.2 and Qt 4.7, but got the same result with both versions.

    If this is not possible, I think this should be considered as a missing feature.

    kind regards
    fips

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Felix
      wrote on last edited by
      #2

      I aggree to you fips, I noticed the same behaviour recently. It might be very confusing for a user of the application, if the "benutzer" folder is mentioned as "user". Is there a way to fix it?

      1 Reply Last reply
      0
      • F Offline
        F Offline
        Franzk
        wrote on last edited by
        #3

        It might be related to the locale Qt uses at that point. Maybe installing one of the predefined translations helps?

        "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply
        0
        • F Offline
          F Offline
          fips
          wrote on last edited by
          #4

          I tried setting the locale using QLocale::setDefault(), and also installing the qt_de.qm translation file. The translation file leads to correctly translated QFileDialogs without using the static functions. But both attempts do not translate the directory names.

          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