The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Translate a single Post in a Popup w/bablefish Details »» | |||||||||||||||||||||||||||
Translate a single Post in a Popup w/bablefish
Developer Last Online: Aug 2022
Heres a small modification to this thread. Credit should go to PcFreak
https://vborg.vbsupport.ru/showthrea...=babelfish.com Make sure you read the direction on the above post. Its a simple template change to the postbits, or postbits_legacy. The only real changes are to the image size and I added several languages as well as direct link to bablefish so readers can translate posts back to english or whatever language your forum uses. Make sure to change out the"your.domain_here" with your absolute path of your forum Code:
<!--start translator--> <a href="#" onclick="Fenster1=window.open('http://babelfish.altavista.com','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=700,height=500')"> <img src="$stylevar[imgdir_button]/tr.gif" alt="Please translate all posts to English" width="15" height="10" border="0" /></a> <!--english--> <a href="#" onclick="Fenster1=window.open('http://babelfish.altavista.com/babelfish/urltrurl?url=http://your.domain_here/showpost.php?p=$post[postid]&lp=en_it','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=600,height=400')"> <img src="$stylevar[imgdir_button]/it.gif" alt=" Translate from English to Italian" width="15" height="10" border="0" /></a> <!--french--> <a href="#" onclick="Fenster1=window.open('http://babelfish.altavista.com/babelfish/urltrurl?url=http://your.domain_here/showpost.php?p=$post[postid]&lp=en_fr','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=600,height=400')"> <img src="$stylevar[imgdir_button]/fr.gif" alt=" Translate from English to French" width="15" height="10" border="0" /></a> <!--german--> <a href="#" onclick="Fenster1=window.open('http://babelfish.altavista.com/babelfish/urltrurl?url=http://your.domain_here/showpost.php?p=$post[postid]&lp=en_de','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=600,height=400')"> <img src="$stylevar[imgdir_button]/de.gif" alt=" Translate from English to German" width="15" height="10" border="0" /></a> <!--spanish--> <a href="#" onclick="Fenster1=window.open('http://babelfish.altavista.com/babelfish/urltrurl?url=http://your.domain_here/showpost.php?p=$post[postid]&lp=en_es','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=600,height=400')"> <img src="$stylevar[imgdir_button]/es.gif" alt=" Translate from English to Spanish" width="15" height="10" border="0" /></a> <!--dutch--> <a href="#" onclick="Fenster1=window.open('http://babelfish.altavista.com/babelfish/urltrurl?url=http://your.domain_here/showpost.php?p=$post[postid]&lp=en_nl','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=600,height=400')"> <img src="$stylevar[imgdir_button]/nl.gif" alt=" Translate from English to Dutch" width="15" height="10" border="0" /></a> <!--end translator--> Check the screenshots below for the images and a screenshot. :up: Show Your Support
|
Comments |
#2
|
||||
|
||||
Wow - nice mod - thanx for sharing it
Jacquii. |
#3
|
||||
|
||||
I was just wondering about this 10 minutes ago! I haven't tried it yet but thank you!
Quote:
|
#4
|
||||
|
||||
Cool. If anyone gets the full site translation working could you please post you're results. :up:
|
#5
|
||||
|
||||
Quote:
Edit: Tried it and it works. Thanks. I see now that it opens a new window and if you stay in it the site gets translated during navigation. Awesome. Also, having both the post and site translation would be a solution to compensate for untranslated posts in the page/site translation. Quote:
http://www.perseus.tufts.edu/Help/fonthelp.html http://www.translatum.gr/fonts/ Other ideas would be creating a Language or Translate navbar drop down menu with icons and/or text. Some people might also prefer it in the header or footer. AJAX inline post translation would be nice too, as well as translating the page without a pop-up window. And of course a full product with settings features in admincp! Dream big I say. Edit2: Cool, thanks guys. I got it working on my navbar, postbit, header and footer. I was trying to figure out a way to have it open in the same window/tab, but no luck so far. Any ideas? |
#6
|
||||
|
||||
Quote:
Thanks for that!! |
#7
|
||||
|
||||
I found this nice free (lic:CC 2.5) flag pack (.zip 291kb) at famfamfam. It has Win & Mac, gif and png flag icons like the ones SMC posted but for every country::
http://www.famfamfam.com/lab/icons/flags/ *If you are a Win user and you are wondering what the .ds_store files are, they are harmless Mac files for storing a folder's custom attributes (.ds_store@wikipedia.) Feel free to delete all .ds_store files and the Mac folder if you want. |
#8
|
||||
|
||||
I've placed flags next to post date-time on my board. But it would be nice if this could be in some kind of drop-down included in postbit instead of flags appearing in every post.
|
#9
|
||||
|
||||
Quote:
|
#10
|
||||
|
||||
NICE!!! Good to see everyone making use of this.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|