Melina, as Aakash said and I tested, we can insert localised html into an object using javascript, but this javascript can't be called using <script src="file.js">. It needs to be in the "yourapp.xml" body, like:
<script> $('#header .txt').html(*"*__MSG_BATTLES__*"*); </script> Note: I'm using jQuery to insert html, but you can use tradicional ways... regards, Jota On Mon, Apr 6, 2009 at 4:03 PM, Melina Lopes <melina_lo...@hotmail.com>wrote: > gadget.xml what? > > > ------------------------------ > Date: Mon, 6 Apr 2009 15:59:02 -0300 > Subject: [orkut-developer] Re: Localizing Apps with Javascript > > From: jefferson.ru...@gmail.com > To: opensocial-orkut@googlegroups.com > > Hi Aakash, > thanks for answer. > > It wasn't working properly because It was outside of gadget.xml... > > regards, > Jota > > > > On Mon, Apr 6, 2009 at 3:06 PM, Aakash Bapna <aak...@live.com> wrote: > > Yes its possible. > As match replace is done on the server-side, the line containing the code > should be in the gadget xml and enclosed within quotes. > > $('#header .txt').html(*"*__MSG_BATTLES__*"*); > > > > Thanks, > Aakash Bapna > http://aakash.me > > > > > > ------------------------------ > Date: Mon, 6 Apr 2009 14:26:18 -0300 > Subject: [orkut-developer] Localizing Apps with Javascript > From: jefferson.ru...@gmail.com > To: opensocial-orkut@googlegroups.com > > > I would like to know if can I use something like: > > $('#header .txt').html(__MSG_BATTLES__); > this is a jQuery command to > insert html into a DIV. > > Is it possible? > > > regards, > Jota > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 opensocial-orkut+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/opensocial-orkut?hl=en -~----------~----~----~----~------~----~------~--~---