Hi! Shinsuke,
  I tried to localize using the
JetSpeedLocalization_<language>.properties. It seems to work for all
except Japanese language.. When user selects Japanese language it is
getting defaulted to English. I'm not very sure about this peculiar
behavior.

 When I tried with the merge properties technique.. Nothing seems to
work including my action class in custom modules package. is there a way
to verify whether merge of properties files was successful.

Please guide me on this... I need your help...

Rgds,
Dinesh B Sampangi

-----Original Message-----
From: Shinsuke SUGAYA [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 26, 2004 5:35 PM
To: Sampangi, Dinesh
Subject: Re: Velocity: Japanese localisation.

Hi,

I do not have a sample portlet that I can send you now.
Typically, messages are moved into .properties file.
If you do not know how to encode it by UTF-8, try to move
messages into .properties file.

Thanks,
  shinsuke

Sampangi, Dinesh wrote:
> Hi!
>  Can u send me a sample portlet where in u have the file encoded, Coz
in
> my case it's not working even after doing all the stuffs u mentioned.
> 
> Rgds,
> Dinesh B Sampangi
> 
> -----Original Message-----
> From: Shinsuke SUGAYA [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, August 26, 2004 3:03 AM
> To: Sampangi, Dinesh
> Subject: Re: Velocity: Japanese localisation.
> 
> Hi,
> 
> Please try:
> 
>   - encode the file by UTF-8(not native2ascii)
>   - set ja to the browser's preferred language
> 
> Thanks,
>   shinsuke
> 
> Sampangi, Dinesh wrote:
> 
>>Hi! Shinsuke,
>>
>>   I'm facing some problem with localization of velocity templates in 
>>JetSpeed. I have followed the i18n instructions as per the velocity 
>>documentation. But the Japanese char sets are not getting translated. 
>>Here is my velocity template. This is placed under 
>>WEB-INF\templates\vm\portlets\html\ja.
>>
>> 
>>
>>/<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> /
>>
>>/<html>/
>>
>>/ <head>/
>>
>>/ <script LANGUAGE="JavaScript">/
>>
>>/ /
>>
>>/  function chgLanguage()/
>>
>>/  {/
>>
>>/    var language =/
>>
>>/    document.ChangeLanguageForm.Language./
>>
>>/
> 
> options[document.ChangeLanguageForm.Language.selectedIndex].value;/
> 
>>/     document.ChangeLanguageForm.submit(); /
>>
>>/    }/
>>
>>/ </script>/
>>
>>/ </head>/
>>
>>/<form name="ChangeLanguageForm" 
>>action="$jslink.setAction("portlets.witness.ChangeSettingsAction")" /
>>
>>/    method="post">/
>>
>>/  <font color="$!{skin.Color}">/
>>
>>/    
>>
> 
>
<p>\u8a00\u8a9e\u3092\u5909\u3048\u305f\u3044\u3068\u601d\u3048\u3070\u6
> 642\u9593\u5e2f\u306e\u8a2d\u5b9a/
> 
>>/
> 
> \u3001\u305d\u308c\u3092\u6b21\u306b\u5909\u3048\u306a\u3055\u3044/
> 
>>/      <br><br>/
>>
>>/     <select name="Language" size="1">/
>>
>>/          <option selected
> 
> value="$SelectedLang">$SelectedLang</option>/
> 
>>/            #foreach($Langauge in $Languages)/
>>
>>/                #if($Langauge != $SelectedLang)/
>>
>>/                <option value='$Langauge'>$Langauge</option>/
>>
>>/                #end/
>>
>>/           #end/
>>
>>/          </select>/
>>
>>/     <select name="TimeZone" size="1">/
>>
>>/         <option selected
> 
> value="$SelectedZone">$SelectedZone</option>/
> 
>>/          #foreach($TimeZone in $TimeZones)/
>>
>>/              #if($TimeZone != $SelectedZone)/
>>
>>/               <option value='$TimeZone'>$TimeZone</option>/
>>
>>/               #end/
>>
>>/           #end/
>>
>>/      </select>/
>>
>>/    </p>/
>>
>>/    <BR><BR>/
>>
>>/    <p>/
>>
>>/     <table>/
>>
>>/      <tr>/
>>
>>/        <td>\u73fe\u5728\u306e\u5730\u5e2f :
> 
> <b>$SelectedZone</b></td>/
> 
>>/        <td>\u6642\u9593&nbsp;&nbsp; &nbsp;&nbsp;: $ZoneTime</td>/
>>
>>/      </tr>/
>>
>>/      <tr>/
>>
>>/        <td>\u73fe\u5728\u306e\u5834\u6240 :
> 
> <b>$SelectedLang</b></td>/
> 
>>/        <td>\u6642\u9593&nbsp;&nbsp; &nbsp;&nbsp;: $LocaleTime</td>/
>>
>>/      </tr>/
>>
>>/    </p>/
>>
>>/      <table bgcolor="#ffffff" cellpadding="5" width="100%">/
>>
>>/          <tr>/
>>
>>/            <td align="$ui.buttonAlignment" 
>>bgcolor="$!{skin.TitleBackgroundColor}">/
>>
>>/             <input type="submit" name="eventSubmit_doUpdate" 
>>value="SaveSettings"/>/
>>
>>/          </td>/
>>
>>/        </tr>/
>>
>>/  </table>/
>>
>>/  </font>/
>>
>>/ </form>/
>>
>>/ </html>/
>>
>>/ /
>>
>>Please check this template and let me know what must be the problem..
>>
>> 
>>
>> 
>>
>>Rgds,
>>
>>Dinesh B Sampangi.
>>
> 
> 
> __________________________________________________
> GANBARE! NIPPON!
> Yahoo! JAPAN JOC OFFICIAL INTERNET PORTAL SITE
> http://mail.ganbare-nippon.yahoo.co.jp/
> 

__________________________________________________
GANBARE! NIPPON!
Yahoo! JAPAN JOC OFFICIAL INTERNET PORTAL SITE
http://mail.ganbare-nippon.yahoo.co.jp/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to