简体   繁体   English

更改功能区控件上的默认语言

[英]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.

相关问题 在运行时修改功能区控件 - Modifying a ribbon control at runtime 如何在Microsoft Visual C ++中更改默认语言 - How to change default language in Microsoft Visual C++ 如何更改 Visual Studio 2019 中的默认 C++ 语言标准? - How to change default C++ language standard in Visual Studio 2019? 如何更改新 MFC 对话框的默认语言(地区)? - How do I change the default language (locality) for new MFC dialogs? 暂时使MFC功能区中的控件处于非活动状态或已禁用 - Temporarily make a control in MFC Ribbon inactive or disabled Gettext错误的默认语言 - Gettext wrong default language 是否可以将Windows功能区控件修改为更像使用现有API的MS Word 2010中的功能区 - Can the windows ribbon control be modified to look more like the ribbon in MS Word 2010 using the existing APIs 如何更改 Visual Studio 中所有项目的默认语言标准。 C++ - How to change the default language standard for all projects in Visual Studio. C++ 如何在MFC功能区应用程序中使用自动完成编辑控件 - How to use an autocomplete edit control in an MFC Ribbon Application 如何访问功能区选项卡上尚未打开的控件? - How to access a control on a ribbon tab that has not been opened yet?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM