...

View Full Version : Google Webpage translation why does it do this? how can i fix it?



matt_kidd
09-07-2008, 04:57 PM
Hello,

I have recently installed google translation on my site, simply by copying the urls and linking them up with images. The problem im having is once translated to a language when you try and translate to another it trys to translate that link using the translation before, if you know what i mean. (Try it out yourself and you will know what i mean http://www.missingstudios.com)

Is there anyway i can fix this? one idea i had is it possible to separate a certain section from the translate or something?

I would really appreciate some help with this

Thanks

Millenia
09-07-2008, 05:42 PM
I don't know about Google Translation, but here's a guess:

Is it because it's only installed on the 'English' part of your site? So when your trying to translate it again, it can't find the 'stuff' it needs.

Just a thought.

weblive
09-08-2008, 02:23 PM
To fix that you'd have to make the translation urls static, or remove the google parameters from it, because otherwise, the google code tries to translate from the page being viewed (which when translated is the translated url)

matt_kidd
09-08-2008, 05:48 PM
To fix that you'd have to make the translation urls static, or remove the google parameters from it, because otherwise, the google code tries to translate from the page being viewed (which when translated is the translated url)

Thanks that seems to make sense how would i do this?

weblive
09-08-2008, 07:51 PM
Ok, what code did you put on your website (just the bit for the translation)? (PHP Source, if that's the case)

matt_kidd
09-08-2008, 09:02 PM
<!-- Translate -->
<img src="images/site/nav_translate.png" />
<h2><center>
<a href="http://www.missingstudios.com" target="_blank"><img src="images/flags/english.PNG" border="1" title="English" /></a> <a href="http://translate.google.com/translate_p?client=tmpg&amp;hl=en&amp;langpair=en|de&amp;u=http://www.missingstudios.com/" target="_blank"><img src="images/flags/germany.PNG" border="1" title="German" /></a></a>
<a href="http://translate.google.com/translate_p?client=tmpg&amp;hl=en&amp;langpair=en|fr&amp;u=http://www.missingstudios.com/" target="_blank"><img src="images/flags/french.PNG" border="1" title="French" /></a></a> <a href="http://translate.google.com/translate_p?client=tmpg&amp;hl=en&amp;langpair=en|es&amp;u=http://www.missingstudios.com" target="_blank"><img src="images/flags/spanish.PNG" border="1" title="Spanish" /></a>
<a href="http://translate.google.com/translate_p?client=tmpg&amp;hl=en&amp;langpair=en|el&amp;u=http://www.missingstudios.com" target="_blank"><img src="images/flags/greek.PNG" border="1" title="Greek" /></a>
<a href="http://translate.google.com/translate_p?client=tmpg&amp;hl=en&amp;langpair=en|zh-CN&amp;u=http://www.missingstudios.com/" target="_blank"><img src="images/flags/chinese.PNG" border="1" title="Chinese (Simplified)" /></a> <a href="http://translate.google.com/translate_p?client=tmpg&amp;hl=en&amp;langpair=en|nl&amp;u=http://www.missingstudios.com" target="_blank"><img src="images/flags/dutch.PNG" border="1" title="Dutch" /></a>
<a href="http://translate.google.com/translate_p?client=tmpg&amp;hl=en&amp;langpair=en|da&amp;u=http://www.missingstudios.com/" target="_blank"><img src="images/flags/danish.PNG" border="1" title="Danish" /></a>
<a href="http://translate.google.com/translate_p?client=tmpg&amp;hl=en&amp;langpair=en|it&amp;u=http://www.missingstudios.com/" target="_blank"><img src="images/flags/itallian.PNG" border="1" title="Italian" /></a>
<a href="http://translate.google.com/translate_p?client=tmpg&amp;hl=en&amp;langpair=en|ru&amp;u=http://www.missingstudios.com/" target="_blank"><img src="images/flags/russian.PNG" border="1" title="Russian" /></a> <a href="http://translate.google.com/translate_p?client=tmpg&amp;hl=en&amp;langpair=en|sv&amp;u=http://www.missingstudios.com/" target="_blank" title="Swedish"><img src="images/flags/swedish.PNG" border="1" /></a>
<a href="http://translate.google.com/translate_p?client=tmpg&amp;hl=en&amp;langpair=en|no&amp;u=http://www.missingstudios.com/" title="Norweigan" target="_blank"><img src="images/flags/norwegian.PNG" border="1" /></a>
</center></h2>

weblive
09-08-2008, 09:08 PM
Hmm, it's weird that that code gets switched by google...

Try doing this before that code:


<? $site_url = "http://www.missingstudios.com/"; ?>

And then on that html code, replace http://www.missingstudios.com/ by


<?=$site_url?>

And let us know how did that workout.

matt_kidd
09-08-2008, 09:16 PM
hmm its not making any difference :confused:

weblive
09-08-2008, 09:53 PM
I suspected that... google parses your url in there when translating... I have no idea how to bypass that... I'd have to google around

spellDwhy
04-03-2009, 05:23 AM
I didn't know about the google translation. But I often the italian translation (http://www.bestitaliantranslation.com/) . I think that it's very well. Perhaps you can try it.

sea4me
04-03-2009, 11:03 PM
@spellDwhy

This thread is very old.....
:p



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum