Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 11 of 11
  1. #1
    New Coder
    Join Date
    Aug 2008
    Posts
    21
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Google Webpage translation why does it do this? how can i fix it?

    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

  • #2
    Regular Coder
    Join Date
    May 2008
    Location
    Lost in Localhost...
    Posts
    702
    Thanks
    3
    Thanked 43 Times in 42 Posts
    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.

  • Users who have thanked Millenia for this post:

    matt_kidd (09-08-2008)

  • #3
    New Coder
    Join Date
    Jan 2008
    Location
    Portugal
    Posts
    17
    Thanks
    0
    Thanked 2 Times in 2 Posts
    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)

  • #4
    New Coder
    Join Date
    Aug 2008
    Posts
    21
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by weblive View Post
    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?

  • #5
    New Coder
    Join Date
    Jan 2008
    Location
    Portugal
    Posts
    17
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Ok, what code did you put on your website (just the bit for the translation)? (PHP Source, if that's the case)

  • #6
    New Coder
    Join Date
    Aug 2008
    Posts
    21
    Thanks
    4
    Thanked 0 Times in 0 Posts
    PHP Code:
    <!-- 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

  • #7
    New Coder
    Join Date
    Jan 2008
    Location
    Portugal
    Posts
    17
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Hmm, it's weird that that code gets switched by google...

    Try doing this before that code:

    PHP Code:
    <? $site_url "http://www.missingstudios.com/"?>
    And then on that html code, replace http://www.missingstudios.com/ by

    PHP Code:
    <?=$site_url?>
    And let us know how did that workout.

  • #8
    New Coder
    Join Date
    Aug 2008
    Posts
    21
    Thanks
    4
    Thanked 0 Times in 0 Posts
    hmm its not making any difference

  • #9
    New Coder
    Join Date
    Jan 2008
    Location
    Portugal
    Posts
    17
    Thanks
    0
    Thanked 2 Times in 2 Posts
    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

  • #10
    New to the CF scene
    Join Date
    Apr 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I didn't know about the google translation. But I often the italian translation . I think that it's very well. Perhaps you can try it.

  • #11
    Regular Coder sea4me's Avatar
    Join Date
    Jan 2009
    Location
    Damn, I don't know...
    Posts
    390
    Thanks
    11
    Thanked 28 Times in 27 Posts
    @spellDwhy

    This thread is very old.....


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •