c++windowswinapilocaleformatmessage

FormatMessage to a different language


Is it possible to translate system error codes to a specific language?

I can only pass MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US) to FormatMessage. Otherwise, function call fails with 15100 (The resource loader failed to find MUI file).

Where are system error messages stored? Why can't I load a message in a locale different from the system one?


Solution

  • Basically MUI stands for multilingual user interface. These are language packs. In windows one won't get them by default. Instead they have to install

    Below link helps you regarding procurement.

    https://support.microsoft.com/en-us/help/14236/language-packs

    By default the above page displays for windows 10 . there is a drop down option to select for the other versions of windows.

    If you have difficulty with above link, search in google for MUI language pack for windows 10 or any other version.