[multilanguage_switcher]Uses a predefined dictionary

You can get or set the dictionary the plugin uses by calling $.tr.dictionary. It is a object made by key-value pairs, with the original sentence or string id as key, and the translated sentence as value (or a translating function, see below).

Alternatively, you may give an other dictionary when calling $.tr.translator which will be used instead of the global dictionary.

You may also use a hierarchy of dictionaries, by giving the keys to $.tr.transaltor.

Note that you may still use AJAX to retrieve the dictionary, but the plugin itself does not rely on AJAX to translate (it’s not its goal).