• Pagina 1 din 1
  • 1
Limba Site
LuncaCernii
Postări: 89
Reputație: -1
Mesaj # 1 | 7:18 PM
In acest moment Site-ul meu e in Romana, dar vreau sa mai adaug cel putin 2 limbi pentru site. Undeva sus sa poata alege cine intra pe site in ce limba sa fie site-ul nu niste stegulete...bineinteles daca se poate, ceva script sau ce trebuie sa fac?
ArtyRo
Postări: 3502
Reputație: 140
Mesaj # 2 | 7:35 PM
LuncaCernii, nu se poate, doar prin google translate care nu ofera o traducere calitatitva
LuncaCernii
Postări: 89
Reputație: -1
Mesaj # 3 | 7:43 PM
Ok, Multumesc...era treaba ca in fiecare an in regiunea din site-ul meu, se aduna nemti, maghiari cu crossuri, autovehicule 4x4 si daca vreau ceva mai multe informatii despre loc gaseau acolo...
Devil
Postări: 1235
Reputație: 54
Mesaj # 4 | 7:55 PM
LuncaCernii, unde vrei sa apara pui codul:

Code
<link rel="stylesheet" type="text/css" href="http://devil-scripts.do.am/roteme/translation/romestyle.css">   
   <script type="text/javascript" src="http://devil-scripts.do.am/roteme/translation/rome.js"></script>   
   <div class="chromestyle" id="chromemenu">   
   <ul>   
   <li><a href="http://devil-scripts.do.am/roteme/translation/button.html" rel="dropmenu2" onclick="window.open('http://romale80.ucoz.ru/translation/button.html', '_blank', 'width=600,height=500,top=100,left=100,resizable=1,scrollbars=yes');return(false);" target="_blank"></a></li>   
   </ul>   
   </div>   
   <div id="dropmenu1" class="dropmenudiv">   
   </div>   
   <div id="dropmenu2" class="dropmenudiv" style="width: 300px;">   
   <form action="http://www.google.com/translate">   
   <script language="JavaScript">   
   document.write ("<input name=u value="+location.href+" type=hidden>")   
   </script>   
   <input value="ro" name="hl" type="hidden">   
   <input value="UTF8" name="ie" type="hidden">   
   <input value="" name="langpair" type="hidden"><div align="center"><span style="font-size: 8pt;"><b>Select language:</b></span></div>   
   <table style="border-collapse: collapse; width: 100%;"><tbody><tr><td>   
   <input onclick="this.form.langpair.value=this.value" title="Ukranian" value="ro|uk" src="http://romale80.ucoz.ru/translation/images/Ukraine.png" name="langpair" type="image"><span style="font-family: Courier New; font-size: 8pt; padding-left: 3px;">Ukranian</span><BR>   
   <input onclick="this.form.langpair.value=this.value" title="English" value="ro|en" src="http://romale80.ucoz.ru/translation/images/Britain.png" name="langpair" type="image"><span style="font-family: Courier New; font-size: 8pt; padding-left: 3px;">English</span><BR>   
   <input onclick="this.form.langpair.value=this.value" title="French" value="ro|fr" src="http://romale80.ucoz.ru/translation/images/France.png" name="langpair" type="image"><span style="font-family: Courier New; font-size: 8pt; padding-left: 3px;">French</span><BR>   
   <input onclick="this.form.langpair.value=this.value" title="German" value="ro|de" src="http://romale80.ucoz.ru/translation/images/Germany.png" name="langpair" type="image"><span style="font-family: Courier New; font-size: 8pt; padding-left: 3px;">German</span><BR>   
   <input onclick="this.form.langpair.value=this.value" title="Japanese" value="ro|ja" src="http://romale80.ucoz.ru/translation/images/japan.png" name="langpair" type="image"><span style="font-family: Courier New; font-size: 8pt; padding-left: 3px;">Japanese</span><BR>   
   <input onclick="this.form.langpair.value=this.value" title="Italian" value="ro|it" src="http://romale80.ucoz.ru/translation/images/Italy.png" name="langpair" type="image"><span style="font-family: Courier New; font-size: 8pt; padding-left: 3px;">Italian</span><BR>   
   <input onclick="this.form.langpair.value=this.value" title="Portuguese" value="ro|pt" src="http://romale80.ucoz.ru/translation/images/Portugal.png" name="langpair" type="image"><span style="font-family: Courier New; font-size: 8pt; padding-left: 3px;">Portuguese</span>   
   </td><td>   
   <input onclick="this.form.langpair.value=this.value" title="Spanish" value="ro|es" src="http://romale80.ucoz.ru/translation/images/Spain.png" name="langpair" type="image"><span style="font-family: Courier New; font-size: 8pt; padding-left: 3px;">Spanish</span><BR>   
   <input onclick="this.form.langpair.value=this.value" title="Danish" value="ro|da" src="http://romale80.ucoz.ru/translation/images/Denmark.png" name="langpair" type="image"><span style="font-family: Courier New; font-size: 8pt; padding-left: 3px;">Danish</span><BR>   
   <input onclick="this.form.langpair.value=this.value" title="Chinese" value="ro|zh-CN" src="http://romale80.ucoz.ru/translation/images/China.png" name="langpair" type="image"><span style="font-family: Courier New; font-size: 8pt; padding-left: 3px;">Chinese</span><BR>   
   <input onclick="this.form.langpair.value=this.value" title="Korean" value="ro|ko" src="http://romale80.ucoz.ru/translation/images/Korea.png" name="langpair" type="image"><span style="font-family: Courier New; font-size: 8pt; padding-left: 3px;">Korean</span><BR>   
   <input onclick="this.form.langpair.value=this.value" title="Arabic" value="ro|ar" src="http://romale80.ucoz.ru/translation/images/Arab.png" name="langpair" type="image"><span style="font-family: Courier New; font-size: 8pt; padding-left: 3px;">Arabic</span><BR>   
   <input onclick="this.form.langpair.value=this.value" title="Czech" value="ro|cs" src="http://romale80.ucoz.ru/translation/images/Czech.png" name="langpair" type="image"><span style="font-family: Courier New; font-size: 8pt; padding-left: 3px;">Czech</span><BR>   
   <input onclick="this.form.langpair.value=this.value" title="Estonian" value="ro|et" src="http://romale80.ucoz.ru/translation/images/Estonia.png" name="langpair" type="image"><span style="font-family: Courier New; font-size: 8pt; padding-left: 3px;">Estonian</span>   
   </td><td>   
   <input onclick="this.form.langpair.value=this.value" title="Belarusian" value="ro|be" src="http://romale80.ucoz.ru/translation/images/Belarus.png" name="langpair" type="image"><span style="font-family: Courier New; font-size: 8pt; padding-left: 3px;">Belarusian</span><BR>   
   <input onclick="this.form.langpair.value=this.value" title="Latvian" value="ro|lv" src="http://romale80.ucoz.ru/translation/images/Latvia.png" name="langpair" type="image"><span style="font-family: Courier New; font-size: 8pt; padding-left: 3px;">Latvian</span><BR>   
   <input onclick="this.form.langpair.value=this.value" title="Greek" value="ro|el" src="http://romale80.ucoz.ru/translation/images/Greece.png" name="langpair" type="image"><span style="font-family: Courier New; font-size: 8pt; padding-left: 3px;">Greek</span><BR>   
   <input onclick="this.form.langpair.value=this.value" title="Finnish" value="ro|fi" src="http://romale80.ucoz.ru/translation/images/Finland.png" name="langpair" type="image"><span style="font-family: Courier New; font-size: 8pt; padding-left: 3px;">Finnish</span><BR>   
   <input onclick="this.form.langpair.value=this.value" title="Serbian" value="ro|sr" src="http://romale80.ucoz.ru/translation/images/Serbia.png" name="langpair" type="image"><span style="font-family: Courier New; font-size: 8pt; padding-left: 3px;">Serbian</span><BR>   
   <input onclick="this.form.langpair.value=this.value" title="Bulgarian" value="ro|bg" src="http://romale80.ucoz.ru/translation/images/Bulgaria.png" name="langpair" type="image"><span style="font-family: Courier New; font-size: 8pt; padding-left: 3px;">Bulgarian</span><BR>   
   <input onclick="this.form.langpair.value=this.value" title="Turkish" value="ro|tr" src="http://romale80.ucoz.ru/translation/images/Turkey.png" name="langpair" type="image"><span style="font-family: Courier New; font-size: 8pt; padding-left: 3px;">Turkish</span>   
   </form></td></tr></tbody></table>   
   <div align="center"><a href="http://devil-scripts.do.am/roteme/translation/button.html" onclick="window.open('http://devil-scripts.do.am/roteme/translation/button.html', '_blank', 'width=600,height=500,top=100,left=100,resizable=1,scrollbars=yes');return(false);" target="_blank"><b><span style="font-size: 7pt;">Get button</span></b></a></div>   
   </div>   
   <script type="text/javascript">   
   cssdropdown.startchrome("chromemenu")   
   </script>

