Does anyone know how to change the default language on the ribbon control, I'm using a danish language windows, so the dialogs and standard labels are in danish, but I'm writing the application in english.

I've tried changing the language in the resource file, and tried changing locale with std::locale and setlocale(). But nothing works.

有帮助吗?

解决方案

I finally found the answer myself :).

SetThreadPreferredUILanguages(MUI_LANGUAGE_NAME, L"en-US", NULL);

Did it for me, but only if the specific language pack is fully installed. I hope it'll help someone else.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top