Difference between revisions of "Template:Translate"

From Enduro.team
Jump to: navigation, search
(Новая страница: «<html> <body> <?php if (isset($_COOKIE['googtrans'])) { $cookie_value = $_COOKIE["googtrans"]; } ?> <select class="translator notranslate" onchange="location = th…»)
 
m
Line 1: Line 1:
 
<html>
 
<html>
<body>
+
<script async src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit" type="text/javascript"></script>
<?php if (isset($_COOKIE['googtrans'])) { $cookie_value = $_COOKIE["googtrans"]; } ?>
 
 
<select class="translator notranslate" onchange="location = this.value;">
 
<select class="translator notranslate" onchange="location = this.value;">
<option class="trans-desc" value="#">🌐 Language</option>
+
    <option class="trans-desc" value="#">🌐 Language</option>
<option value="https://en.enduro.team<?php echo $_SERVER["REQUEST_URI"];?>" <?php if (isset($_COOKIE['googtrans'])) {if($cookie_value == "/ru/en") { ?> selected <?php }} ?> >🇬🇧 English</option>
+
    <option value="https://en.enduro.team/Main">🇬🇧 English</option>
<option value="https://enduro.team<?php echo $_SERVER["REQUEST_URI"];?>" <?php if (isset($_COOKIE['googtrans'])) {if($cookie_value == "/ru/ru") { ?> selected <?php }} ?> >🇷🇺 Русский</option>
+
<option value="https://enduro.team/Main">🇷🇺 Русский</option>
<option value="https://de.enduro.team<?php echo $_SERVER["REQUEST_URI"];?>" <?php if (isset($_COOKIE['googtrans'])) {if($cookie_value == "/ru/de") { ?> selected <?php }} ?> >🇩🇪 Deutsch</option>
+
<option value="https://enduro.team/Template:PN">🇩🇪 Deutsch</option>
<option value="https://es.enduro.team<?php echo $_SERVER["REQUEST_URI"];?>" <?php if (isset($_COOKIE['googtrans'])) {if($cookie_value == "/ru/es") { ?> selected <?php }} ?> >🇪🇸 Español</option>
+
    <option value="https://es.enduro.team/Main">🇪🇸 Español</option>
<option value="https://el.enduro.team<?php echo $_SERVER["REQUEST_URI"];?>" <?php if (isset($_COOKIE['googtrans'])) {if($cookie_value == "/ru/el") { ?> selected <?php }} ?> >🇬🇷 Ελληνικά</option>
+
<option value="https://el.enduro.team/Main">🇬🇷 Ελληνικά</option>
<option value="https://fr.enduro.team<?php echo $_SERVER["REQUEST_URI"];?>" <?php if (isset($_COOKIE['googtrans'])) {if($cookie_value == "/ru/fr") { ?> selected <?php }} ?> >🇫🇷 Français</option>
+
<option value="https://fr.enduro.team/Main">🇫🇷 Français</option>
<option value="https://hi.enduro.team<?php echo $_SERVER["REQUEST_URI"];?>" <?php if (isset($_COOKIE['googtrans'])) {if($cookie_value == "/ru/hi") { ?> selected <?php }} ?> >🇮🇳 Hindī</option>
+
<option value="https://hi.enduro.team/Main">🇮🇳 Hindī</option>
<option value="https://it.enduro.team<?php echo $_SERVER["REQUEST_URI"];?>" <?php if (isset($_COOKIE['googtrans'])) {if($cookie_value == "/ru/it") { ?> selected <?php }} ?> >🇮🇹 Italiano</option>
+
    <option value="https://it.enduro.team/Main">🇮🇹 Italiano</option>
<option value="https://he.enduro.team<?php echo $_SERVER["REQUEST_URI"];?>" <?php if (isset($_COOKIE['googtrans'])) {if($cookie_value == "/ru/iw") { ?> selected <?php }} ?> >🇮🇱 עִבְרִית</option>
+
<option value="https://he.enduro.team/Main">🇮🇱 עִבְרִית</option>
<option value="https://pl.enduro.team<?php echo $_SERVER["REQUEST_URI"];?>" <?php if (isset($_COOKIE['googtrans'])) {if($cookie_value == "/ru/pl") { ?> selected <?php }} ?> >🇵🇱 Polski</option>
+
    <option value="https://pl.enduro.team/Main">🇵🇱 Polski</option>
<option value="https://pt.enduro.team<?php echo $_SERVER["REQUEST_URI"];?>" <?php if (isset($_COOKIE['googtrans'])) {if($cookie_value == "/ru/pt") { ?> selected <?php }} ?> >🇵🇹 Português</option>
+
    <option value="https://pt.enduro.team/Main">🇵🇹 Português</option>
<option value="https://lv.enduro.team<?php echo $_SERVER["REQUEST_URI"];?>" <?php if (isset($_COOKIE['googtrans'])) {if($cookie_value == "/ru/lv") { ?> selected <?php }} ?> >🇱🇻 Latviešu</option>
+
<option value="https://lv.enduro.team/Main">🇱🇻 Latviešu</option>
<option value="https://lt.enduro.team<?php echo $_SERVER["REQUEST_URI"];?>" <?php if (isset($_COOKIE['googtrans'])) {if($cookie_value == "/ru/lt") { ?> selected <?php }} ?> >🇱🇹 Lietuvių</option>
+
    <option value="https://lt.enduro.team/Main">🇱🇹 Lietuvių</option>
<option value="https://tr.enduro.team<?php echo $_SERVER["REQUEST_URI"];?>" <?php if (isset($_COOKIE['googtrans'])) {if($cookie_value == "/ru/tr") { ?> selected <?php }} ?> >🇹🇷 Türkçe</option>
+
    <option value="https://tr.enduro.team/Main">🇹🇷 Türkçe</option>
<option value="https://cn.enduro.team<?php echo $_SERVER["REQUEST_URI"];?>" <?php if (isset($_COOKIE['googtrans'])) {if($cookie_value == "/ru/zh-CN") { ?> selected <?php }} ?> >🇨🇳 中文</option>
+
    <option value="https://cn.enduro.team/Main">🇨🇳 中文</option>
<option value="https://ko.enduro.team<?php echo $_SERVER["REQUEST_URI"];?>" <?php if (isset($_COOKIE['googtrans'])) {if($cookie_value == "/ru/ko") { ?> selected <?php }} ?> >🇰🇷 한국어</option>
+
    <option value="https://ko.enduro.team/Main">🇰🇷 한국어</option>
<option value="https://jp.enduro.team<?php echo $_SERVER["REQUEST_URI"];?>" <?php if (isset($_COOKIE['googtrans'])) {if($cookie_value == "/ru/ja") { ?> selected <?php }} ?> >🇯🇵 日本語</option>
+
    <option value="https://jp.enduro.team/Main">🇯🇵 日本語</option>
</select>
+
  </select>
</body>
 
 
</html>
 
</html>

Revision as of 16:41, 19 January 2021