voyent
Submit a Contribution: icefaces-comps_zh.jar  XML
Forum Index -> Contributor's Corner
Author Message
ratking

Joined: 05/Oct/2008 00:00:00
Messages: 5
Offline


I'm a Chinese programmer.

I have read and agree the ICEfaces Contributors Agreement(http://www.icefaces.org/docs/agreements/ICEfacesContributorAgreementv1_0.pdf).
But, because I can't use any fax and printer, so I can't become a formal ICEfaces Contributor :-(

I have translated ICEfaces-1.8.1-src\icefaces\component\src\com\icesoft\faces\resources\messages.properties into Simplified Chinese and Traditional Chinese.

The attchment is one file - icefaces-comps_zh.jar, which contains two property files: messages_zh_CN.properties and messages_zh_TW.properties

You can use it with ICEfaces-1.7.2, ICEfaces-1.8.0 or ICEfaces-1.8.1.
Just put the jar file in CLASS_PATH. e.g. WEB-INF\lib

I very much hope that someone can do a test and merge these property files into the trunk of the ICEfaces code.
Many Chinese programmers and users will be pleased to see the i18n of ICEfaces.

mailto: ratking (at) ynet.com
2009-06-25

This forum can't accept and show Chinese characters correctly :-(
 Filename icefaces-comps_zh.jar [Disk] Download
 Description containt two property files: messages_zh_CN.properties and messages_zh_TW.properties
 Filesize 4 Kbytes
 Downloaded:  1489 time(s)

ratking

Joined: 05/Oct/2008 00:00:00
Messages: 5
Offline


I have created a resource files, used for com.icesoft.faces.context.DOMResponseWriter, which can change the "Session expired" Window into English, Simplified Chinese or Traditional Chinese.

The attchment is one file - icefaces-bridge-messages.jar, which containt four property files: bridge-messages.properties, bridge-messages_en.properties, bridge-messages_zh_CN.properties and bridge-messages_zh_TW.properties

For the ICEfaces-1.8.1-src.zip, the four property files maybe should been placed in ICEfaces-1.8.1-src\icefaces\core\src

You can use it with ICEfaces-1.7.2, ICEfaces-1.8.0 or ICEfaces-1.8.1.
Just put the jar file in CLASS_PATH. e.g. WEB-INF\lib

see alse Specify bridge dialog messages in a resource file on the server(http://jira.icefaces.org/browse/ICE-3016) and Change the language of the "Session expired" Window(http://www.icefaces.org/JForum/posts/list/10316.page)

mailto: ratking (at) ynet.com
2009-06-25
 Filename icefaces-bridge-messages.jar [Disk] Download
 Description containt four property files: bridge-messages.properties, bridge-messages_en.properties, bridge-messages_zh_CN.properties and bridge-messages_zh_TW.properties
 Filesize 2 Kbytes
 Downloaded:  1475 time(s)

ratking

Joined: 05/Oct/2008 00:00:00
Messages: 5
Offline


I have translated Component-Showcase's resources into Simplified Chinese and Traditional Chinese.

The attchment is two file - messages_zh_CN.properties and messages_zh_TW.properties

For the ICEfaces-1.8.1-src.zip, the two property files maybe should been placed in ICEfaces-1.8.1-src\icefaces\samples\component-showcase\common-src\org\icefaces\application\showcase\view\resources

For the seam-showcase-1.8.0.zip, the two property files maybe should been placed in seam-comp-showcase\src\org\icefaces\application\showcase\view\resources

You can use it with ICEfaces-1.7.2, ICEfaces-1.8.0 or ICEfaces-1.8.1.

Notice - you should edit org.icefaces.application.showcase.util.LocaleBean manually.
As the following:
Code:
 public class LocaleBean implements Serializable {
 ...
     // available locals to choose from.
     private static final ArrayList AVAILABLE_LOCALES = new ArrayList(4);
     static{
         // setup our list of supported languages.
         AVAILABLE_LOCALES.add(new SelectItem("en", "English"));
         AVAILABLE_LOCALES.add(new SelectItem("de", "German"));
         AVAILABLE_LOCALES.add(new SelectItem("es", "Spanish"));
         AVAILABLE_LOCALES.add(new SelectItem("zh", "Chinese"));
     }
 ...
         String newLanguage = (String) event.getNewValue();
         // see if matches any of our translations.
         if ("en".equals(newLanguage))  {
             currentLanguage = "en";
         } else if ("es".equals(newLanguage)) {
             currentLanguage="es";
         } else if ("de".equals(newLanguage)) {
             currentLanguage="de";
         } else if ("zh".equals(newLanguage)) {
             currentLanguage="zh";
         }
 ...
 }


There are three changes:
1. private static final ArrayList AVAILABLE_LOCALES = new ArrayList(4);
2. AVAILABLE_LOCALES.add(new SelectItem("zh", "Chinese"));
3. else if ("zh".equals(newLanguage)) { currentLanguage="zh"; }

mailto: ratking (at) ynet.com
2009-06-25
 Filename messages_zh_CN.properties [Disk] Download
 Description Component-Showcase's resources - Simplified Chinese
 Filesize 60 Kbytes
 Downloaded:  1857 time(s)

 Filename messages_zh_TW.properties [Disk] Download
 Description Component-Showcase's resources - Traditional Chinese
 Filesize 60 Kbytes
 Downloaded:  1636 time(s)

ratking

Joined: 05/Oct/2008 00:00:00
Messages: 5
Offline


Hi, Anoop,

I am very pleased to receive your e-mail.
I agree with you to submit the Chinese translation for inclusion in the open source version.
Thank you, as well as the contribution of other people on the ICEfaces.

ratking
2012-04-09
 
Forum Index -> Contributor's Corner
Go to:   
Powered by JForum 2.1.7ice © JForum Team