vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Forum Display Enhancements - UKBL ~ Easy Google Translator (https://vborg.vbsupport.ru/showthread.php?t=202949)

UKBusinessLive 01-23-2009 10:00 PM

UKBL ~ Easy Google Translator
 
1 Attachment(s)
UKBL ~ Easy Google Translator


Hi Everyone, :)

Made this for a friends forum and thought i'd share it here :D

Just a Simple Google translator which you can add to your forums, displays in a small Dropdown box in the Forum Home and posibit wrapper.

https://vborg.vbsupport.ru/external/2009/01/22.png

Then you can add the dropdown box in the postbit wrapper so that the option to translate is available with every post ;)

https://vborg.vbsupport.ru/external/2009/01/23.png

Just click on a language and within seconds your posts is converted to a language of your choice

https://vborg.vbsupport.ru/external/2009/01/24.png

Your Members will be able to chose from the following,

Arabic
Chinese Simplified
Chinese Traditional
Dutch
French
German
Greek
Italian
Japanese
Korean
Russian
Spanish
Portuguese

There are loads more available, if you want any lanuage in particular, just post here and i'll add it on

Nice, So how do we add it???

1. Download the zip file with the code and instructions

2. Styles & Templates > All Style Options > Edit Template > Forum home template: FORUMHOME

Find:

Code:

$navbar
Below add:

Code:

<!-- UKBL ~ Easy Translation on forumhome -->

<DIV ALIGN=RIGHT>
<td nowrap style="border-left: 1px solid #dddddd;" align="center"> <select name="translate" style="height:20px; font-size:11px;" onchange="javascript:window.location = 'http://www.google.com/translate_c?hl=en&langpair=en%7C' + this.value + '&u=' + window.location.href;">
<option value="">Translate This Page</option>
<option value="ar">Arabic</option>
<option value="zh-CN">Chinese Simplified</option>
<option value="zh-TW">Chinese Traditional</option>
<option value="nl">Dutch</option>
<option value="fr">French</option>
<option value="de">German</option>
<option value="el">Greek</option>
<option value="it">Italian</option>
<option value="ja">Japanese</option>
<option value="ko">Korean</option>
<option value="pt">Portuguese</option>
<option value="ru">Russian</option>
<option value="es">Spanish</option>
</select>
</DIV>

<!-- UKBL ~ Easy Translation on forumhome -->

Styles & Templates > All Style Options > Edit Template > Postbit Templates > postbit_wrapper

find

Code:

<!-- post #$post[postid] -->
Then below add

Code:

<!-- UKBL ~ Easy Translation on postbit_wrapper -->

<DIV ALIGN=CENTER>
<td nowrap style="border-left: 1px solid #dddddd;" align="center"> <select name="translate" style="height:20px; font-size:11px;" onchange="javascript:window.location = 'http://www.google.com/translate_c?hl=en&langpair=en%7C' + this.value + '&u=' + window.location.href;">
<option value="">Translate This Page</option>
<option value="ar">Arabic</option>
<option value="zh-CN">Chinese Simplified</option>
<option value="zh-TW">Chinese Traditional</option>
<option value="nl">Dutch</option>
<option value="fr">French</option>
<option value="de">German</option>
<option value="el">Greek</option>
<option value="it">Italian</option>
<option value="ja">Japanese</option>
<option value="ko">Korean</option>
<option value="pt">Portuguese</option>
<option value="ru">Russian</option>
<option value="es">Spanish</option>
</select>
</DIV>

<!-- UKBL ~ Easy Translation on postbit_wrapper -->

Thats it, So easy and a great treat for your members ;)

As always Please Click installed if you use this :rolleyes:

************************** UPDATED LANGUAGE PACK *********************

Here is an updated language pack, just replace your existing ones with the ones below

Code:

<option value="ar">Arabic</option>
<option value="bg">Bulgarian</option>
<option value="zh-CN">Chinese Simplified</option>
<option value="zh-TW">Chinese Traditional</option>
<option value="hr">Croatian</option>
<option value="cs">Czech</option>
<option value="da">Danish </option>
<option value="nl">Dutch</option>
<option value="en">English</option>
<option value="fi">Finnish</option>
<option value="ph">Filipino</option>
<option value="fr">French</option>
<option value="de">German</option>
<option value="il">Hebrew</option>
<option value="el">Greek</option>
<option value="it">Italian</option>
<option value="id">Indonesian</option>
<option value="lv">Latvian</option>
<option value="lt">Lithuanian</option>
<option value="hi">Hindi</option>
<option value="ja">Japanese</option>
<option value="ko">Korean</option>
<option value="no">Norwegian</option>
<option value="pl">Polish</option>
<option value="pt">Portuguese</option>
<option value="ro">Romanian</option>
<option value="ru">Russian</option>
<option value="es">Spanish</option>
<option value="sv">Swedish</option>
<option value="rs">Serbian</option>
<option value="sk">Slovak</option>
<option value="si">Slovenian</option>
<option value="ua">Ukrainian</option>
<option value="vn">Vietnamese</option>

