質問

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