Colocar tradutor no seu fórum
Olá, pessoal! Já faz algumas semanas que não posto um tutorial pra vocês. Mas como o @JScript criou essa área, eu resolvi inaugurá-la com um!
O código é simples, basta adicionar um widget sem table type, ou no template overall_header antes de </head>.Antes de seguir com este tuto, vocês devem saber que o tradutor joga o fórum para o app Google Tradutor. Com isso, os cookies não podem ser gerados fazendo com que você acesse a página deslogado. Então o interessante é usar esse tradutor se as permissões de seu fórum estejam abertas aos visitantes.
Vou deixar duas opções:
Se você quer no canto superior, o código será esse:
- Código:
<div style="position:absolute;top:0px;right:5px;float:right;text-align:center;">
<!--–GOOGLE TRANSLATE MINI FLAGS–--><div align="center"><!--– Add Portuguese to Chinese (Simplified) BETA –--><a title="Chinese" onclick="window.open('http://www.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=pt%7Czh-CN&hl=pt&ie=UTF8'); return false;" rel="nofollow" target="_self"><img title="Chinese" src="http://lh5.ggpht.com/_mcq01yDJ2uY/Sdke4C8za2I/AAAAAAAAAkU/Mpfn_ntCweU/China.png" alt="Chinese" style="border: 0px solid ; cursor: pointer; width: 32px; height: 32px;"><!--– END Portuguese to Chinese (Simplified) BETA–--><!--– Add Portuguese to French –--></a><a title="French " onclick="window.open('http://www.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=pt%7Cfr&hl=pt&ie=UTF8'); return false;" rel="nofollow" target="_self"><img title="French" src="http://lh4.ggpht.com/_mcq01yDJ2uY/SdkfGSkRgfI/AAAAAAAAAkc/X4E87SASLtA/France.png" alt="French" style="border: 0px solid ; cursor: pointer; width: 32px; height: 32px;"><!--– END Portuguese to French –--><!--– Add Portuguese to German –--></a><a title="German" onclick="window.open('http://www.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=pt%7Cde&hl=pt&ie=UTF8'); return false;" rel="nofollow" target="_self"><img title="German" src="http://lh3.ggpht.com/_mcq01yDJ2uY/Sdke3rFjMUI/AAAAAAAAAkE/o0kR0MfngXA/Germany.png" alt="German" style="border: 0px solid ; cursor: pointer; width: 32px; height: 32px;"><!--– END Portuguese to German –--><!--– Add Portuguese to Italian –--></a><a title="Italian" onclick="window.open('http://www.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=pt%7Cit&hl=pt&ie=UTF8'); return false;" rel="nofollow" target="_self"><img title="Italian" src="http://lh3.ggpht.com/_mcq01yDJ2uY/Sdke2xCmrPI/AAAAAAAAAj0/Jv14yyDo1i4/Italy.png" style="border: 0px solid ; cursor: pointer; width: 32px; height: 32px;" alt="Italian"><!--– END Portuguese to Italian –--><!--– Add Portuguese to Japanese BETA –--></a><a title="Japanese" onclick="window.open('http://www.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=pt%7Cja&hl=pt&ie=UTF8'); return false;" rel="nofollow" target="_self"><img title="Japanese" src="http://lh5.ggpht.com/_mcq01yDJ2uY/Sdke3f2KbNI/AAAAAAAAAj8/xyGLFdUZbVY/Japan.png" alt="Japanese" style="border: 0px solid ; cursor: pointer; width: 32px; height: 32px;"><!--– END Portuguese to Japanese BETA –--><!--– Add Portuguese to English –--></a><a title="English " onclick="window.open('http://www.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=pt%7Cen&en=pt&en=UTF8'); return false;" rel="nofollow" target="_self"><img title="English" src="http://lh4.ggpht.com/_mcq01yDJ2uY/SdkhG4bjxqI/AAAAAAAAAks/Ws6AzZdnZTw/United%20States%20of%20America%20%28USA%29.png" alt="English" style="border: 0px solid ; cursor: pointer; width: 32px; height: 32px;"><!--– END Portuguese to English –--><!--– Add Portuguese to Russian BETA –--></a><a title="Russian" onclick="window.open('http://www.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=pt%7Cru&hl=pt&ie=UTF8'); return false;" rel="nofollow" target="_self"><img title="Russian" src="http://lh5.ggpht.com/_mcq01yDJ2uY/SdkfGVESWsI/AAAAAAAAAkk/-ruu99vFElQ/Russian%20Federation.png" alt="Russian" style="border: 0px solid ; cursor: pointer; width: 32px; height: 32px;"><!--– END Portuguese to Russian BETA –--><!--– Add Portuguese to Spanish –--></a><a title="Spanish " onclick="window.open('http://www.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=pt%7Ces&hl=pt&ie=UTF8'); return false;" rel="nofollow" target="_self"><img title="Spanish" src="http://lh3.ggpht.com/_mcq01yDJ2uY/Sdke312ethI/AAAAAAAAAkM/KeACgltRc38/Spain.png" alt="Spanish" style="border: 0px solid ; cursor: pointer; width: 32px; height: 32px;"><!--– END Portuguese to Spanish –-->
</a></div></div>
- Código:
<div style="position:relative;bottom:0px;right:5px;float:right;text-align:center;">
<!--–GOOGLE TRANSLATE MINI FLAGS–--><div align="center"><!--– Add Portuguese to Chinese (Simplified) BETA –--><a title="Chinese" onclick="window.open('http://www.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=pt%7Czh-CN&hl=pt&ie=UTF8'); return false;" rel="nofollow" target="_self"><img title="Chinese" src="http://lh5.ggpht.com/_mcq01yDJ2uY/Sdke4C8za2I/AAAAAAAAAkU/Mpfn_ntCweU/China.png" alt="Chinese" style="border: 0px solid ; cursor: pointer; width: 32px; height: 32px;"><!--– END Portuguese to Chinese (Simplified) BETA–--><!--– Add Portuguese to French –--></a><a title="French " onclick="window.open('http://www.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=pt%7Cfr&hl=pt&ie=UTF8'); return false;" rel="nofollow" target="_self"><img title="French" src="http://lh4.ggpht.com/_mcq01yDJ2uY/SdkfGSkRgfI/AAAAAAAAAkc/X4E87SASLtA/France.png" alt="French" style="border: 0px solid ; cursor: pointer; width: 32px; height: 32px;"><!--– END Portuguese to French –--><!--– Add Portuguese to German –--></a><a title="German" onclick="window.open('http://www.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=pt%7Cde&hl=pt&ie=UTF8'); return false;" rel="nofollow" target="_self"><img title="German" src="http://lh3.ggpht.com/_mcq01yDJ2uY/Sdke3rFjMUI/AAAAAAAAAkE/o0kR0MfngXA/Germany.png" alt="German" style="border: 0px solid ; cursor: pointer; width: 32px; height: 32px;"><!--– END Portuguese to German –--><!--– Add Portuguese to Italian –--></a><a title="Italian" onclick="window.open('http://www.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=pt%7Cit&hl=pt&ie=UTF8'); return false;" rel="nofollow" target="_self"><img title="Italian" src="http://lh3.ggpht.com/_mcq01yDJ2uY/Sdke2xCmrPI/AAAAAAAAAj0/Jv14yyDo1i4/Italy.png" style="border: 0px solid ; cursor: pointer; width: 32px; height: 32px;" alt="Italian"><!--– END Portuguese to Italian –--><!--– Add Portuguese to Japanese BETA –--></a><a title="Japanese" onclick="window.open('http://www.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=pt%7Cja&hl=pt&ie=UTF8'); return false;" rel="nofollow" target="_self"><img title="Japanese" src="http://lh5.ggpht.com/_mcq01yDJ2uY/Sdke3f2KbNI/AAAAAAAAAj8/xyGLFdUZbVY/Japan.png" alt="Japanese" style="border: 0px solid ; cursor: pointer; width: 32px; height: 32px;"><!--– END Portuguese to Japanese BETA –--><!--– Add Portuguese to English –--></a><a title="English " onclick="window.open('http://www.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=pt%7Cen&en=pt&en=UTF8'); return false;" rel="nofollow" target="_self"><img title="English" src="http://lh4.ggpht.com/_mcq01yDJ2uY/SdkhG4bjxqI/AAAAAAAAAks/Ws6AzZdnZTw/United%20States%20of%20America%20%28USA%29.png" alt="English" style="border: 0px solid ; cursor: pointer; width: 32px; height: 32px;"><!--– END Portuguese to English –--><!--– Add Portuguese to Russian BETA –--></a><a title="Russian" onclick="window.open('http://www.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=pt%7Cru&hl=pt&ie=UTF8'); return false;" rel="nofollow" target="_self"><img title="Russian" src="http://lh5.ggpht.com/_mcq01yDJ2uY/SdkfGVESWsI/AAAAAAAAAkk/-ruu99vFElQ/Russian%20Federation.png" alt="Russian" style="border: 0px solid ; cursor: pointer; width: 32px; height: 32px;"><!--– END Portuguese to Russian BETA –--><!--– Add Portuguese to Spanish –--></a><a title="Spanish " onclick="window.open('http://www.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=pt%7Ces&hl=pt&ie=UTF8'); return false;" rel="nofollow" target="_self"><img title="Spanish" src="http://lh3.ggpht.com/_mcq01yDJ2uY/Sdke312ethI/AAAAAAAAAkM/KeACgltRc38/Spain.png" alt="Spanish" style="border: 0px solid ; cursor: pointer; width: 32px; height: 32px;"><!--– END Portuguese to Spanish –-->
</a></div></div>
Última edição por JScript em Sex 27 Set 2013, 3:12 pm, editado 2 vez(es)