on 02-22-2007 11:57 PM
Hello Everybody,
I want to make my application chinese language dependant.
I have apended _ZH behind all my resource files.
Now I have three questions:
1. What is the correct ISO code for Chinese?
2. If ZH is right ISO code, When I deply my application and I look in content administrator-> my application and resource text tab, I cannot see resource bundle generetade for ZH ISO code. Why it is not showing ZH resource bundle?
3. How can I specify Chinese caracters in my resource file in my Developer studio. When I tried to copy and paste Chinese characters in resource file. It was shown as boxes instead of actual characters. Please suggest me.
I will really appriciate your inputs.
Regards,
Bhavik
Bhavik,
1. I don't know whether or not it could be the reason, but actually zh is ISO language code and ZH is ISO country code. So try to change case of letters
2. All property files must have only ASCII characters. Please use utility native2ascii to convert property files from native OS encoding to escaped ASCII encoding (where every char is kind of \u123)
Valery Silaev
SaM Solutions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Bhavik,
Never tried this with Chineese language but done several times for Russian and German:
1. OS is configured to store files in "native" locale (say Win1251 for Russian, Win1252 for German and many other European languages)
2. Just create property file via some editor that stores characters using OS encoding (like notepad)
3. Then in your JDK installation find utility <JDK_DIR>\bin\native2ascii
4. Run native2ascii original_file.properties > target_file_with_ascii_only_symbols.properties
As an example, here is output for "Hello, World!" in Russian:
hello.world=u041fu0440u0438u0432u0435u0442, u041cu0438u0440!
Valery Silaev
SaM Solutions
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.