You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by "Wong, Chui N S" <cn...@essex.ac.uk> on 2002/10/07 15:35:11 UTC
Chinese version of JetspeedLocalization.properties
Hi, all,
I am trying to display Jetspeed in Chinese. Does anyone do the Chinese
translation for JetspeedLocalization.properties ? Such as
JetspeedLocalization_zh.properties file ?
On the other hand, to display Chinese characters in Jetspeed, it needs
UTF-8 encoding. I have checked Jepspeed already using UTF-8 (using
runData.getCharset). Does it means I don't need to change the encoding
in JetspeedResources.properties and conf/TurbineResources.properties ?
Any previous experience is welcome. Thanks.
Best Regards,
Shirley
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Chinese version of JetspeedLocalization.properties
Posted by "Wong, Chui N S" <cn...@essex.ac.uk>.
Thanks a lot to your detail explanation.
I already use your method to input string in the properties file.
However, the Chinese characters still can't display properly. Is there
anyone know why ?
I can successfully display the Chinese content in the portlet. Why not
in the "Welcome to Jetspeed" ?
Best Regards,
Shirley
-----Original Message-----
From: ??? [mailto:lovelish@bawi.org]
Sent: 08 October 2002 01:10
To: Jetspeed Users List; cnswon@essex.ac.uk
Subject: Re: Chinese version of JetspeedLocalization.properties
I think you can make your own JetspeedLocalization_zh.properties file.
Let me explain how I let Jetspeed to display korean.
1.
Copy JetspeedLocalization.properties to
$TOMCAT_HOME$/webapps/jetspeed/WEB-INF/classes/org/apache/jetspeed/modul
es/localization/JetspeedLocalization_ko.properties
2.
Open
$TOMCAT_HOME$/webapps/jetspeed/WEB-INF/conf/TurbineResources.properties
and edit following lines.
locale.default.language=ko
locale.default.country=KR
3.
Edit
JetspeedLocalization_ko.properties
(!) If I write Korean characters directly in that file, they are oddly
displayed in Jetspeed screen. I believe that Chinese characters will
behave samely. To solve it, I executed native2ascii.exe in JDK/bin. If I
enter a Korean string in the native2ascii console, escaped string (sth
like \uc548\ub155\ud558\uc138\uc694) is printed. I copied & pasted that
escaped string in the JetspeedLocalization_ko.properties file. And it
works. :)
4.
Restart Tomcat.
Did it work for you?
----- Original Message -----
From: "Wong, Chui N S" <cn...@essex.ac.uk>
To: "'Jetspeed Users List'" <je...@jakarta.apache.org>
Sent: Monday, October 07, 2002 10:35 PM
Subject: Chinese version of JetspeedLocalization.properties
> Hi, all,
>
> I am trying to display Jetspeed in Chinese. Does anyone do the
> Chinese translation for JetspeedLocalization.properties ? Such as
> JetspeedLocalization_zh.properties file ?
>
> On the other hand, to display Chinese characters in Jetspeed, it needs
> UTF-8 encoding. I have checked Jepspeed already using UTF-8 (using
> runData.getCharset). Does it means I don't need to change the
> encoding in JetspeedResources.properties and
> conf/TurbineResources.properties ?
>
> Any previous experience is welcome. Thanks.
>
> Best Regards,
> Shirley
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Chinese version of JetspeedLocalization.properties
Posted by ??? <lo...@bawi.org>.
I think you can make your own JetspeedLocalization_zh.properties file.
Let me explain how I let Jetspeed to display korean.
1.
Copy JetspeedLocalization.properties to
$TOMCAT_HOME$/webapps/jetspeed/WEB-INF/classes/org/apache/jetspeed/modules/localization/JetspeedLocalization_ko.properties
2.
Open
$TOMCAT_HOME$/webapps/jetspeed/WEB-INF/conf/TurbineResources.properties
and edit following lines.
locale.default.language=ko
locale.default.country=KR
3.
Edit
JetspeedLocalization_ko.properties
(!) If I write Korean characters directly in that file, they are oddly displayed in Jetspeed screen.
I believe that Chinese characters will behave samely.
To solve it, I executed native2ascii.exe in JDK/bin.
If I enter a Korean string in the native2ascii console, escaped string (sth like \uc548\ub155\ud558\uc138\uc694) is printed.
I copied & pasted that escaped string in the JetspeedLocalization_ko.properties file. And it works. :)
4.
Restart Tomcat.
Did it work for you?
----- Original Message -----
From: "Wong, Chui N S" <cn...@essex.ac.uk>
To: "'Jetspeed Users List'" <je...@jakarta.apache.org>
Sent: Monday, October 07, 2002 10:35 PM
Subject: Chinese version of JetspeedLocalization.properties
> Hi, all,
>
> I am trying to display Jetspeed in Chinese. Does anyone do the Chinese
> translation for JetspeedLocalization.properties ? Such as
> JetspeedLocalization_zh.properties file ?
>
> On the other hand, to display Chinese characters in Jetspeed, it needs
> UTF-8 encoding. I have checked Jepspeed already using UTF-8 (using
> runData.getCharset). Does it means I don't need to change the encoding
> in JetspeedResources.properties and conf/TurbineResources.properties ?
>
> Any previous experience is welcome. Thanks.
>
> Best Regards,
> Shirley
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>