共享一个Personal Organiser软件。
登录 | 论坛导航 -> 华新鲜事 -> 求学狮城 | 本帖共有 9 楼,当前显示第 5 楼 : 从楼主开始阅读 : 本帖树形列表 : 返回上一页
作者:Flying (等级:18 - 华新水车,发帖:16849) 发表:2003-06-04 22:45:10  5楼 
another thing is regarding multi-language version.i stored all the text in the UI in a constant class. to switch to another language, simply replace those text with the corresponding in the other language. however, there is problem with input chinese characters in the text area. (displayed as squares). don't know whether this problem can be solved in JDK1.4. if yes, a chinese version can be developed in minutes.
I can answer some of your doubts:
1) For HTML pages, they CAN be included into the jar file. I did make applications that displays help documents that are included in jar archive.

2) I recommend that you do not use constant class for localization/internationalization. In fact, the Java i18n approach uses the class MessageFormat as well as .properties files that gives a unique name to each constant string/pattern throughout the application.

You can find sample code for the above points from sun's web site. I did both before, so I'm pretty sure they are operational and they are indeed convenient.
Flying @way 吳穎暉
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版只看此人从这里展开收起列表

本帖共有 9 楼,当前显示第 5 楼,本文还有 N-1 层楼,要不你试试看:点击此处阅读更多 >>



请登录后回复:帐号   密码