本文介绍了Visual Studio 2012应用程序,系统语言=葡萄牙语(Brasil),MFC字符串大多以英文显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个使用VS 2012构建的简单C ++应用程序,使用在Windows 10上运行的功能区,可停靠窗格等MFC类。


如果我切换Windows桌面语言为法语,MFC字符串在法语中正确显示,即右键单击功能区时,自定义菜单字符串为法语,自定义对话框按钮/标签为法语:



如果我切换我的Windows桌面语言为葡萄牙语(巴西),MFC字符串主要以英语显示,但有些以葡萄牙语显示,例如自定义取消按钮:




我们遇到相同的行为与Windows Portuguese / Brasil一起安装的Windows 7和Windows 10系统(即没有附加语言包)。   所以问题是MFC会完全支持葡萄牙语/巴西吗?



编辑:使用VS 2015编译时也会出现

解决方案

We have a simple C++ application built with VS 2012 using MFC classes such as ribbon, dockable panes, etc., running on Windows 10.

If I switch my Windows desktop language to French, the MFC strings display properly in French, i.e. when right-clicking on the ribbon, the Customize menu strings are in French and the Customize dialog buttons/labels are in French:

If I switch my Windows desktop language to Portuguese (Brasil), the MFC strings mostly display in English, although some display in Portuguese, such as the Customize cancel button:

We encounter the same behavior on Windows 7 and Windows 10 systems that are installed with Windows Portuguese/Brasil (i.e. no add-on language packs).   So the question is when will Portuguese/Brasil be fully supported in MFC?

Edit: Also occurs when compiled with VS 2015

解决方案


这篇关于Visual Studio 2012应用程序,系统语言=葡萄牙语(Brasil),MFC字符串大多以英文显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 12:48