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

Last change on this file since 250 was 249, checked in by luc, 9 years ago

Client:

  • Aggiornato blocchi laterali
  • Correzione votanti per Referendum
  • Altre modifiche
File size: 8.0 KB
Line 
1<?php
2/************************************************************************/
3/* Google Translation */
4/* ultimo agg 7 feb 2016 */
5/************************************************************************/
6# configurazione
7global $siteurl;
8//$url=str_replace("http://","",$siteurl);
9$url = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
10//$url = "elezioni.guidonia.org"; //// url del sito se inserito a mano
11$lingua = "it"; //// lingua di provenienza
12$titolo = "Translation";
13
14
15echo "<h5>$titolo</h5>";
16echo "<div style=\"text-align:center;\">";
17echo "<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> ";
18echo "<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> ";
19echo "<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> ";
20echo "<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> ";
21echo "<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> ";
22
23
24
25echo "<select onchange=\"window.location.href=this.options[this.selectedIndex].value\"><option value=\"\">--Select--</option>";
26echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=sq&amp;u=http%3A%2F%2F$url\">Albanian</option>";
27echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=ar&amp;u=http%3A%2F%2F$url\">Arabic</option>";
28echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=bg&amp;u=http%3A%2F%2F$url\">Bulgarian</option>";
29echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=ca&amp;u=http%3A%2F%2F$url\">Catalan</option>";
30echo "<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>";
31echo "<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>";
32echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=hr&amp;u=http%3A%2F%2F$url\">Croatian</option>";
33echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=cs&amp;u=http%3A%2F%2F$url\">Czech</option>";
34echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=da&amp;u=http%3A%2F%2F$url\">Danish</option>";
35echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=nl&amp;u=http%3A%2F%2F$url\">Dutch</option>";
36echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=en&amp;u=http%3A%2F%2F$url\">English</option>";
37echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=et&amp;u=http%3A%2F%2F$url\">Estonian</option>";
38echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=tl&amp;u=http%3A%2F%2F$url\">Filipino</option>";
39echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=fi&amp;u=http%3A%2F%2F$url\">Finnish</option>";
40echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=fr&amp;u=http%3A%2F%2F$url\">French</option>";
41echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=gl&amp;u=http%3A%2F%2F$url\">Galician</option>";
42echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=de&amp;u=http%3A%2F%2F$url\">German</option>";
43echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=el&amp;u=http%3A%2F%2F$url\">Greek</option>";
44echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=iw&amp;u=http%3A%2F%2F$url\">Hebrew</option>";
45echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=hi&amp;u=http%3A%2F%2F$url\">Hindi</option>";
46echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=hu&amp;u=http%3A%2F%2F$url\">Hungarian</option>";
47echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=id&amp;u=http%3A%2F%2F$url\">Indonesian</option>";
48echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=it&amp;u=http%3A%2F%2F$url\">Italian</option>";
49echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=ja&amp;u=http%3A%2F%2F$url\">Japanese</option>";
50echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=ko&amp;u=http%3A%2F%2F$url\">Korean</option>";
51echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=lv&amp;u=http%3A%2F%2F$url\">Latvian</option>";
52echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=lt&amp;u=http%3A%2F%2F$url\">Lithuanian</option>";
53echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=mt&amp;u=http%3A%2F%2F$url\">Maltese</option>";
54echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=no&amp;u=http%3A%2F%2F$url\">Norwegian</option>";
55echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=fa&amp;u=http%3A%2F%2F$url\">Persian</option>";
56echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=pl&amp;u=http%3A%2F%2F$url\">Polish</option>";
57echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=pt&amp;u=http%3A%2F%2F$url\">Portuguese</option>";
58echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=ro&amp;u=http%3A%2F%2F$url\">Romanian</option>";
59echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=ru&amp;u=http%3A%2F%2F$url\">Russian</option>";
60echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=sr&amp;u=http%3A%2F%2F$url\">Serbian</option>";
61echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=sk&amp;u=http%3A%2F%2F$url\">Slovak</option>";
62echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=sl&amp;u=http%3A%2F%2F$url\">Slovenian</option>";
63echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=es&amp;u=http%3A%2F%2F$url\">Spanish</option>";
64echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=sv&amp;u=http%3A%2F%2F$url\">Swedish</option>";
65echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=th&amp;u=http%3A%2F%2F$url\">Thai</option>";
66echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=tr&amp;u=http%3A%2F%2F$url\">Turkish</option>";
67echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=uk&amp;u=http%3A%2F%2F$url\">Ukrainian</option>";
68echo "<option value=\"http://translate.google.com/translate?hl=$lingua&amp;sl=it&amp;tl=vi&amp;u=http%3A%2F%2F$url\">Vietnamese</option>";
69echo "</select>";
70//echo "<hr/><a href=\"http://translate.google.com/translate?hl=&amp;sl=it&amp;tl=it&amp;u=http%3A%2F%2F$url\">Torna alla lingua originale</a>";
71echo "</div>";
72
73
74?>
Note: See TracBrowser for help on using the repository browser.