All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scripts.sonar-i18n-min.js Maven / Gradle / Ivy

AJS.$.namespace("AJS.sonar.text");AJS.sonar.text.loaded=false;AJS.sonar.text.msgStore={};AJS.sonar.text.getMsgCallBack=null;AJS.sonar.text.getMsg=function(a){if(AJS.sonar.text.getMsgCallBack!=null){return AJS.sonar.text.getMsgCallBack(a)}else{if(AJS.sonar.text.msgStore[a]!==undefined&&AJS.sonar.text.msgStore[a]!=null){return AJS.sonar.text.msgStore[a]}}return a};AJS.sonar.text.load=function(a){if(AJS.sonar.text.getMsgCallBack==null&&!AJS.sonar.text.loaded){AJS.$.ajax({url:a+"/rest/sonar/1.0/i18n",async:false,type:"GET",dataType:"json",success:function(b){AJS.$(b.entries).each(function(){AJS.sonar.text.msgStore[this.key]=this.value});AJS.sonar.text.loaded=true}})}};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy