$(document).ready(function(){get_loc();$("#keyword").change(function(){get_changed()});$("#save").click(function(){$(".loc").each(function(){$.ajax({url:"apps_v/localize_v.php",type:"post",data:{keyword:$("#keyword").val(),lang:$(this).attr("id"),translation:$(this).val(),csrf_token:csrf_token_get()},success:function(a){if(a!=""){alert(a)}}})});$(".entryform").effect("highlight",{color:"#33CC00"},500)})});function get_changed(){$("#keyword").val($("#keyword").val().replace(/\#\{(.*)\}/,"$1").trim());window.location.href="index.php?a=loc&w="+escape($("#keyword").val())}function get_loc(){$("#keyword").val($("#keyword").val().replace(/\#\{(.*)\}/,"$1"));$.ajax({url:"apps/localize_get.php",type:"get",data:{keyword:$("#keyword").val(),},success:function(a){if(a!=""){$(".entryform tr.locrow").remove();$(".entryform tr.kwrow").after(a)}}})}function t(b,c){var a=new Microsoft.Translator("2C6AF785752F523FA3C31A8568A6AEA46825184D");a.translate($("#"+b).val(),b.substring(0,2),c.substring(0,2)).success(function(d){$("#"+c).val(d)})};