由于酷爱写博文,把这习惯带到工作上了。有时,代码没写几行,心得和感叹写了好几页,严肃的工作记录本俨然变成了我的私人博客。
例会上,show了下偶写的笔记,boss Fish过了若干小时后,跑我座位那儿,翻看我的笔记,然后说了句,你是不是喜欢写博客啊,我说你怎么知道?……boss Fish看了我一眼,放下笔记本说,你还不如写博客呢,还能&%*&($(没听清,不过感觉是希望我不要在本子上涂鸦)老大们的意见一向是需要立马贯彻的,于是偶以迅雷不及掩耳的速度更新偶的博客。
今天实现了MUI,记录如下:
【MUI介绍】
Windows Embedded CE上的MUI向用户提供改变UI(User Interface)语言的功能
The Multilingual User Interface (MUI) allows users to change the language of the user interface (UI). To make this possible, the MUI uses a single core binary that includes the system default language, together with one resource dynamic–link library (DLL) for each additional target language. The target device boots with the system default language and then a new user–selected language goes into effect after a soft reset. This switch requires recreating windows, menus, and dialog boxes with the newly loaded resources. In addition, to be considered successful, the language switch must display these elements with the correct fonts and with the correct locale–specific information.
【MUI优点】
1、Cost effective in development time
One single run-time image for multiple target language and market.
2、Decouple Coding and Language translation
Language translation can be done in later time and will not impact implementation
3、Flexibility in production and distribution
More language supports can be added in a future time via image update process without impacting the logic of the component.
4、Higher usability
Allows user be able to switch to different language at run-time
【MUI实现】(VS2008平台,WM6 Standard模拟器)
1、Build a Project. (The one you want to support with several types of languages)
2、Add an empty DLL project (The particular language support packet).
3、Configure the empty DLL project: Add .def, .cpp, .rc file.
4、Configure project properties