[英]Change default language on ribbon control
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(). 我尝试更改资源文件中的语言,并尝试使用std :: locale和setlocale()更改语言环境。 But nothing works.
但是没有任何效果。
I finally found the answer myself :). 我终于找到了答案:)。
SetThreadPreferredUILanguages(MUI_LANGUAGE_NAME, L"en-US", NULL); SetThreadPreferredUILanguages(MUI_LANGUAGE_NAME,L“ zh-cn”,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 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.