Showkatbd Translator | We translate written text

Showkatbd Translator একটি ট্রান্সলেটর টুলস্। সহজেই আপনার টেক্সট এখান থেকে অনুবাদ করে পছন্দ মতো ফরমেটে ব্যবহার করতে পারেন। এটি শুধুই অনুবাদ নয়। জানতে পারেন আপনার আর্টিকেলের Word এবং Characters সংখ্যা।


Online English Bengali Arabic Translation

body{font-size: 1.125rem;line-height: 1.6;text-decoration: none;text-align: left;}

Showkatbd Translator

.tb1 td{ font-size:18px; padding:2px 5px 5px 0px;} .tb1 td textarea { font-size:18px; padding:5px 5px 5px 5px; border:1px solid gray; border-radius:3px; height:150px; width:100%; } .btn1{ background-color:teal; font-size:17px; border:1px solid #fff; border-radius:3px; color:#fff; margin-left:4px; } .btn2{ background-color:teal; font-size:15px; border:1px solid #fff; border-radius:3px; color:#fff; width:140px; }

Type/Paste Your Text Here (Maximum 4900 Characters with Space)
ভাষা নির্বাচন করুন :
From EnglishBanglaArabic
To

BanglaEnglishArabic





function english_txt() { var english_txt = document.getElementById("txtSource").value;

if(english_txt!='') { var regex = /\s+/gi; var wordCount = english_txt.trim().replace(regex, ' ').split(' ').length; var totalChars = english_txt.length; var charCountNoSpace = english_txt.replace(regex, '').length; $('#wordCount1').html(wordCount); $('#totalChars1').html(totalChars); $('#charCountNoSpace1').html(charCountNoSpace); if(totalChars>=4900) { alert('Please input less than 4900 Characters.'); } } }

// for save as text file function saveTextAsFile() { var textToWrite = document.getElementById("txtTarget").value; if(textToWrite!='') { var textFileAsBlob = new Blob([textToWrite], {type:'text/plain'}); var fileNameToSaveAs ='translation.txt';

var downloadLink = document.createElement("a"); downloadLink.download = fileNameToSaveAs; downloadLink.innerHTML = "Download File"; if (window.webkitURL != null) { // Chrome allows the link to be clicked // without actually adding it to the DOM. downloadLink.href = window.webkitURL.createObjectURL(textFileAsBlob); } else { // Firefox requires the link to be added to the DOM // before it can be clicked. downloadLink.href = window.URL.createObjectURL(textFileAsBlob); //downloadLink.onclick = destroyClickedElement; downloadLink.style.display = "none"; document.body.appendChild(downloadLink); }

downloadLink.click(); } }

// for save as doc file function saveDocAsFile() { var textToWrite = document.getElementById("txtTarget").value; if(textToWrite!='') { var textFileAsBlob = new Blob([textToWrite], {type:'text/Doc'}); var fileNameToSaveAs ='translation.doc';

var downloadLink = document.createElement("a"); downloadLink.download = fileNameToSaveAs; downloadLink.innerHTML = "Download File"; if (window.webkitURL != null) { downloadLink.href = window.webkitURL.createObjectURL(textFileAsBlob); } else { downloadLink.href = window.URL.createObjectURL(textFileAsBlob); downloadLink.style.display = "none"; document.body.appendChild(downloadLink);

} downloadLink.click(); } }

function printTextArea() { childWindow = window.open('','childWindow','location=yes, menubar=yes, toolbar=yes'); childWindow.document.open(); childWindow.document.write(''); childWindow.document.write(document.getElementById('txtTarget').value.replace(/\n/gi,'
')); childWindow.document.write(''); childWindow.print(); childWindow.document.close(); childWindow.close(); }

$("#tcopy").click(function () { var el = document.getElementById('txtTarget'); el.select(); document.execCommand('copy'); document.body.removeChild(el); });

function reset() { window.localStorage.removeItem('lastSelectedQtValue'); window.localStorage.removeItem('lastSelectedTlValue'); window.localStorage.removeItem('lastSelectedSlValue'); location.reload();

}

function getSelectSlValue(selectS){ sl_ = document.getElementById('slang').value; localStorage.setItem("lastSelectedSlValue", sl_); window.localStorage.removeItem('lastSelectedQtValue'); location.reload(); }

function getSelectTlValue(selectT){ tl_ = document.getElementById('tlang').value; qtext = document.getElementById('txtSource').value; localStorage.setItem("lastSelectedTlValue", tl_); localStorage.setItem("lastSelectedQtValue", qtext); location.reload(); }

function getLastSelectedValue(){ var slvalue = localStorage.getItem("lastSelectedSlValue") if(slvalue ) { document.getElementById('slang').value = slvalue; }

var tlvalue = localStorage.getItem("lastSelectedTlValue") if(tlvalue ) { document.getElementById('tlang').value = tlvalue; } var qtvalue = localStorage.getItem("lastSelectedQtValue") if(qtvalue ) { document.getElementById('txtSource').value = qtvalue; } }

$("#btnTranslate").click(function () {

sl = document.getElementById('slang').value; tl = document.getElementById('tlang').value;

var url = "https://translate.googleapis.com/translate_a/single?client=gtx"; url += "&sl=" + sl; url += "&tl=" + tl; url += "&dt=t&q=" + $("#txtSource").val(); //alert(url); $.get(url, function (data, status) { var result= ''; for(var i=0; i<=500; i++) { result += data[0][i][0]; $("#txtTarget").val(result); $("#send_text").val(result); counters(result); } }); }); //Words and Characters Count function counters(value) { if(value!='') { var regex = /\s+/gi; var wordCount = value.trim().replace(regex, ' ').split(' ').length; var totalChars = value.length; var charCountNoSpace = value.replace(regex, '').length; $('#wordCount').html(wordCount); $('#totalChars').html(totalChars); $('#charCountNoSpace').html(charCountNoSpace); } } function setLocalData() { if (typeof(Storage) !== "undefined") { localStorage.setItem("banglaText", txtTarget.value ); } }