Feel Free to add or delete any you don't want, I'll add more as i get them :rolleyes:

Please Click Installed for unlimited support ;)

UKBusinessLive 01-24-2009 03:55 PM

:D Reserved ;)

TheLastSuperman 01-24-2009 07:29 PM

Ohh been sick today but as soon as I feel a bit better... consider TheLastSuperman as installed!!!

I was just about to do this for my forums so you saved me the trouble and btw nice job and idea!

Mike

UKBusinessLive 01-24-2009 08:27 PM

Quote:

Originally Posted by TheLastSuperman (Post 1723611)
Ohh been sick today but as soon as I feel a bit better... consider TheLastSuperman as installed!!!

I was just about to do this for my forums so you saved me the trouble and btw nice job and idea!

Mike


Thanks Mike :D

Hope you feel better soon mate ;)

TheLastSuperman 01-24-2009 09:11 PM

#4, sorry for the lateness & Thanks! Better already and about to go to Wendy's and KILL a combo lol!

I put mine in navbar on forum home, then the footer for a while so they notice then I will remove, then in all my subforums as some are in different styles in the footer at the very top which makes it just below the box stating:

Quote:

Posting Rules
You may post new threads
You may post replies
You may post attachments
You may edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Again, many thanks for the great insight UK!

Edit: Demo: --> http://www.tournamentgamingworld.com...splay.php?f=21
Bottom Left below the box as I described.

Edit Again lol: I might change the location to be in w/ the upper code where it says "Display Options" and that will make more sense eh? :D

S-MAN

phoxitin 01-24-2009 11:54 PM

Hi UKBusinessLive,

Can you add language vietnamese ??

thanks,

UKBusinessLive 01-25-2009 08:08 AM

Quote:

Originally Posted by phoxitin (Post 1723802)
Hi UKBusinessLive,

Can you add language vietnamese ??

thanks,

Hi Phoxitin

To add the Vietnamese option just add this to the bottom of your list of language options

Code:

<option value="vn">Vietnamese</option>
That should do it ;)

I'm doing to update the languages later, I only did those ones as they were the ones required, if i add them all (about 35) you'll be able to delete the ones you don't want.

Take care

:D

UKBusinessLive 01-25-2009 10:14 AM

************************** UPDATED LANGUAGE PACK *********************

Here is an updated language pack, just replace your existing ones with the ones below

Code:

<option value="ar">Arabic</option>
<option value="bg">Bulgarian</option>
<option value="zh-CN">Chinese Simplified</option>
<option value="zh-TW">Chinese Traditional</option>
<option value="hr">Croatian</option>
<option value="cs">Cczech</option>
<option value="da">Danish </option>
<option value="nl">Dutch</option>
<option value="en">English</option>
<option value="fi">Finnish</option>
<option value="ph">Filipino</option>
<option value="fr">French</option>
<option value="de">German</option>
<option value="il">Hebrew</option>
<option value="el">Greek</option>
<option value="it">Italian</option>
<option value="id">Indonesian</option>
<option value="lv">Latvian</option>
<option value="lt">Lithuanian</option>
<option value="hi">Hindi</option>
<option value="ja">Japanese</option>
<option value="ko">Korean</option>
<option value="no">Norwegian</option>
<option value="pl">Polish</option>
<option value="pt">Portuguese</option>
<option value="ro">Romanian</option>
<option value="ru">Russian</option>
<option value="es">Spanish</option>
<option value="sv">Swedish</option>
<option value="rs">Serbian</option>
<option value="sk">Slovak</option>
<option value="si">Slovenian</option>
<option value="ua">Ukrainian</option>
<option value="vn">Vietnamese</option>

Feel Free to add or delete any you don't want, I'll add more as i get them :rolleyes:

Please Click Installed for unlimited support ;)

TandyServices 01-25-2009 10:51 AM

Great work.. I have alot of different people in and think this will help..

UKBusinessLive 01-25-2009 01:32 PM

Quote:

Originally Posted by TandyServices (Post 1724118)
Great work.. I have alot of different people in and think this will help..


Thanks James :up:


All times are GMT. The time now is 10:08 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
  • Page Generation 0.01119 seconds
  • Memory Usage 1,767KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete