mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 12:25:16 +00:00
Updated language picker.
This commit is contained in:
@ -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];
|
||||
|
Reference in New Issue
Block a user