Hi Sharath,

Here is a working example. It has localization for Portuguese also.
I am using pt-BR for lang for Portuguese. The display setting was
changed to Portuguese to test this gadget.

<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="__MSG_title__" description="__MSG_description__" >
<Require feature="opensocial-0.7"/>
<Locale messages="http://hosting.gmodules.com/ig/gadgets/file/
117096175175119497472/en_ALL.xml"/>
<Locale lang="en-US" messages="http://hosting.gmodules.com/ig/gadgets/
file/117096175175119497472/en_ALL.xml"/>
<Locale lang="pt-BR" messages="http://hosting.gmodules.com/ig/gadgets/
file/117096175175119497472/pt_ALL.xml"/>
</ModulePrefs>
<Content type="html"><![CDATA[
__MSG_helloworld__

]]></Content>
</Module>

You can try the gadget from the following URL
http://hosting.gmodules.com/ig/gadgets/file/117096175175119497472/i18n.xml

Check it out let me know if this was helpful.

Regards,
Rohit

On Apr 29, 2:38 pm, sharath <[EMAIL PROTECTED]> wrote:
> Hi Jerome,
>
> Thanks for your reply.
> I tried in the gadget body also but its not working, even tested your
> application;
> I could not see the language change even after changing display
> language setting to estonia.
>
> Regards
> Sharath
>
> On Apr 29, 8:05 am, Jerome <[EMAIL PROTECTED]> wrote:
>
> > Hi Sharath,
>
> > Everything looks good from what you described above, as long as you
> > have the following 2 lines in your gadget ModulePrefs, 
> > withhttp://example.com/hello/replacedwith the location where your
> > message bundles are hosted:
>
> >   <Locale lang="en" messages="http://example.com/hello/en_ALL.xml"/>
> >   <Locale lang="pt" messages="http://example.com/hello/pt_ALL.xml"/>
>
> > For a quick test, you would be better of trying the __MSG_desc__ in
> > your gadget body. I am not sure what the caching policy is for the
> > gadget description on the Orkut sandbox.
>
> > If you want to see the localization working for a gadget, check
> > Friends' Time in the directory. The days and months are localized and
> > this is working good.
>
> > Jerome
>
> > On Apr 28, 8:49 pm, sharath <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > > My english message bundle is as below, Also ALL_ALL.xml is same
> > > <?xml version="1.0" encoding="UTF-8" ?>
> > > <messagebundle>
> > > <msg name="title">
> > > English Title
> > > </msg>
> > > <msg name="desc">
> > > English Description
> > > </msg>
> > > </messagebundle>
>
> > > portugese bundle is a s below:
> > > <?xml version="1.0" encoding="UTF-8" ?>
> > > <messagebundle>
> > > <msg name="title">
> > > Portugese Title
> > > </msg>
> > > <msg name="desc">
> > > Portugese Description
> > > </msg>
> > > </messagebundle>
>
> > > In Module prefernces i have substituted __MSG_desc__ for description,
> > > for english its working, when i change to portugese as display
> > > language its showing english description.
>
> > > On Apr 28, 9:27 pm, verma6uc <[EMAIL PROTECTED]> wrote:
>
> > > > It does work ...  Tell me the exact details  of the problem
>
> > > > On Apr 28, 5:46 pm, sharath <[EMAIL PROTECTED]> wrote:
>
> > > > > Hello,
>
> > > > > I went through Localization wiki and tried few sample programs with
> > > > > message bundles.
> > > > > Only default message bundle is working.
> > > > > whereas language specific bundles are not working.
> > > > > Is it fully supported in orkut as of now, if so what is the exact
> > > > > procedure to implement.?
> > > > > Does container choose the appropriate bundle automatically depending
> > > > > on the user language or should we pass it through a script?
>
> > > > > Regards
> > > > > Sharath
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to opensocial-orkut@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to