Jump to content

Archived

This topic is now archived and is closed to further replies.

pwalkerj

PHP URL redirect - google translate

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;";
            ?>

Share this post


Link to post
Share on other sites

×

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.