Hi,
To be on the safer side use both.
<Locale  messages="ALL_ALL.xml"/><Locale lang="pt-BR" 
messages="pt_ALL.xml"/><Locale lang="en" messages="en_ALL.xml"/><Locale 
lang="pt" messages="pt_ALL.xml"/>
<Locale lang="pt-pt" messages="pt_ALL.xml"/>
and if you are using localisation for dynamic content, response for server use 
as-
switch(lang)
{
case 'pt':
case 'pt-pt':
case 'pt-br': var foo="hola!";break;
default: var foo="hello";break;
}Last time i checked sandbox use to return "pt-BR", orkut production -"pt"  
when language was changed to "portugues" from account settings
 
hope that helps..
 
Thanks ~@@[EMAIL PROTECTED] http://aakash-bapna.blogspot.com 



> Date: Wed, 9 Jul 2008 23:18:21 -0700> Subject: [orkut-developer] Re: 
> Localization for app description> From: [EMAIL PROTECTED]> To: 
> opensocial-orkut@googlegroups.com> > > Thanks for the note. I'll look into 
> this and get back to you.> > - Jason> > On Jul 8, 10:41 pm, soujanya <[EMAIL 
> PROTECTED]> wrote:> > By the way,what should be the lang parameter> >> > 
> <Locale lang="en-US" messages="en_ALL.xml"/>> > <Locale lang="pt-BR" 
> messages="pt_ALL.xml"/>> >> > OR> >> > <Locale lang="en" 
> messages="en_ALL.xml"/>> > <Locale lang="pt" messages="pt_ALL.xml"/>> >> > 
> The prefs.getLang() threw 'pt-BR' and 'en-US' before.> > But now it is 
> throwing 'pt' and 'en'.> >> > Please specify what exactly is the lang 
> parameter value.> >> > On May 14, 9:28 pm, Jason <[EMAIL PROTECTED]> wrote:> 
> >> > > It's not possible to change the user's language settings using the> > 
> > API, no. However, you can access the user's preferred language (e.g.> > > 
> 'en-US', 'pt-BR', etc.) using JavaScript and pass this into any> > > 
> functions that need to render text.> >> > > To see how to do this, check the 
> first paragraph directly under> > > "Localized text from your server" on the 
> wiki:> >> > 
> >http://code.google.com/p/opensocial-resources/wiki/OrkutLocalization> >> > > 
> Cheers!> > > - Jason> >> > > On May 12, 3:09 am, soujanya <[EMAIL PROTECTED]> 
> wrote:> >> > > > Hi Json,> >> > > > can the display language be changed on a 
> link click event and passing> > > > params to the js file.> > > > I could 
> change the static html pages text ,but not the text displayed> > > > by the 
> js files.> >> > > > On May 1, 12:04 am, Jason <[EMAIL PROTECTED]> wrote:> >> 
> > > > > No, the language is specified by the container settings. You will 
> have> > > > > to update your display language in orkut and reload your gadget 
> before> > > > > seeing the localized result.> >> > > > > - Jason> >> > > > > 
> On Apr 28, 9:53 pm, verma6uc <[EMAIL PROTECTED]> wrote:> >> > > > > > Yeah,> 
> >> > > > > > But what I am trying to do is setting language as a part of 
> gadgets> > > > > > settings.. Any help..- Hide quoted text -> >> > > - Show 
> quoted text -> 
> _________________________________________________________________
Use video conversation to talk face-to-face with Windows Live Messenger.
http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_072008
--~--~---------~--~----~------------~-------~--~----~
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