uCoz Community uCoz Modules Forum Translation of forum body (translation script) |
Translation of forum body |
Hello, I'm coming from the Netherlands and I want to make a site.
I've put a forum into my site, but I want to change "threads" in "onderwerpen" (onderwerpen is dutch for threads). I also want to change "replies" in "berichten" and "updates" in "nieuwe berichten" Do you know how I can change that... I'm desperate. I hope you can help me |
Davidkuyt, unfortunately some forum phrases are currently impossible to change with the help of system means.
Here is a script that might help (this is for a "additional information", but you can change it for other phrases as well)
Quote <script> x = document.getElementsByTagName('td') for(i=0;i<=x.length;i++){ if(x[i].className=='gTableTop') x[i].innerHTML=x[i].innerHTML.replace('Additional information','Dutch phrase') } </script> td - a tag that contains the necessary text I'm not active on the forum anymore. Please contact other forum staff.
|
tellmi ho tu finde this tu chenge
Quote (Sunny) <script> x = document.getElementsByTagName('td') for(i=0;i<=x.length;i++){ if(x[i].className=='gTableTop') x[i].innerHTML=x[i].innerHTML.replace('Additional information','Dutch phrase') } </script> www.qMpGrup.com
|
Ho tu put this
Quote (barc00de) <script> x = document.getElementsByTagName('td') for(i=0;i<=x.length;i++){ if(x[i].className=='gTableTop') x[i].innerHTML=x[i].innerHTML.replace('Additional information','Dutch phrase') } </script> www.qMpGrup.com
|
Can someone explane me like on this page http://www.forum.ucoz.com/forum/9-2441-1 , when you explain pictorial CSS codes for this pages down,becosue I want to translate all of my site pages...
Member list: http://cg-gaming.me/forum/0-0-1-35
Tnx advance.. Post edited by nenop - Saturday, 2009-08-29, 4:34 AM
|
You can translate, using the script above.
I translated all my forum, but "message from" and "thread" I could not. I'll provide the entire code I used to translate my forum, just copy and change my translations (Portuguese) for your language. If you do not know where to paste the code, follow the link I provided above.
Code <script> e=document.getElementsByTagName("TD"); for(i=0;i<e.length;i++) { if(e[i].className=='gTableBody1') { e[i].innerHTML=e[i].innerHTML.replace('All-time high attendance','Recorde de visitas'); e[i].innerHTML=e[i].innerHTML.replace('reached on','alcançado em'); e[i].innerHTML=e[i].innerHTML.replace('Total of','Total de'); e[i].innerHTML=e[i].innerHTML.replace('threads created','tópicos criados'); e[i].innerHTML=e[i].innerHTML.replace('which have','total de'); e[i].innerHTML=e[i].innerHTML.replace('replies','respostas'); e[i].innerHTML=e[i].innerHTML.replace('members registered','membros registrados'); e[i].innerHTML=e[i].innerHTML.replace('Greetings to our new member','Saudações ao nosso novo membro'); e[i].innerHTML=e[i].innerHTML.replace('User','Usuário'); e[i].innerHTML=e[i].innerHTML.replace('Rank','Posição'); e[i].innerHTML=e[i].innerHTML.replace('Group','Grupo'); e[i].innerHTML=e[i].innerHTML.replace('Messages','Total de mensagens'); e[i].innerHTML=e[i].innerHTML.replace('Registration','Data do registro'); e[i].innerHTML=e[i].innerHTML.replace('Input keyword or phrase to find.','Escreva uma palavra ou frase para procurar'); e[i].innerHTML=e[i].innerHTML.replace('Enter username and select search options.','Escreva o nome do usuário que deseja e selecione as opções de busca'); e[i].innerHTML=e[i].innerHTML.replace('Threads without updates for more than','Tópicos sem atualização há mais de'); e[i].innerHTML=e[i].innerHTML.replace('closed threads only','apenas tópicos fechadas'); e[i].innerHTML=e[i].innerHTML.replace('All opened forums.....','Todos os fóruns abertos'); } } </script> <script> e=document.getElementsByTagName("TD"); for(i=0;i<e.length;i++) { if(e[i].className=='threadsType') { e[i].innerHTML=e[i].innerHTML.replace('Sticky threads','Tópicos oficiais'); e[i].innerHTML=e[i].innerHTML.replace('Forum threads','Tópicos do fórum'); } } </script> <script> e=document.getElementsByTagName("TD"); for(i=0;i<e.length;i++) { if(e[i].className=='threadsDetails') { e[i].innerHTML=e[i].innerHTML.replace('This forum has','Este fórum tem'); e[i].innerHTML=e[i].innerHTML.replace('threads','tópicos'); e[i].innerHTML=e[i].innerHTML.replace('threads displayed','tópicos mostrados'); e[i].innerHTML=e[i].innerHTML.replace('found','encontrados'); e[i].innerHTML=e[i].innerHTML.replace('on the page','nesta página'); } } </script> <script> e=document.getElementsByTagName("TD"); for(i=0;i<e.length;i++) { if(e[i].className=='forumOnlineBar') { e[i].innerHTML=e[i].innerHTML.replace('Forum is being viewed by :','Usuários que estão online no fórum :'); } } </script> <script> e=document.getElementsByTagName("TD"); for(i=0;i<e.length;i++) { if(e[i].className=='pagesInfo') { e[i].innerHTML=e[i].innerHTML.replace('Page','Página'); e[i].innerHTML=e[i].innerHTML.replace('of','de'); } } </script> <script> e=document.getElementsByTagName("TD"); for(i=0;i<e.length;i++) { if(e[i].className=='fFastSearchTd') { e[i].innerHTML=e[i].innerHTML.replace('Search:','Procurar por:'); e[i].innerHTML=e[i].innerHTML.replace('keyword','palavra-chave'); } } </script> <script> e=document.getElementsByTagName("TD"); for(i=0;i<e.length;i++) { if(e[i].className=='gTableTop') { e[i].innerHTML=e[i].innerHTML.replace('Additional information','Informações adicionais'); e[i].innerHTML=e[i].innerHTML.replace('Search','Busca'); e[i].innerHTML=e[i].innerHTML.replace('Members List','Lista de Membros'); e[i].innerHTML=e[i].innerHTML.replace('Forum rules','Regras do fórum'); e[i].innerHTML=e[i].innerHTML.replace('New Posts','Novas mensagens'); e[i].innerHTML=e[i].innerHTML.replace('New reply','Adicionar resposta'); } } </script> <script> e=document.getElementsByTagName("TD"); for(i=0;i<e.length;i++) { if(e[i].className=='gTableSubTop') { e[i].innerHTML=e[i].innerHTML.replace('Visitors','Visitas'); e[i].innerHTML=e[i].innerHTML.replace('members','membros'); e[i].innerHTML=e[i].innerHTML.replace('guests','visitantes'); e[i].innerHTML=e[i].innerHTML.replace('Forum statistics','Estatísticas do fórum'); e[i].innerHTML=e[i].innerHTML.replace('Forum','Fórum'); e[i].innerHTML=e[i].innerHTML.replace('Threads','Tópicos'); e[i].innerHTML=e[i].innerHTML.replace('Replies','Respostas'); e[i].innerHTML=e[i].innerHTML.replace('Updates','Atualizações'); e[i].innerHTML=e[i].innerHTML.replace('Views','Visualizações'); e[i].innerHTML=e[i].innerHTML.replace('Thread starter','Dono do tópico'); e[i].innerHTML=e[i].innerHTML.replace('Thread','Tópico'); e[i].innerHTML=e[i].innerHTML.replace('Users found','Usuários encontrados'); e[i].innerHTML=e[i].innerHTML.replace('Search what','Procurar o quê?'); e[i].innerHTML=e[i].innerHTML.replace('Search where','Procurar aonde?'); e[i].innerHTML=e[i].innerHTML.replace('Search posts by member','Procurar posts de um usuário'); e[i].innerHTML=e[i].innerHTML.replace('Administrator options','Opções do administrador'); e[i].innerHTML=e[i].innerHTML.replace('Happy Birthday!','Feliz Aniversário!'); } } </script> <script> e=document.getElementsByTagName("TD"); for(i=0;i<e.length;i++) { if(e[i].className=='legendTd') { e[i].innerHTML=e[i].innerHTML.replace('Normal thread (There are new message(s))','Tópico normal (Com nova(s) mensagem(ns))'); e[i].innerHTML=e[i].innerHTML.replace('Normal thread (No new messages)','Tópico normal (Sem nova(s) mensagem(ns))'); e[i].innerHTML=e[i].innerHTML.replace('Hot thread (There are new message(s))','Tópico quente (Com nova(s) mensagem(ns))'); e[i].innerHTML=e[i].innerHTML.replace('Hot thread (No new messages)','Tópico quente (Sem nova(s) mensagem(ns))'); e[i].innerHTML=e[i].innerHTML.replace('Closed thread (No new messages)','Tópico fechado (Sem nova(s) mensagem(ns))'); e[i].innerHTML=e[i].innerHTML.replace('Normal thread','Tópico normal'); e[i].innerHTML=e[i].innerHTML.replace('Thread - Poll','Tópico - Enquete'); e[i].innerHTML=e[i].innerHTML.replace('Sticky thread','Tópico oficial'); e[i].innerHTML=e[i].innerHTML.replace('Hot thread','Tópico quente'); e[i].innerHTML=e[i].innerHTML.replace('Closed thread','Tópico fechado'); } } </script> <script> e=document.getElementsByTagName("DIV"); for(i=0;i<e.length;i++) { if(e[i].className=='funcBlock') { e[i].innerHTML=e[i].innerHTML.replace('Mark all messages as read','Marcar todas as mensagens como lidas'); } } </script> <script> e=document.getElementsByTagName("TD"); for(i=0;i<e.length;i++) { if(e[i].className=='threadLastPostTd') { e[i].innerHTML=e[i].innerHTML.replace('Message from','Mensagem de'); } } </script> Credits to: Vanofuture I hope this helps you out. I've made grammar mistakes ?? Google's fault !!
Time is the most valuable thing a man can spend. Post edited by Igor-Sousa - Sunday, 2009-08-30, 2:25 AM
|
Hello from Slovenia!
I wgot a new question again. How to translate forum in places like this: I used both codes abowe, i put them in general appearance of forum pages in head under the <link type=".....> but nothing hapened. Can somenone please help ? Thid I put the code to the wrong place ? <script> Nice day, Ales Attachments:
1834901.png
(51.2 Kb)
Thank's for hellp
|
Thank you very much sunny.
Ales Thank's for hellp
|
Me again !
I'm truying tu put nice web site up, for people that will youse it, so I thing to be nice that most of stuff is translate to my language so I'm trying to do this: and another problem, I'm truying tu put text Hellos to everyone, Thank's for hellp
Post edited by najem-minibagra - Friday, 2010-01-15, 9:07 AM
|
| |||