File: example/language.js

Recommend this page to a friend!
  Classes of Till Wehowski   µ.Flow   example/language.js   Download  
File: example/language.js
Role: Example script
Content type: text/plain
Description: Example script
Class: µ.Flow
General purpose library of objects
Author: By
Last change:
Date: 9 years ago
Size: 1,436 bytes
 

Contents

Class file image Download
/* Defining language/translation strings in the module/plugin literal: https://github.com/frdl/-Flow/blob/master/schema/WebfanDesktopModul.js */ /* Defining language/translation strings asynchron: */ $($.WebfanDesktop.o.doms.locale).locale('loadLangs', { 'Update' : { 'en_GB' : 'Update', 'de_DE' : 'Aktualisieren', 'fr_FR' : 'Mise à jour' } , 'Hello World' : { 'en_GB' : 'Hello World', 'de_DE' : 'Hallo Welt', 'fr_FR' : 'Bonjour le monde' }, /* <span id="id-of-dom-element">yes</span> */ 'title::id:id-of-dom-element' : { 'en_GB' : 'yes', 'de_DE' : 'ja', 'fr_FR' : 'oui' }, /* <span class="my-class">nein</span> */ 'class:my-class' : { 'de_DE' : 'nein', 'en_GB' : 'No', 'fr_FR' : 'non' } }) ; /* To invoke translation you can call: */ $.WebfanDesktop.translate();