摘要
针对飞行员飞行品质评估系统中的多语言界面问题,采用扩展XML外部语言包的方法,结合反射技术,实现了C#语言环境下对应用软件的多语言支持。实现过程中对界面文字的导入/导出功能进行了封装处理,消除了冗余代码。该方法对源程序修改较少,而扩展性强、维护成本小、程序直观性好。
Aiming to solve the multi-language interface problem in the pilot performance assessment tools, the external XML language package is adopted as well as reflection technology and the multi-language support for the software in C# is finally realized in this paper. Besides, the language import and export function is encapsulated to eliminate redundant code. The method has a good visibility and expansibility, economizes cost of maintenance and leads to the program a good visual effect.
出处
《微型机与应用》
2012年第13期1-3,6,共4页
Microcomputer & Its Applications
关键词
XML
反射技术
多语言界面
C#
XML
reflection technology
multi-language interface
C#