PDA

View Full Version : کد جاوای ترجمه سایت



mrmmnb
یک شنبه 26 تیر 1390, 06:24 صبح
سلام
قبلا یه کد جاوا توی بوکمارک سیو کرده بودم که وقتی توی یه سایت اونو میزدم سایت رو ترجمه میکرد الان هر چی گشتم نبود کسی میدونه کدش چی میشه؟
اگه میشه کد به صورتی باشه که زبان سایت رو تشخیص بده و به فارسی ترجمه کنه و لی اگه نمیشه همچین کدی نوشت دو تا کد انگلیسی به فارسی و ایتالیایی به فارس باشه
با تشکر

mrmmnb
یک شنبه 26 تیر 1390, 06:39 صبح
خودم پیدا کردم
برا دوستانی که ممکنه نیاز پیدا کنن
کافیه ادرس های زیر توی بوکمارک مرورگر سیو بشن بعدش توی هر سایتی با زدن اون سایت ترجمه میشه

از هر زبانی که انگلیسی(خودش زبان سایت رو تشخیص میده)

javascript:var%20t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection&&document.selection.createRange&&document.selection.createRange().text));var%20e=(d ocument.charset||document.characterSet);if(t!=''){ location.href='http://translate.google.com/?text='+t+'&hl=en&langpair=auto|en&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&hl=en&langpair=auto|en&tbb=1&ie='+e;};

از هر زبان که فارسی(خودش زبان سایت رو تشخیص میده)

javascript:var%20t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection&&document.selection.createRange&&document.selection.createRange().text));var%20e=(d ocument.charset||document.characterSet);if(t!=''){ location.href='http://translate.google.com/?text='+t+'&hl=en&langpair=auto|fa&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&hl=en&langpair=auto|fa&tbb=1&ie='+e;};