function getUrlVars(){var b,d,c=[],a=window.location.href.slice(window.location.href.indexOf("?")+1).split("&");for(b=0;b<a.length;b++){d=a[b].split("=");c.push(d[0]);c[d[0]]=d[1]}return c}function fix_bing(a){return String(a).replace(/\% [sS]/g,"%s").replace(/< [bB]r \/ >/g,"<br />").replace(/&/g,"&amp;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,'\\"').replace(/"/g,"&quot;")}function translate(g,f){var b,e,d,c=new Microsoft.Translator("2C6AF785752F523FA3C31A8568A6AEA46825184D");c.translateArray(mydbr_items,g,f).success(function(a){d="<br /><strong>Localization suggestions by Bing:</strong><br />";d+="1. Check the localization carefully<br />";d+="2. Copy the the result to language file interface/languages/"+getUrlVars()["lang"]+".php<br />";d+="3. Check that the file is valid PHP<br />";d+="4. You can then activate the language in Environmental Settings<br /><br />";d+='<div class="code">&lt;?php <br />$lang = substr(basename(__FILE__),0,-4);<br /><br />';for(e=0;e<a.length;e++){if(mydbr_keywords[e]=="MYDBR_RS_NO_SERVER_INFO"){b=1}d+="$localization[$lang]['"+mydbr_keywords[e]+"'] = \""+fix_bing(a[e].TranslatedText)+'";</br>'}d+="</div>";$("#t").html(d)})};