I think I ran into the same problem. As far as I can tell, the message bundle won't be used if you only specify the language. According to the Orkut localization article (1), you should be able to specify the location of a Portuguese message bundle like this: <Locale lang="pt" messages="http://example.com/hello/pt_ALL.xml"/>
However, it only seems to work if you specify the country in the lang attribute, like this: <Locale lang="pt-BR" messages="http://example.com/hello/pt_ALL.xml""/> The Google Gadget documentation (2) indicates that the country should be specified in a separate country attribute, but that doesn't seem to work either. I could only get Orkut to recognize the message bundle by specifying both the language and country in the lang attribute. References: (1) http://code.google.com/p/opensocial-resources/wiki/OrkutLocalization (2) http://code.google.com/apis/gadgets/docs/i18n.html#Bundles On Apr 29, 8:13 pm, sharath <[EMAIL PROTECTED]> wrote: > Hi Rohit, > > Thanks for the reply, its working fine. > Also we discussed earlier about writing into activity stream on > application install. > It would be great if you can let me know the way to achieve it. > > Thanks and Regards > Sharath > > On Apr 29, 10:04 pm, Rohit Ghatol <[EMAIL PROTECTED]> wrote: > > > Hi Sharath, > > > Here is a working example. It haslocalizationfor 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 > > URLhttp://hosting.gmodules.com/ig/gadgets/file/117096175175119497472/i18... > > > 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/replacedwiththelocation 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 thelocalizationworking 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 throughLocalizationwiki 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 -~----------~----~----~----~------~----~------~--~---