Bubbling Library > Examples

Translator (YUI-CMS:YAHOO.util.Translator): Tutorials

Use this package to separate the language sentences from your javascript components.

Inline definition - Simple example

The language sentences are defined inline in the header of the document. See how switch between language.

Remote definition - Advanced example

See other examples to learn how to use the translator plugin to load different modules or loading onDemand when you need a language module.

Another Examples - How to use the translator for a multi-language component

Actually, you can see few packages in this library that use the Translator plugin to management of all the language's sentences needed during the displaying process.

Bubbling / Context Menus (YUI-CMS:YAHOO.CMS.bubbling): Tutorials

In this case, the translator plugin is used to load the remote language sentences to display the correct menus options in a certain language.