![]() |
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 Code:
<!-- UKBL ~ Easy Translation on forumhome --> find Code:
<!-- post #$post[postid] --> Code:
<!-- UKBL ~ Easy Translation on postbit_wrapper --> 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> Please Click Installed for unlimited support ;) |
:D Reserved ;)
|
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 |
Quote:
Thanks Mike :D Hope you feel better soon mate ;) |
#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:
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 |
Hi UKBusinessLive,
Can you add language vietnamese ?? thanks, |
Quote:
To add the Vietnamese option just add this to the bottom of your list of language options Code:
<option value="vn">Vietnamese</option> 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 |
************************** UPDATED LANGUAGE PACK *********************
Here is an updated language pack, just replace your existing ones with the ones below Code:
<option value="ar">Arabic</option> Please Click Installed for unlimited support ;) |
Great work.. I have alot of different people in and think this will help..
|
Quote:
Thanks James :up: |
You have little mistake in languages. There is Cczech, should be Czech :)
I have translated all names into Polish (in alphabetical order of course) :) Code:
<DIV ALIGN=RIGHT> |
Thanks for that, :D
|
You still didn't correct the Cczech name in languages list :P It should be Czech :P
|
Quote:
|
Installed on 3.8.1 BUT, it pushes the forum home to the right with a gap on the left. And it really jumbled up the posts within threads. TIA.
|
Do not work from spanish to english?
Error Translation from English into English is not supported. Please choose from the following: Go back to the previous page" Back to Translate See original page |
I have it installes ,but most of the time do not translate nathing.
|
Hi,
So you want to translate english to english ??? What exactly is it thats not working??? :confused: |
Quote:
Have you added it to the right part in your template as explained above??? Works fine on my forum http://www.ukbusinesslive.co.uk/forum post here the code which you used, remember there are Two Codes one for the header and one for the postbit wrapper All i think could be happening is that you've put the code in between something ?? let me know and we'll get it sorted :D |
Quote:
In postbit_wrapper: Quote:
In the forumhome: Quote:
Then make sure to close. Quote:
|
aircool52 it won't work because you've pasted wrong language shortcuts in the link.
In UK's code there is a link given, right after <DIV ALIGN=RIGHT>: Code:
<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;"> For spanish language it will be es. Here is an example for you: Code:
<DIV ALIGN=RIGHT> |
|
Experiment ;) Add it to the Footer, or the Top of the forumhome template, Try it and see is the best bet, Remember to back up your template files first ;)
|
Quote:
|
Quote:
HTML Code:
http://translate.google.com/translate?hl=en&langpair=en%7Cde&u=http://www.ukbusinesslive.co.uk/forum/index.php |
My vb is in Spanish , but some of the participant came from UK and like to read it in English , so when I choose language translator gave me this error:
Error Translation from English into English is not supported. Please choose from the following: Go back to the previous page" Back to Translate See original page |
Quote:
Thats because your using the default english setup, what you need to do is find this line in the begining of the code Code:
<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;"> google. com/translate_c?hl=en&langpair=en%7C' + this.value + '&u=' + window.location.href so it looks like this.. google .com/translate_c?hl=en&langpair=es%7C' + this.value + '&u=' + window.location.href and save, thats it, what your doing is telling google that your main lauguage is spanish, and now you'll be able to translate your spanish site into english :D |
ho??? thanks man it works find now.
|
Can you add language turkish ?
thank for your hard waork sir.. |
Quote:
keep checking regularly as they do add everynow and again ;) |
In google translate home turkish supported, But in faq page its shown as not supported.
|
Quote:
:) Done it, Right all you need to do is this First in the code find this line Code:
<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;"> Firstly in that line of code find the google url and the bits you need to change is in red google . com/translate_c?hl=en&langpair=en%7C' + this.value + '&u=' + window.location.href;"> Now the en tells google your site is in english, well we need to change that to Turkish so change that for tr, the 2 letter country code for Turkey So now your code should look something like... Code:
<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=tr&langpair=tr%7C' + this.value + '&u=' + window.location.href;"> Code:
<option value="tr">Turkish</option> Enjoy :up: |
Thanks
|
Quote:
Bump. |
Quote:
Tell me a bit more of what your trying to do?? What country are you in?? and where you've added your code. What languages are you translating to show you that error??? Perhaps a link would allow me to see the problem first hand, PM me if you do not want to post the link, but prefer to send it to me. Thanks, we'll try and sort this for you today ;) |
thanks for turkish suupport sir :D
good luck... |
Quote:
|
Quote:
|
Wow, Uk!
I'm starting to really love your work mate... My new forum software, this would be perfect as a language chooser, as it translates everything. Thank you mate ;) [high]* Winterworks installs[/high] |
Installed thanks! How can add this into the navbar? Thanks!
|
All times are GMT. The time now is 05:46 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:
|