Hello,

I have an issue with the language used in a string returned from QFile errorString().
The error is returned in the language defined from system (Windows), but I need to display this message in my application always in english.
Setting default QLocale doesn't seem to have any effect:

Qt Code:
  1. // Set language to a different language as defined in QLocale::system()
  2. QLocale::setDefault(QLocale("en_US"));
  3. QFile file("");
  4. file.open(QFile::ReadOnly);
  5. // Error string still in system language
  6. const QString errorString = file.errorString();
To copy to clipboard, switch view to plain text mode 

Is there a way to change language used from QFile errorString() or a way to use an existing parser to parse QFile::FileError to a specified language?