Acum o luna, Google a-mbogatit serviciul de traducere prin adaugarea a inca 11 limbi, pentru un total de 35 de limbi. Un prilej cum nu se poate mai nimerit de a republica widgetul de traducere cu steaguri.
UPDATE! Un nou widget, imbunatatit, va fi publicat cat de curand pe BlogIdol!Noile limbi anuntate in septembrie sunt: Catalan, Filipino, Hebrew, Indonesian, Latvian, Lithuanian, Serbian, Slovak, Slovenian, Ukrainian and Vietnamese. Acum mai putin de un an, situatia traducerilor gratis era trista. Majoritatea sistemelor fusesera licentiate de la Systran si erau bazate pe reguli fixe. Google a revolutionat traducerile introducand la scara larga (cum numai ei puteau) traducerile pe baze statistice. Desi la-nceput acestea vor fi eronate, cu timpul, si pe masura ce sunt corectate, ele se vor imbunatati.
Most state-of-the-art, commercial machine-translation systems in use today have been developed using a rule-based approach, and require a lot of work to define vocabularies and grammars. Our system takes a different approach: we feed the computer billions of words of text, both monolingual text in the target language, and aligned text consisting of examples of human translations between the languages. We then apply statistical learning techniques to build a translation model. (1)
Imediat ce Google a introdus traducerile statistice Microsoft au renuntat si ei la Systran si-au copiat modelul Google care oricum, nu era o idee noua (2). Windows Live Translator explica foarte bine limitatiile traducerilor automate (3):
automatic translation enables you to understand the gist of foreign language text, but is no substitute for a professional human translator if fluency is required
Cu alte cuvinte, traducerea automata iti permite sa intelegi despre ce-i vorba in fragmentul respectiv, dar nu-i un substitut pentru un traducator uman profesional.
Daca vrei vreodata ca parte din textul tau sa ramana netradus de Google, baga-l in class="notranslate", de pilda
<span class='notranslate'>Asta-i un citat Becali care-i bine sa ramana la noi acasa: "Baga-mi-as...".</span>.
<form action="http://www.google.com/translate"><!--Copiaza cu incredere codul asta. Un link spre asa.zamo.ca nu este obligatoriu, dar este respectuos cerut. O explicatie pe larg poate fi gasita la http://asa.zamo.ca/2008/10/11-limbi-in-plus-in-widgetul-de.html Singura conditie este sa lasi aceasta nota intacta, intrucat nu va fi vizibila.-->
<script language="JavaScript">
<!--
document.write ("<input name=u value="+location.href+" type=hidden>")
// -->
</script>
<input value="en" name="hl" type="hidden"/>
<input value="UTF8" name="ie" type="hidden"/>
<input value="" name="langpair" type="hidden"/>
<center>
<input onclick="this.form.langpair.value=this.value" title="Chinese Simplified" value="ro|zh-CN" type="image" height="20" src="http://www.google.com/images/flags/cn_flag.gif" width="30" name="langpair"/>
<input onclick="this.form.langpair.value=this.value" title="English" value="ro|en" type="image" height="40" src="http://www.google.com/images/flags/uk_flag.gif" width="50" name="langpair2"/>
<input onclick="this.form.langpair.value=this.value" title="Greek" value="ro|el" type="image" height="20" src="http://www.google.com/images/flags/gr_flag.gif" width="30" name="langpair"/>
<br/>
<input onclick="this.form.langpair.value=this.value" title="Hindu" value="ro|hi" type="image" height="20" src="http://www.google.com/images/flags/in_flag.gif" width="30" name="langpair2"/>
<input onclick="this.form.langpair.value=this.value" title="German" value="ro|de" type="image" height="20" src="http://www.google.com/images/flags/de_flag.gif" width="30" name="langpair"/>
<input onclick="this.form.langpair.value=this.value" title="Dutch" value="ro|nl" type="image" height="20" src="http://www.google.com/images/flags/nl_flag.gif" width="30" name="langpair2"/>
<input onclick="this.form.langpair.value=this.value" title="Russian" value="ro|ru" type="image" height="20" src="http://www.google.com/images/flags/ru_flag.gif" width="30" name="langpair2"/>
<input onclick="this.form.langpair.value=this.value" title="Bulgarian" value="ro|bg" type="image" height="20" src="http://www.google.com/images/flags/bg_flag.gif" width="30" name="langpair2"/>
<input onclick="this.form.langpair.value=this.value" title="Polish" value="ro|pl" type="image" height="20" src="http://www.google.com/images/flags/pl_flag.gif" width="30" name="langpair2"/>
<input onclick="this.form.langpair.value=this.value" title="Czech" value="ro|cs" type="image" height="20" src="http://www.google.com/images/flags/cz_flag.gif" width="30" name="langpair2"/>
<input onclick="this.form.langpair.value=this.value" title="Croatian" value="ro|hr" type="image" height="20" src="http://www.google.com/images/flags/hr_flag.gif" width="30" name="langpair2"/>
<input onclick="this.form.langpair.value=this.value" title="French" value="ro|fr" type="image" height="20" src="http://www.google.com/images/flags/fr_flag.gif" width="30" name="langpair"/>
<input onclick="this.form.langpair.value=this.value" title="Italian" value="ro|it" type="image" height="20" src="http://www.google.com/images/flags/it_flag.gif" width="30" name="langpair"/>
<input onclick="this.form.langpair.value=this.value" title="Portuguese" value="ro|pt" type="image" height="20" src="http://www.google.com/images/flags/pt_flag.gif" width="30" name="langpair"/>
<input onclick="this.form.langpair.value=this.value" title="Spanish" value="ro|es" type="image" height="20" src="http://www.google.com/images/flags/es_flag.gif" width="30" name="langpair"/>
<input onclick="this.form.langpair.value=this.value" title="Arabic" value="ro|ar" type="image" height="20" src="http://www.google.com/images/flags/sa_flag.gif" width="30" name="langpair2"/>
<input onclick="this.form.langpair.value=this.value" title="Japanese" value="ro|ja" type="image" height="20" src="http://www.google.com/images/flags/ja_flag.gif" width="30" name="langpair"/>
<input onclick="this.form.langpair.value=this.value" title="Korean" value="ro|ko" type="image" height="20" src="http://www.google.com/images/flags/kr_flag.gif" width="30" name="langpair"/>
<input onclick="this.form.langpair.value=this.value" title="Chinese (traditional)" value="en|zh-TW" type="image" height="20" src="http://www.google.com/images/flags/tw_flag.gif" width="30" name="langpair2"/>
<input onclick="this.form.langpair.value=this.value" title="Danish" value="ro|da" type="image" height="20" src="http://www.google.com/images/flags/dk_flag.gif" width="30" name="langpair2"/>
<input onclick="this.form.langpair.value=this.value" title="Finnish" value="ro|fi" type="image" height="20" src="http://www.google.com/images/flags/fi_flag.gif" width="30" name="langpair2"/>
<input onclick="this.form.langpair.value=this.value" title="Norwegian" value="ro|no" type="image" height="20" src="http://www.google.com/images/flags/no_flag.gif" width="30" name="langpair2"/>
<input onclick="this.form.langpair.value=this.value" title="Swedish" value="ro|sv" type="image" height="20" src="http://www.google.com/images/flags/se_flag.gif" width="30" name="langpair2"/>
<input onclick="this.form.langpair.value=this.value" title="Catalan" value="ro|ca" type="image" height="20" src="http://www.google.com/images/flags/cl_flag.gif" width="30" name="langpair2"/>
<input onclick="this.form.langpair.value=this.value" title="Filipino" value="ro|tl" type="image" height="20" src="http://www.google.com/images/flags/ph_flag.gif" width="30" name="langpair2"/>
<input onclick="this.form.langpair.value=this.value" title="Hebrew" value="ro|iw" type="image" height="20" src="http://www.google.com/images/flags/il_flag.gif" width="30" name="langpair2"/>
<input onclick="this.form.langpair.value=this.value" title="Indonesian" value="ro|id" type="image" height="20" src="http://www.google.com/images/flags/id_flag.gif" width="30" name="langpair2"/>
<input onclick="this.form.langpair.value=this.value" title="Latvian" value="ro|lv" type="image" height="20" src="http://www.google.com/images/flags/lv_flag.gif" width="30" name="langpair2"/>
<input onclick="this.form.langpair.value=this.value" title="Lithuanian" value="ro|lt" type="image" height="20" src="http://www.google.com/images/flags/lt_flag.gif" width="30" name="langpair2"/>
<input onclick="this.form.langpair.value=this.value" title="Serbian" value="ro|sr" type="image" height="20" src="http://www.google.com/images/flags/rs_flag.gif" width="30" name="langpair2"/>
<input onclick="this.form.langpair.value=this.value" title="Slovak" value="ro|sk" type="image" height="20" src="http://www.google.com/images/flags/sk_flag.gif" width="30" name="langpair2"/>
<input onclick="this.form.langpair.value=this.value" title="Slovenian" value="ro|sl" type="image" height="20" src="http://www.google.com/images/flags/si_flag.gif" width="30" name="langpair2"/>
<input onclick="this.form.langpair.value=this.value" title="Ukrainian" value="ro|uk" type="image" height="20" src="http://www.google.com/images/flags/ua_flag.gif" width="30" name="langpair2"/>
<input onclick="this.form.langpair.value=this.value" title="Vietnamese" value="ro|vi" type="image" height="20" src="http://www.google.com/images/flags/vn_flag.gif" width="30" name="langpair2"/>
<h6>Fura <u><a href='http://asa.zamo.ca/2008/10/11-limbi-in-plus-in-widgetul-de.html'>widget traduceri Zamo!</a></u></h6><!--Copiaza cu incredere codul asta. Nu-i necesar sa lasi acest ultim link vizibil, el poate fi sters - este insa apreciat.-->
</center>
</form>Iata si codul G (nu-i al meu!):
<!--script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/translatemypage.xml&up_source_language=ro&w=160&h=60&title=&border=&output=js"></script-->
Pentru a folosi acest cod in Blogger, te duci in Dashboard -> Layout -> Add Gadget -> HTML / JavaScript, apoi copy & paste codul de mai sus. Poti da ce titlu vrei si o poti muta oriunde. In Wordpress, din wp-admin (Dashboard) mergi in Design -> Theme Editor -> Templates -> r_sidebar.php (sau l_sidebar.php, dupa cum il vrei pe stanga sau pe dreapta). Gaseste un loc bun sa-i faci copy & paste, apasa Update File, si vezi ce-a iesit. Ajusteaza apoi daca e nevoie, daca nu, gaseste-l si scoate-l. Varianta noua poate fi vazuta in coltul din dreapta sus, cea originala pe Cracanel Excelsior Mutandis (WP).
Ca si varianta originala, codul este licentiat Creative Commons Attribution - asta-nseamna ca faci ce vrei cu el, poti chiar sa stergi anumite limbi care nu-ti plac, poti sa le schimbi ordinea, cata vreme lasi intacte creditele ascunse in cod. Un link vizibil catre acest blog este desigur apreciat, dar nu necesar.
M-am gandit sa reproduc si widgetul lui Hoctro. Spre deosebire de widgetul meu, cel al lui Hoctro poate fi mai greu introdus. De asemenea, este foarte asemanator in functionalitate cu widgetul Google, care este self-updating si care poate fi gasit in primul anunt al acestui script, in Modificari in josul paginii. Din pacate, atat widgetul Hoctro cat si cel Google forteaza link-uri catre paginile sursa. Widgetul meu ascunde creditele in codul sursa, care nu este vizibil in pagina (un link catre acest blog / pagina este sugerat dar nu fortat). Iata mai jos widgetul Hoctro, cu modificarile facute pentru pagini romanesti:
<b:widget id='HTML200' locked='false' title='Translate to your Language' type='HTML'>
<b:includable id='main'>
<!-- Translation Widget by Hoctro - 10/2008 - This note must not be deleted -->
<!-- only display title if it's non-empty -->
<b:if cond='data:title != ""'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content'>
<form action='http://translate.google.com/translate_c?'>
<table id='webtb'>
<tr><td> <select name='en' style='width: 8em;'>
<option value='ar'>Arabic</option>
<option value='bg'>Bulgarian</option>
<option value='ca'>Catalan</option>
<option value='zh-cn'>Chinese (Simplified)</option>
<option value='zh-tw'>Chinese (Traditional)</option>
<option value='hr'>Croatian</option>
<option value='cs'>Czech</option>
<option value='da'>Danish</option>
<option value='nl'>Dutch</option>
<option value='en'>English</option>
<option value='tl'>Filipino</option>
<option value='fi'>Finnish</option>
<option value='fr'>French</option>
<option value='de'>German</option>
<option value='el'>Greek</option>
<option value='iw'>Hebrew</option>
<option value='hi'>Hindi</option>
<option value='id'>Indonesian</option>
<option value='it'>Italian</option>
<option value='ja'>Japanese</option>
<option value='ko'>Korean</option>
<option value='lv'>Latvian</option>
<option value='lt'>Lithuanian</option>
<option value='no'>Norwegian</option>
<option value='pl'>Polish</option>
<option value='pt'>Portuguese</option>
<option value='ro'>Romanian</option>
<option value='ru'>Russian</option>
<option value='sr'>Serbian</option>
<option value='sk'>Slovak</option>
<option value='sl'>Slovenian</option>
<option value='es'>Spanish</option>
<option value='sv'>Swedish</option>
<option value='uk'>Ukrainian</option>
<option selected='vi' value='vi'>Vietnamese</option>
</select>
<input expr:value='data:blog.url' id='url' name='u' type='hidden'/>
<input name='sl' type='hidden' value='ro'/>
<input name='hl' type='hidden' value='en'/>
<input name='ie' type='hidden' value='UTF-8'/>
<input style='width: auto;' type='submit' value='Go'/>
</td></tr></table></form>
<h6>Widget by <u><a href='http://hoctro.blogspot.com/2008/10/new-translation-widget.html'>Hoctro</a></u></h6>
</div>
<b:include name='quickedit'/>
</b:includable>
</b:widget>
Majoritatea informatiilor gasite prin blogul lui Alex Chitu (4) si prin pagina de traduceri Google (5).
Surse
Widget 1.0 - http://asa.zamo.ca/2008/05/cum-sa-ti-traduci-blogul-in-20-de-limbi.html
1. http://www.google.com/intl/en/help/faq_translation.html
3. http://www.windowslivetranslator.com/
4. http://googlesystem.blogspot.com/2008/09/more-languages-in-google-translate.html
5. http://www.google.com/language_tools
20090810 UPDATE: Vrei mai multe articole tehnice pentru Blogger / Blogspot? Este modificarea de aici curenta, sau am facut una noua, cu acelasi efect, dar mai buna? Toate modificarile aduse de mine acestui sablon (template) pot fi gasite in Zamolxis ChangeLog. Seria lucrand la fatada va gazdui de-acu’ incolo articole despre PR, media persuasion si eventual imaginea Romaniei.
Aici vei găsi ştiri inedite, articole hazoase, perspective originale in politică, societate, economie şi relaţii interumane. QUESTIONS (Intrebări)? We got Answers (Răspunsuri există)!