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