Page 1 of 9

[ABD] Automatic Translate Mod V0.1.0

Posted: Wed Dec 09, 2009 5:40 pm
by ksar
Modification Name: Automatic Translate
Author: Ksar

Modification Description: Automatic translate of the contents of your forum in several languages thanks to google translate tool
Modification Version: 0.1.0 Beta

Requirements: This mod use the php function "fsockopen" to retrieve the google translation. Be sure your hosting system provide this php function

Features:
  • Automatic languages detections for guests. Thanks to "Enable Browser Language Detection" mod: http://www.phpbb.com/community/viewtopi ... 9&t=862955
    Many thanks to Martin Truckenbrodt!
  • Direct languages change for Guest or registered users (with icons on index page)
  • Automatic translate of the posts/category/forum name...

For now, this mod will translate from your forum default language to a foreseen language.
So all the posts and topics of your forum has to be written in the default forum language.


It makes sense to install it only if you have installed more than one language packs on your forum.
To install more language packs go to http://www.phpBB.com/languages/


Demo URL: http://translate.stream-radio.com/
Demo Username: test
Demo Password: test.test

Modification Download:http://translate.stream-radio.com/viewtopic.php?f=2&t=3

Re: [DEV] Automatic Translate Mod V0.1.0

Posted: Wed Dec 09, 2009 6:26 pm
by 4_seven
Nice, to integrate the google translate Api to the Board.
But, for (really) professional Bilingual- or Multilingual-Boards the given Translation is too lousy.

Keep up the work

Re: [DEV] Automatic Translate Mod V0.1.0

Posted: Thu Dec 10, 2009 12:57 pm
by kber
i will bookmark this topic

Re: [DEV] Automatic Translate Mod V0.1.0

Posted: Thu Dec 10, 2009 3:11 pm
by ksar
kber wrote:i will bookmark this topic
May be you can tel me witch functionalities you need!

it will help me to know what exactly is missing on this mod.

@++

Re: [DEV] Automatic Translate Mod V0.1.0

Posted: Thu Dec 10, 2009 7:54 pm
by kber
ksar wrote:
kber wrote:i will bookmark this topic
May be you can tel me witch functionalities you need!

it will help me to know what exactly is missing on this mod.

@++
i will test it at a simple board , will back soon to you

Re: [DEV] Automatic Translate Mod V0.1.0

Posted: Mon Dec 14, 2009 2:24 pm
by purusam
I keep getting this error when im pressing the english flag

the enlish language pack is installed



General Error
Language file ./language/en/mods/lang_wwh.php couldn't be opened.

Re: [DEV] Automatic Translate Mod V0.1.0

Posted: Mon Dec 14, 2009 2:37 pm
by purusam
forget it i got it. :-()

Re: [DEV] Automatic Translate Mod V0.1.0

Posted: Mon Dec 14, 2009 3:18 pm
by ksar
purusam wrote:I keep getting this error when im pressing the english flag

the enlish language pack is installed



General Error
Language file ./language/en/mods/lang_wwh.php couldn't be opened.
It's a language package for a mod!

This file is missing.

@++

Re: [DEV] Automatic Translate Mod V0.1.0

Posted: Mon Dec 14, 2009 3:49 pm
by purusam
yeahh i figured that out. :-)

quite good modd.

but i have a problem.

i got "Recent topics" MOD how do i get this mod to translate the text in the "Recent topics" too ?

Re: [DEV] Automatic Translate Mod V0.1.0

Posted: Mon Dec 14, 2009 3:59 pm
by ksar
purusam wrote:yeahh i figured that out. :-)

quite good modd.

but i have a problem.

i got "Recent topics" MOD how do i get this mod to translate the text in the "Recent topics" too ?
I need to have a look on that mod.

Please provide a download URL.

@++

Re: [DEV] Automatic Translate Mod V0.1.0

Posted: Mon Dec 14, 2009 4:18 pm
by purusam
heres a link

http://www.phpbb.com/community/viewtopi ... 0&t=573680

thank you for taking a look at it.

Re: [DEV] Automatic Translate Mod V0.1.0

Posted: Mon Dec 14, 2009 5:00 pm
by ksar
purusam wrote:heres a link

http://www.phpbb.com/community/viewtopi ... 0&t=573680

thank you for taking a look at it.
For "Recent topics" MOD try this :

open : includes/functions_recenttopics.php

Search :

Code: Select all

			'LAST_POST_SUBJECT'			=> censor_text($row['topic_last_post_subject']),
Replace By :

Code: Select all

			'LAST_POST_SUBJECT'			=> get_translation(censor_text($row['topic_last_post_subject']), $config['default_lang'], $user->data['user_lang'], "p_".$row['topic_last_post_id']."_s", false),
Search :

Code: Select all

			'TOPIC_TITLE'				=> censor_text($row['topic_title']),
Replace By :

Code: Select all

			'TOPIC_TITLE'				=> get_translation(censor_text($row['topic_title']), $config['default_lang'], $user->data['user_lang'], "t_" . $topic_id, false),
And normally it will be OK

@++

Re: [DEV] Automatic Translate Mod V0.1.0

Posted: Mon Dec 14, 2009 5:30 pm
by purusam
thank you very mutch i will try it and i be back.

otherwise the mod works perfect. :D

Re: [DEV] Automatic Translate Mod V0.1.0

Posted: Mon Dec 14, 2009 6:12 pm
by purusam
that worked perfectly. thank you.

i have another question.

i installed your mod first.

and now i want to install this.

Automatic languages detections for guests. Thanks to "Enable Browser Language Detection" mod: viewtopic.php?f=69&t=862955

but i figured that mod must be installed first and then yours.

is it possible to tell me what changes i have to do to install Automatic languages detections for guests ?
its not so mutch changes i bealive.

Re: [DEV] Automatic Translate Mod V0.1.0

Posted: Mon Dec 14, 2009 9:52 pm
by ksar
purusam wrote:that worked perfectly. thank you.

i have another question.

i installed your mod first.

and now i want to install this.

Automatic languages detections for guests. Thanks to "Enable Browser Language Detection" mod: viewtopic.php?f=69&t=862955

but i figured that mod must be installed first and then yours.

is it possible to tell me what changes i have to do to install Automatic languages detections for guests ?
its not so mutch changes i bealive.
In my mod, the MOD "Automatic languages detections for guests" is automaticaly integrated!

No need to install it!

@++