Jump to content

PHP URL redirect - google translate


pwalkerj

Recommended Posts

Does anyone have any suggestions on how I can get my google translation process to work trying to go

from
http://64.233.179.104/translate?&langpair=en%7Ces&u=http://www.urantiari.org/index.htm
to
http://64.233.179.104/translate_c?&langpair=en%7Ces&u=http://www.urantiari.org/index.htm

all in one click seemlessly behind the scenes so that users won't know what happened. This would remove the google _top frame and give my website a cleaner look. The first URL above does the translation engine, and the second will not, therefore I have to do the redirect to get rid of the _top frame.

I have another person's code on the website now and it works pretty good, but I would rather do my process because the translation engine drills down farther..  if only I can just pull off the automatic url redirect when a user clicks on the <a href... link.

Here's what I have so far that works fine but without the redirect capability.

thanks for your help, if you can!
-Peter
_________________________________

            <?php
            $source = "http://64.233.179.104/translate?&langpair=en%7C";
      //    $redirect = "http://64.233.179.104/translate_c?&langpair=en%7C";
            $domain = "&u=http://www.urantiari.org";
            $uri = $_SERVER['PHP_SELF'];
            $de = "de";
            $es = "es";
            $fr = "fr";
            $it = "it";
            $nl = "nl";
            $pt = "pt";
            $ru = "ru";
            $ar = "ar";
            $zh = "zh";
            $zt = "zt";
            $ja = "ja";
            $ko = "ko";
                     
            echo "<a href=http://mail.yahoo.com/config/login?/'$source$de$domain$uri'>Deutsch</a>&nbsp;&nbsp;&nbsp;&nbsp;";
            echo "<a href=http://mail.yahoo.com/config/login?/'$source$es$domain$uri'>&#69;&#115;&#112;&#97;&#241;&#111;&#108;</a>&nbsp;&nbsp;&nbsp;&nbsp;";
            echo "<a href=http://mail.yahoo.com/config/login?/'$source$fr$domain$uri'>&#70;&#114;&#97;&#110;&#231;&#97;&#105;&#115;</a>&nbsp;&nbsp;&nbsp;&nbsp;";
            echo "<a href=http://mail.yahoo.com/config/login?/'$source$it$domain$uri'>Italiano</a>&nbsp;&nbsp;&nbsp;&nbsp;";
      //    echo "<a href=http://mail.yahoo.com/config/login?/'$source$nl$domain$uri'>Nederlands</a>&nbsp;&nbsp;&nbsp;&nbsp;";
            echo "<a href=http://mail.yahoo.com/config/login?/'$source$pt$domain$uri'>&#80;&#111;&#114;&#116;&#117;&#103;&#117;&#234;&#115;</a>&nbsp;&nbsp;&nbsp;&nbsp;";
      //    echo "<a href=http://mail.yahoo.com/config/login?/'$source$ru$domain$uri'>&#1056;&#1091;&#1089;&#1089;&#1082;&#1086;</a>&nbsp;&nbsp;&nbsp;&nbsp;";
            echo "<a href=http://mail.yahoo.com/config/login?/'$source$ar$domain$uri'>[&#1571;&#1585;&#1576;&#1610;&#1603;]</a>&nbsp;&nbsp;&nbsp;&nbsp;";
            echo "<a href=http://mail.yahoo.com/config/login?/'$source$zh$domain$uri'>&#27721;&#35821;</a>&nbsp;&nbsp;&nbsp;&nbsp;";
      //    echo "<a href=http://mail.yahoo.com/config/login?/'$source$zt$domain$uri'>&#28450;&#35486;</a>&nbsp;&nbsp;&nbsp;&nbsp;";
            echo "<a href=http://mail.yahoo.com/config/login?/'$source$ja$domain$uri'>&#26085;&#26412;&#35486;</a>&nbsp;&nbsp;&nbsp;&nbsp;";
            echo "<a href=http://mail.yahoo.com/config/login?/'$source$ko$domain$uri'>&#54620;&#44397;&#50612;</a>&nbsp;&nbsp;&nbsp;&nbsp;";
            ?>
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.