An internationalized program has the following characteristics:
国际化的程序有这些特点:
-
With the addition of localized data, the same executable can run worldwide.
-
Textual elements, such as status messages and the GUI component labels, are not hardcoded in the program. Instead they are stored outside the source code and retrieved dynamically.
-
Support for new languages does not require recompilation.
-
Culturally-dependent data, such as dates and currencies, appear in formats that conform to the end user's region and language.
-
It can be localized quickly.
带有本地化的数据,能够在全世界执行。
正文元素,例如GUI组件的标签、状态信息不在程序中硬编码。他们被存放在外部的资源代码中,被动态加载。
支持了新语言不需要重新编译。
数据基于文化,比如日期货币格式符合用户所在地区和语言。
能够快速本地化
一个快速上手的小例子。
国际化要考虑的清单
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26614996/viewspace-1602733/
,如需转载,请注明出处,否则将追究法律责任。