source: trunk/client/modules/Elezioni/blocchi/translation.php@ 227

Last change on this file since 227 was 130, checked in by eol, 13 years ago

widget rss e traslazione

File size: 7.7 KB
Line 
1<?php
2/************************************************************************/
3/* Google Translation */
4/* */
5/************************************************************************/
6# configurazione
7$url = "elezioni.guidonia.org"; //// url del sito
8$lingua = "it"; //// lingua di provenienza
9$titolo = "Translation";
10
11
12echo "<h5>$titolo</h5>";
13echo "<div style=\"text-align:center;\">";
14echo "<a href=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=en&amp;u=http%3A%2F%2F$url\"><img style=\"border:0px\" src=\"modules/Elezioni/images/language/United-States.png\" title=\"English\" alt=\"English\" width=\"30\"/></a> ";
15echo "<a href=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=es&amp;u=http%3A%2F%2F$url\"><img style=\"border:0px\" src=\"modules/Elezioni/images/language/Spain.png\" title=\"Spanish\" alt=\"Spanish\" width=\"30\"/></a> ";
16echo "<a href=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=ro&amp;u=http%3A%2F%2F$url\"><img style=\"border:0px\" src=\"modules/Elezioni/images/language/Romania.png\" title=\"Romanian\" alt=\"Romanian\" width=\"30\"/></a> ";
17echo "<a href=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=de&amp;u=http%3A%2F%2F$url\"><img style=\"border:0px\" src=\"modules/Elezioni/images/language/Germany.png\" title=\"Germany\" alt=\"Germany\" width=\"30\"/></a> ";
18echo "<a href=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=fr&amp;u=http%3A%2F%2F$url\"><img style=\"border:0px\" src=\"modules/Elezioni/images/language/France.png\" title=\"France\" alt=\"France\" width=\"30\"/></a> ";
19
20
21
22echo "<select onchange=\"window.location.href=this.options[this.selectedIndex].value\"><option value=\"\">--Select--</option>";
23echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=sq&amp;u=http%3A%2F%2F$url\">Albanian</option>";
24echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=ar&amp;u=http%3A%2F%2F$url\">Arabic</option>";
25echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=bg&amp;u=http%3A%2F%2F$url\">Bulgarian</option>";
26echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=ca&amp;u=http%3A%2F%2F$url\">Catalan</option>";
27echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=zh-CN&amp;u=http%3A%2F%2F$url\">Chinese(Simp)</option>";
28echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=zh-TW&amp;u=http%3A%2F%2F$url\">Chinese(Trad)</option>";
29echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=hr&amp;u=http%3A%2F%2F$url\">Croatian</option>";
30echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=cs&amp;u=http%3A%2F%2F$url\">Czech</option>";
31echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=da&amp;u=http%3A%2F%2F$url\">Danish</option>";
32echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=nl&amp;u=http%3A%2F%2F$url\">Dutch</option>";
33echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=en&amp;u=http%3A%2F%2F$url\">English</option>";
34echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=et&amp;u=http%3A%2F%2F$url\">Estonian</option>";
35echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=tl&amp;u=http%3A%2F%2F$url\">Filipino</option>";
36echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=fi&amp;u=http%3A%2F%2F$url\">Finnish</option>";
37echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=fr&amp;u=http%3A%2F%2F$url\">French</option>";
38echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=gl&amp;u=http%3A%2F%2F$url\">Galician</option>";
39echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=de&amp;u=http%3A%2F%2F$url\">German</option>";
40echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=el&amp;u=http%3A%2F%2F$url\">Greek</option>";
41echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=iw&amp;u=http%3A%2F%2F$url\">Hebrew</option>";
42echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=hi&amp;u=http%3A%2F%2F$url\">Hindi</option>";
43echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=hu&amp;u=http%3A%2F%2F$url\">Hungarian</option>";
44echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=id&amp;u=http%3A%2F%2F$url\">Indonesian</option>";
45echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=it&amp;u=http%3A%2F%2F$url\">Italian</option>";
46echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=ja&amp;u=http%3A%2F%2F$url\">Japanese</option>";
47echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=ko&amp;u=http%3A%2F%2F$url\">Korean</option>";
48echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=lv&amp;u=http%3A%2F%2F$url\">Latvian</option>";
49echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=lt&amp;u=http%3A%2F%2F$url\">Lithuanian</option>";
50echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=mt&amp;u=http%3A%2F%2F$url\">Maltese</option>";
51echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=no&amp;u=http%3A%2F%2F$url\">Norwegian</option>";
52echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=fa&amp;u=http%3A%2F%2F$url\">Persian</option>";
53echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=pl&amp;u=http%3A%2F%2F$url\">Polish</option>";
54echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=pt&amp;u=http%3A%2F%2F$url\">Portuguese</option>";
55echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=ro&amp;u=http%3A%2F%2F$url\">Romanian</option>";
56echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=ru&amp;u=http%3A%2F%2F$url\">Russian</option>";
57echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=sr&amp;u=http%3A%2F%2F$url\">Serbian</option>";
58echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=sk&amp;u=http%3A%2F%2F$url\">Slovak</option>";
59echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=sl&amp;u=http%3A%2F%2F$url\">Slovenian</option>";
60echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=es&amp;u=http%3A%2F%2F$url\">Spanish</option>";
61echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=sv&amp;u=http%3A%2F%2F$url\">Swedish</option>";
62echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=th&amp;u=http%3A%2F%2F$url\">Thai</option>";
63echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=tr&amp;u=http%3A%2F%2F$url\">Turkish</option>";
64echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=uk&amp;u=http%3A%2F%2F$url\">Ukrainian</option>";
65echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=vi&amp;u=http%3A%2F%2F$url\">Vietnamese</option>";
66echo "</select>";
67echo "</div>";
68
69
70?>
Note: See TracBrowser for help on using the repository browser.