Great! I'll look into the message bundles. Thanks! Kamala
On Wed, Nov 3, 2010 at 1:11 PM, Paul Lindner <[email protected]> wrote: > I think the only variable exposed in __MODULE_ID__ > > You may want to use message bundles to define the translatable strings for > your application. This would then allow you to use __MSG_title__ for the > title section of your app, and you could then use that within the gadget, > like this: > > > <Module> > <ModulePrefs title="__MSG_title__"/> > <Locale lang="en" country="us"> > <msg name="title"> Hello World</msg> > </Locale> > </ModulePrefs> > > <Content type="html"> > var title = '__MSG_title__'; > </Content> > > </Module> > > > On Tue, Nov 2, 2010 at 9:22 AM, KC <[email protected]> wrote: > >> Is there a way to programmatically retrieve the title of the gadget in >> JavaScript? I'm working on some code that will be shared by multiple >> gadgets and it needs to display the name of the gadget in which the >> code is executed. >> >> Thanks, >> KC >> >> -- >> You received this message because you are subscribed to the Google Groups >> "OpenSocial Application Development" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<opensocial-api%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/opensocial-api?hl=en. >> >> > > > -- > Paul Lindner -- [email protected] -- linkedin.com/in/plindner > > -- > You received this message because you are subscribed to the Google Groups > "OpenSocial Application Development" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<opensocial-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/opensocial-api?hl=en. > -- You received this message because you are subscribed to the Google Groups "OpenSocial Application Development" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/opensocial-api?hl=en.
