Domanda

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.

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top