PDA

View Full Version : Translate single Post in a PopUP (with Bablefish)


PcFreak
03-10-2006, 10:00 PM
This small modification translate a single posts directly in a pop-up window with bablefish.

Search in postbit or in postbit_legacy template for:

<!-- controls -->
Replace with


<!-- controls -->
<a href="#" onclick="Fenster1=window.open('http://babelfish.altavista.com/babelfish/urltrurl?url=http://your.domain_here/showpost.php?p=$post[postid]&lp=de_en','','directories=no,location=no,resizable =yes,scrollbars=yes,toolbar=no,status=no,menubar=n o,width=600,height=400')">
<img src="$stylevar/gb.gif" alt=" translate (powered by babelfish)" width="50" height="18" border="0" /></a>

Note:
your.domain_here = The absolute path of your forum

lp=de_en is the translate direction
Translate Post from english to german use lp=en_de
Translate Post from english to france use lp=en_fr
Translate Post from english to portuguese use lp=en_pt etc...

This liitle gifs must be copy in your images/buttons dir.
gb.gif = for English language
fr.gif = for french language
pt.gif = for portuguese language
de.gif = for german language

Thats all.

Of course,
[I]The translation with Bblelfish is not very good, but maybe you understands the meaning


small advertisement
Are you interested in a great statistics for your forum?
Visit my projekt www.vbstatistic.com (http://www.vbstatistic.com)

Andree (PcFreak)

Daniel
03-11-2006, 06:44 PM
Wow, great addition.

projectego
03-11-2006, 07:28 PM
Very cool hack, PcFreak. Good job. :)

Esposito
03-11-2006, 07:39 PM
Good work, thank you PCFreak :)

The Realist
03-11-2006, 09:09 PM
Excellent addition :)

Breaker
03-12-2006, 09:02 AM
only problem is when the post is something that cant be seen by guests, the user wont be able to translate it, is there any other method without using the URL available?

Phosphorus
09-21-2006, 11:59 AM
installed and work .. except on private forum parts.. when the pop up windows is open we have to logged us again .. instead to have the translation ..

Any help ?

oldfan
09-21-2006, 06:58 PM
could this work with translate.google?

oldfan
09-25-2006, 01:09 PM
could this work with translate.google?
anyone?

Coach_Guru
09-28-2006, 09:23 AM
could this work with translate.google?

I'm interested too.

Thanks.

Phosphorus
10-01-2006, 07:41 AM
installed and work .. except on private forum parts.. when the pop up windows is open we have to logged us again .. instead to have the translation ..

Any help ?

thx for reply :confused: :surprised: :confused:

fishhub
11-21-2006, 05:52 PM
is there a vitnamese and chinese translator?;)