![]() |
DJ's Translate a Thread in a Google Pop-Up Window
This template modifications adds a drop-down menu to all your threads which allows users to translate that thread in a new window using Google's Language Tools.
======================================== NOTE: As this is a merely a template edit, vBulletin version isn't really going to be an issue. ======================================== When I first released this for vB 3.6, there seemed to be some confusion as to how this works. Let me clear up any confusion from the start. This is just a simple template modification that redirects you to a translation service from Google.com. It's some links and some pictures designed to help international users communicate more easily. It does not auto-detect what language your forum is in, nor is it a way to browse and post in your forum in another language. It's simply what is described: A way to translate a thread from one base language to another set language. And it also can only support the languages that Google supports, which are the ones listed. Hopefully I've redesigned this mod to be more clear about how it works. NOTE: In order for Google to translate your threads, they must be able to crawl your forum pages. So Guests must be able to read your forum in order for this mod to work. Updates 08-19-08 (Updated to include the new languages from Google's Language Tools. Upgrades For those upgrading from the vB 3.6 version, click here. Screenshot https://vborg.vbsupport.ru/external/2008/08/18.png Supported Languages https://vborg.vbsupport.ru/external/2008/08/6.gif العربية (Arabic) https://vborg.vbsupport.ru/external/2008/08/7.gif Български (Bulgarian) https://vborg.vbsupport.ru/external/2008/08/8.gif 中国 (Chinese - Simplified) https://vborg.vbsupport.ru/external/2008/08/9.gif 中國 (Chinese - Traditional) https://vborg.vbsupport.ru/external/2008/08/10.gif Hrvatski (Croatian) https://vborg.vbsupport.ru/external/2008/08/11.gif Česky (Czech) https://vborg.vbsupport.ru/external/2008/08/12.gif Dansk (Danish) https://vborg.vbsupport.ru/external/2008/08/13.gif Nederlands (Dutch) https://vborg.vbsupport.ru/external/2008/08/14.gif English (This is merely a direct link to the Google Translator) https://vborg.vbsupport.ru/external/2008/08/15.gif Suomi (Finnish) https://vborg.vbsupport.ru/external/2008/08/16.gif Fran?ais (French) https://vborg.vbsupport.ru/external/2008/08/17.gif Ελληνική (Greek) https://vborg.vbsupport.ru/external/2008/08/18.gif Deutsch (German) https://vborg.vbsupport.ru/external/2008/08/19.gif हिन्दी (Hindi) https://vborg.vbsupport.ru/external/2008/08/20.gif Italiano (Italian) https://vborg.vbsupport.ru/external/2008/08/21.gif 日本語 (Japanese) https://vborg.vbsupport.ru/external/2008/08/22.gif 한국어 (Korean) https://vborg.vbsupport.ru/external/2008/08/23.gif Norsk (Norwegian) https://vborg.vbsupport.ru/external/2008/08/24.gif Polski (Polish) https://vborg.vbsupport.ru/external/2008/08/25.gif Portugu?s (Portuguese) https://vborg.vbsupport.ru/external/2008/08/26.gif Rom?nă (Romanian) https://vborg.vbsupport.ru/external/2008/08/27.gif Русский (Russian) https://vborg.vbsupport.ru/external/2008/08/28.gif Espa?ol (Spanish) https://vborg.vbsupport.ru/external/2008/08/29.gif Svenska (Swedish) Live Demo Look for the "Translate" drop-down menu beside the "Display Modes" drop-down. Installation Installation is simple. To add this to your forum requires two edits to your SHOWTHREAD template. Step 1. To access your SHOWTHREAD template, go to Admin CP >>> Styles & Templates >>> Style Manager >>> "Expand one of your styles" >>> Showthread Templates >>> SHOWTHREAD and look for: Code:
Code:
Next find: Code:
Code:
<!-- LANGUAGE TRANSLATOR MENU--> Next thing to do is upload the flag images (in attached zip file) to the buttons folder in your images directory. Make sure you upload them to the right one. For some forums, this might simply be images/buttons/. But if your using a custom skin, this might be in the folder holding your style (skin) images, such as [stylename]/buttons/. It will need to be in that directory for each skin you make the template changes to. |
Additional "[Language] to..." Options (Step 2A)
If you need something other than English as your base language, follow the links below to the language you need and add any of those blocks of code just before these lines: Code:
</table></div> Or if you want to use one or more of these INSTEAD of the "English to..." option, you'll need to paste your code in between the <table></table> tags, replacing everything in between: Code:
<div class="vbmenu_popup" id="languagemenu_menu" style="display:none"> Note: These additional options have not been fully tested to work. Any feedback is appreciated. Arabic to... Bulgarian to... Dutch to... Chinese to... Croatian to... Czech to... Danish to... Russian to.. |
Don't forget to follow the instructions for Step 2A.
"Arabic to..." Code:
<!-- ARABIC MENU --> |
Don't forget to follow the instructions for Step 2A.
Bulgarian to... Code:
<!-- BULGARIAN MENU --> |
Dutch to...
Code:
<!-- DUTCH MENU --> |
Hey, M-Tuning, thanks for that. Saves me some steps.
Don't forget, though, that in each one I posted I included the home language as a link to the Google Translator. So Dutch wouldn't translate to Arabic unless you change that first link, like so: Don't forget to follow the instructions for Step 2A. Dutch to... Code:
<!-- DUTCH MENU --> |
Don't forget to follow the instructions for Step 2A.
Chinese to... Code:
<!-- CHINESE MENU--> |
Don't forget to follow the instructions for Step 2A. Croatian to... Code:
<!-- CROATIAN MENU--> |
Don't forget to follow the instructions for Step 2A. Czech to... Code:
<!-- CZECH MENU--> |
Don't forget to follow the instructions for Step 2A. Danish to... Code:
<!-- DANISH MENU--> |
To all the users of my 2.00 modification, please refer to these instructions in order to upgrade. Upgrading is even easier then before.
UPGRADE INSTRUCTIONS To access your SHOWTHREAD template, go to your Admin CP >>> Styles & Templates >>> Style Manager >>> [Expand Your Style] >>> Show Thread Templates >>> SHOWTHREAD. STEP 1. Simply search for this block of code in your SHOWTHREAD template: Code:
<td class="vbmenu_control" id="languagemenu" nowrap="nowrap"> STEP 2. Look for everything starting with this line Code:
<!-- Language Translator Menu --> Code:
<!--/ Language Translator Menu --> Code:
<!-- LANGUAGE TRANSLATOR MENU--> I will be adding additional language options like I had in the previous modification to Post 2. But because Google now translates the full spectrum of their available languages to the full spectrum of their available languages, the previous manner I had just isn't practical and wont fit into one post. So I will be adding [Language] to... options one by one as time permits. If you have a request, I'll move it to the front of the list. But until then I'm jut going thought them one language at a time. Thanks, and I hope you enjoy this update. |
how about english to urdu?
|
Quote:
|
Great mod man!Congratulations!
|
EDIT: I'm brain dead, I already posted Chinese to...
https://vborg.vbsupport.ru/showthread.php?p=1602664 |
It does not work for me. My forum has been crawling with google bots for the last 3 months. It is open to public to read, and I have followed the instructions to get this to work. All is good. I click on Translate, and than select Spanish as an example. The new window opens up, goes to black, a little flicker, and than my firefox shuts down. Here is my site. http://www.unitedsocomleague.com/forum
Any help would be greatly appreciated. |
Quote:
|
Digital Jedi,
And from Russian it is possible? |
Quote:
|
Quote:
Quote:
What you can do is track down the javascript that your site requires for viewing it, and fix it to where users who don't have Javascript enabled can still view it. That's kind of a good idea anyway, because there are still people out there who either don't browse with Javascript enabled, or who simply don't have the functionality. |
Don't forget to follow the instructions for Step 2A.
Russian to... Code:
<!-- RUSSIAN MENU--> |
Quote:
|
You have another modification installed that prevents users who don't use Javascript from browsing your forum. What you can try is turning your modifications off one at a time, and each time, try the translator until you see which one is causing the problem.
|
but the translated pages dont show the style or css (using vbseo) (css stored as file)
|
Quote:
|
I wish that this MOD would put the translate link in the navbar at the top.
Also is there any way to put a Translate feature on our CMPS page so that non english speaking visitors can select an alternative language? Perhaps in a module? I would love for my site to be versatile for all! |
I posted a homepage module in the previous version, but I haven't even updated my personal homepage version yet. It's just been a matter of time constraints. I'll put the new one up soon, speaking relative to my schedule.
I'm not sure a navbar version would be very practical. |
This hack is awesome!!! Any way to add another language? Turkish?
|
Quote:
|
Italian to... ?
|
I'll try to post one a little later tonight. Provided I don't loose consciousness before sunset.
|
I set this mod up, but when I go to translate, it sends me to login....
Then when I do the login, it keeps redirecting me to login... The login is in the language I chose, but still cant get past it.... |
Is your forum viewable to guests?
|
No its not.......Anyway around it?
I dont want to open it to non registered.... |
Well, as I mentioned in the initial post, Google has to able to scan your pages in order to make the translation. So unless you can let Google in somehow, Google will just try to translate the page Guests are allowed to see. And as I also mentioned, this is not a way to browse a forum in another language, so will not be able to log in on the translated page.
|
Quote:
Quote:
Thanks Mr. Digital Jedi .... it's work for me :up: BR. Harisa FP |
Quote:
|
italian to??
|
italian to
Code:
<!-- LANGUAGE TRANSLATOR MENU--> |
is it just me or is the flag zip actually missing?
|
All times are GMT. The time now is 04:57 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|