Class: TranslationManager

TranslationManager()

TranslationManager This class adds functionallity to manage existing language options, and create new ones.

Methods

addLocale(event)

Add a language to the available locales list and set it as the current editing language.
Parameters:
Name Type Description
event MouseEvent
Source:

addTarget(targetnon-null)

Registers another EventTarget as a bubble target.
Parameters:
Name Type Description
target Object YUI component where events will be emited to
Source:

changeDefaultLocale(event)

Change the default language.
Parameters:
Name Type Description
event MouseEvent
Source:

changeLocale(event)

Change current editing language.
Parameters:
Name Type Description
event MouseEvent
Source:

get(attr)

Returns a property.
Parameters:
Name Type Description
attr String Name of the attribute wanted to get
Source:

removeAvailableLocale(event)

Remove a language from the available locales list and reset the current editing language to default if removed one was selected.
Parameters:
Name Type Description
event MouseEvent
Source: