![]() |
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--> |
All times are GMT. The time now is 11:19 AM. |
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:
|