Sper sa te ajute happy

LuncaCernii
Postări: 89
Reputație: -1
Mesaj # 5 | 9:50 PM
ok, am incercat, dar prima data dau sa spun in germana, mi-l traduce, dupa dau in alta limba imi da eroare...dau reincarcare pagina si dau pe alta limba din nou imi apare iar eroare...

acum sa vad, daca nu sa invete romana ::))

cnusi
Postări: 87
Reputație: 0
Mesaj # 6 | 8:49 PM
eu folosesc acest cod si imi merge perfect

Code
<div id="google_translate_element"></div><script>
function googleTranslateElementInit() {
  new google.translate.TranslateElement({
  pageLanguage: 'ro',
  multilanguagePage: true,
  layout: google.translate.TranslateElement.InlineLayout.SIMPLE
  }, 'google_translate_element');
}
</script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

LuncaCernii
Postări: 89
Reputație: -1
Mesaj # 7 | 8:56 PM
Ok, incerc sa-l pun...O intrebare: acest cod trebuie pus doar unde il ai tu? sau in fiecare pagina care vreau tradusa?
43arin
Postări: 178
Reputație: 8
Mesaj # 8 | 9:01 PM
LuncaCernii, unde se va vedea aceea va traduce..
cnusi
Postări: 87
Reputație: 0
Mesaj # 9 | 8:39 PM
Quote (LuncaCernii)
Ok, incerc sa-l pun...O intrebare: acest cod trebuie pus doar unde il ai tu? sau in fiecare pagina care vreau tradusa?


adauga codul intr-o sectiune si iti va traduce orice pagina

IANN
Postări: 3
Reputație: 0
Mesaj # 10 | 7:27 PM
Salutare,
Doresc sa pun si eu pe site-ul meu buton de limba, pentru moment am setat pe romana si nu am nicaieri buton de schimbare a limbii, dar vreau sa am si engleza si eventual rusa. Am vazut mai sus ca in afara de google translate nu prea este posibil. Ma poate ajuta cineva sa pun 2 butoane de limba engleza si rusa, si sa traduc eu singur continutul de pe fiecare pagina???
Problema este ca sunt clasa zero si nu prea o sa inteleg daca e prea complicat.
Multumesc
  • Pagina 1 din 1
  • 1
Căutare: