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