Page 1 of 41234»
uCoz Community » uCoz Modules » Forum » Translation of forum body (translation script)
Translation of forum body
Davidkuyt
Posts: 1
Reputation: 0

Message # 1 | 4:23 PM
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

Sunny
Posts: 9296
Reputation: 456

Message # 2 | 10:03 AM
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
gTableTop - CSS class of the phrase


I'm not active on the forum anymore. Please contact other forum staff.
barc00de
Posts: 8
Reputation: -3

Message # 3 | 10:00 AM
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
Sunny
Posts: 9296
Reputation: 456

Message # 4 | 10:41 AM
barc00de, you can't find it because this code is not in templates, you must add it there.
I'm not active on the forum anymore. Please contact other forum staff.
barc00de
Posts: 8
Reputation: -3

Message # 5 | 12:33 PM
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
Sunny
Posts: 9296
Reputation: 456

Message # 6 | 1:18 PM
barc00de, go to the template you want to change and paste there the script (don't forget to change things in red).
I'm not active on the forum anymore. Please contact other forum staff.
nenop
Posts: 5
Reputation: 0

Message # 7 | 4:34 AM
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
Search: http://cg-gaming.me/forum/0-0-0-6
and I can`t find CSS codes for this(see on pictures)

Tnx advance..

Attachments: 9433274.jpg(28Kb) · 5616569.jpg(13Kb) · 8983984.jpg(92Kb)
Post edited by nenop - Saturday, 2009-08-29, 4:34 AM
Igor-Sousa
Posts: 93
Reputation: 18

Message # 8 | 5:13 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. happy


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
Jan
Posts: 301
Reputation: 19

Message # 9 | 7:29 PM
where to you but this code??
dry

Sunny
Posts: 9296
Reputation: 456

Message # 10 | 9:27 AM
Jan, in the corresponding forum template, probably "General appearance of forum pages".
I'm not active on the forum anymore. Please contact other forum staff.
najem-minibagra
Posts: 12
Reputation: 0

Message # 11 | 9:24 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>
x = document.getElementsByTagName('td') - where to find elements in 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>

Nice day, Ales

Attachments: 1834901.png(51Kb)

Thank's for hellp
Sunny
Posts: 9296
Reputation: 456

Message # 12 | 10:36 AM
najem-minibagra, you should put the script after $BODY$.
I'm not active on the forum anymore. Please contact other forum staff.
najem-minibagra
Posts: 12
Reputation: 0

Message # 13 | 11:19 AM
Thank you very much sunny.

Ales


Thank's for hellp
najem-minibagra
Posts: 12
Reputation: 0

Message # 14 | 9:07 AM
Me again ! smile

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

to left but it doesnt move at all, im moving it here:

Hellos to everyone,
Ales

Attachments: 9872638.png(102Kb) · 3638582.png(102Kb) · 4493255.png(27Kb)

Thank's for hellp
Post edited by najem-minibagra - Friday, 2010-01-15, 9:07 AM
Sunny
Posts: 9296
Reputation: 456

Message # 15 | 10:40 AM
najem-minibagra, how is text moving related to translation? Ask on Design Customization.
I'm not active on the forum anymore. Please contact other forum staff.
uCoz Community » uCoz Modules » Forum » Translation of forum body (translation script)
Page 1 of 41234»
Search: