السلام عليكم
كود صغير تضعه فى هيدر موقعك يقوم بترجمه صفحتك الى عدة لغات ويمكنك تعديل اللغات المطلوب مثل ما تريد
مثال حى بسيط >
كود PHP:
http://test.mtrp.net/trans/
كل ما عليك وضع الكود التالى >
كود PHP:
<table border="0" align="center" cellpadding="2" cellspacing="2">
<tr>
<td><a href="javascript:var t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection &&document.selection.createRange&&document.selection.createRange().text));var e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/translate_t?text='+t+'&hl=en&langpair=en|ar&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&hl=en&langpair=en|ar&tbb=1&ie='+e;};" title="Arabic"><img src="http://www.masterwebsoftware.com/free-translation-script/translate/kuwait.gif" width="30" height="20" border="0"/></a></td>
<td><a href="javascript:var t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection &&document.selection.createRange&&document.selection.createRange().text));var e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/translate_t?text='+t+'&hl=en&langpair=en|de&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&hl=en&langpair=en|de&tbb=1&ie='+e;};" title="German"><img src="http://www.masterwebsoftware.com/free-translation-script/translate/german.gif" width="30" height="20" border="0"/></a></td>
<td><a href="javascript:var t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection &&document.selection.createRange&&document.selection.createRange().text));var e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/translate_t?text='+t+'&hl=en&langpair=en|pt&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&hl=en&langpair=en|pt&tbb=1&ie='+e;};" title="Portuguese"><img src="http://www.masterwebsoftware.com/free-translation-script/translate/brazilian.gif" width="30" height="20" border="0"/></a></td>
<td><a href="javascript:var t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection &&document.selection.createRange&&document.selection.createRange().text));var e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/translate_t?text='+t+'&hl=en&langpair=en|zh-CN&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&hl=en&langpair=en|zh-CN&tbb=1&ie='+e;};" title="Chinese"><img src="http://www.masterwebsoftware.com/free-translation-script/translate/chinese.gif" width="30" height="20" border="0"/></a></td>
<td><a href="javascript:var t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection &&document.selection.createRange&&document.selection.createRange().text));var e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/translate_t?text='+t+'&hl=en&langpair=en|it&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&hl=en&langpair=en|it&tbb=1&ie='+e;};" title="Italian"><img src="http://www.masterwebsoftware.com/free-translation-script/translate/italian.gif" width="30" height="20" border="0"/></a></td>
<td><a href="javascript:var t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection &&document.selection.createRange&&document.selection.createRange().text));var e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/translate_t?text='+t+'&hl=en&langpair=en|ru&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&hl=en&langpair=en|ru&tbb=1&ie='+e;};" title="Russian"><img src="http://www.masterwebsoftware.com/free-translation-script/translate/russian.gif" width="30" height="20" border="0"/></a></td>
<td><a href="javascript:var t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection &&document.selection.createRange&&document.selection.createRange().text));var e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/translate_t?text='+t+'&hl=en&langpair=en|ja&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&hl=en&langpair=en|ja&tbb=1&ie='+e;};" title="Japanese"><img src="http://www.masterwebsoftware.com/free-translation-script/translate/japanese.gif" width="30" height="20" border="0"/></a></td>
<td><a href="javascript:var t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection &&document.selection.createRange&&document.selection.createRange().text));var e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/translate_t?text='+t+'&hl=en&langpair=en|es&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&hl=en&langpair=en|es&tbb=1&ie='+e;};" title="Spanish"><img src="http://www.masterwebsoftware.com/free-translation-script/translate/spanish.gif" width="30" height="20" border="0"/></a></td>
<td><a href="javascript:var t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection &&document.selection.createRange&&document.selection.createRange().text));var e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/translate_t?text='+t+'&hl=en&langpair=en|fr&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&hl=en&langpair=en|fr&tbb=1&ie='+e;};" title="French"><img src="http://www.masterwebsoftware.com/free-translation-script/translate/french.gif" width="30" height="20" border="0"/></a></td>
<td><a href="javascript:var t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection &&document.selection.createRange&&document.selection.createRange().text));var e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/translate_t?text='+t+'&hl=en&langpair=en|ko&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&hl=en&langpair=en|ko&tbb=1&ie='+e;};" title="Korean"><img src="http://www.masterwebsoftware.com/free-translation-script/translate/korean.gif" width="30" height="20" border="0"/></a></td>
<td><a href="javascript:var t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection &&document.selection.createRange&&document.selection.createRange().text));var e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/translate_t?text='+t+'&hl=en&langpair=en|nl&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&hl=en&langpair=en|nl&tbb=1&ie='+e;};" title="Dutch"><img src="http://www.masterwebsoftware.com/free-translation-script/translate/dutch.gif" width="30" height="20" border="0"/></a></td>
<td><a href="javascript:var t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection &&document.selection.createRange&&document.selection.createRange().text));var e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/translate_t?text='+t+'&hl=en&langpair=en|el&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&hl=en&langpair=en|el&tbb=1&ie='+e;};" title="Greek"><img src="http://www.masterwebsoftware.com/free-translation-script/translate/greek.gif" width="30" height="20" border="0"/></a></td>
<td><a href="javascript:var t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection &&document.selection.createRange&&document.selection.createRange().text));var e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/translate_t?text='+t+'&hl=en&langpair=en|pt&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&hl=en&langpair=en|pt&tbb=1&ie='+e;};" title="Greek"><img src="http://www.masterwebsoftware.com/free-translation-script/translate/portuguese.gif" width="30" height="20" border="0"/></a></td>
</tr>
</table>
فى اى صفحة تريد ترجمتها
اول لو كنت تستخدم سكربت ايا كان فقط ضع الكود فى الهيدر
انتظروا قريبا سكربت بسيط يقوم بترجمة موقعك للعديد مع اللغات + ارشفة اللغات فى محرك البحث مع صفحاتك وبالتالى تزداد الصفحات المؤرشفة لموقع 10 اضعاف واكثر
MtRp