ComunicWeb/assets/js/init.js
2017-01-08 15:54:25 +01:00

30 lines
647 B
JavaScript

/**
* Comunic WebApp init script
*
* @author Pierre HUBERT
*/
//Anonymous function
(function(){
//Start init
ComunicWeb.debug.logMessage("Start initialization...");
/**
* Language initator
*/
ComunicWeb.common.langs.initLanguages();
//End of init
ComunicWeb.debug.logMessage("Application is ready !");
})();
//Create a quick language access function shorcut
function lang(stringName, stringParams){
//Check if any params has been specified
if(!stringParams)
var stringParams = [];
//Call function
return ComunicWeb.common.langs.getTranslatedText(stringName, stringParams);
}