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

Unix: There is no translation for "file to open is a directory"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.3.0
    • 4.8.4, 5.2.0 Beta1
    • Core: Locales (i18n)
    • None
    • Linux (Debian 7.2), Qt 4.8.4 (from qt-everywhere-opensource-src)
    • d47f83cab0c68b05d6ca926f2e80efb3e702bc6a (dev, 16.1.2014, 5.3)

    Description

      If we try to open a directory with QFile::open() errorString() returns an untranslated error.
      QFSFileEnginePrivate::nativeOpen() (/src/corelib/io/qfsfileengine_unix.cpp in Qt4, qtbase/src/corelib/io/qfsfileengine_unix.cpp in Qt5) sets an error without translation.

      To reproduce build attached program and run it with non-english locale. First error will be translated, second one will not.

      Attachments

        For Gerrit Dashboard: QTBUG-35594
        # Subject Branch Project Status CR V

        Activity

          People

            kleint Friedemann Kleint
            amorozov Alexander Morozov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes