Found a solution :

first this (php) code
/Copyright 2004 by Anand A. For authorized use by -RJ- Only
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++
// -----  FIND DOMAIN NAME ONLY (HOSTNAME) GIVEN ANY TYPE OF URL OR
TLD  -------------
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++
// | ADVERTISEMENT | Visit : www.polurnet.com
// VERSION 2.70  -- Integrated to One Function... Input any URL and
go!!

function parse_url_domain ($url) {
$raw_url= parse_url($url);
preg_match ("/\.([^\/]+)/", $raw_url['host'], $domain_only);
return strtolower($domain_only[1]);
}

/// Put URL Of Intrest Here :::   ///
$url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$myurl = parse_url_domain ($url);


Then a button that does the following :

<INPUT type="button" name="but1" value="Affichier l'orginal"
onclick='document.cookie = "googtrans=; expires=Thu, 01-Jan-70
00:00:01 GMT" + "; path=/";document.cookie = "googtrans=; expires=Thu,
01-Jan-70 00:00:01 GMT" + "; path=/; domain= .<?php echo $myurl; ?
>";window.location.reload();'>


Works for me.
Sheers,
Steven



On 16 nov, 13:46, stevenL wrote:
> Hi,
>
> Somebody must be doing something (alltough I don't know what) at
> Google.
> Sudenly the 'translate' and 'show original' buttons on the translate
> element
> are working.
>
> Now, is just left : How to put that 'show original' function button on
> your web-site.
> The implementation on the google page can not be used.
> They just keep the original in a seperate div.
>
> So, any ideas ?
>
> Steven

-- 
You received this message because you are subscribed to the Google Groups 
"General" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-translate-general?hl=en.

Reply via email to