Updated language picker.

This commit is contained in:
Pierre HUBERT
2018-08-15 08:55:15 +02:00
parent 6e0b3a4345
commit 8eadb03d59
2 changed files with 14 additions and 10 deletions

View File

@ -100,6 +100,10 @@ ComunicWeb.common.langs = {
* @return {String} The string ready to show
*/
getTranslatedText: function(stringName, stringParams){
if(!this[this.__currentLang])
return "Invalid language!";
//Try to get string
if(this[this.__currentLang][stringName])
var string = this[this.__currentLang][stringName];