Quote:
Originally Posted by akvaryumforum
In google translate home turkish supported, But in faq page its shown as not supported.
|
I'll look at this now and see if we can get something working for our Turkish Friends
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;">
<option value="">Translate This Page</option>
Now thats ok, for websites that are normally in English, But if you have a Turkish website then you'll need to change the code a little
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;">
<option value="">Translate This Page</option>
Thats the first bit, secondly we need to add Turkish to the list of options so at the bottom, Below spanish, add a new option line for our Turkish Translation like this...
Code:
<option value="tr">Turkish</option>
Once you've done that, save and refresh your site, you'll be able to translate Turkish to the world
Enjoy :up: