Thanks Josh, but I guess I didn't explain the problem well.
I wnat everything on the page translated, including the links - and
that happens.
BUT if the User clicks any link (already translated), and goes to
another page on the site, it is translated too. In fact the User is
"locked in" to having ALL pages translated.
I don't want a new page translated unless the User specifically clicks
the translation button on that page. Right now, clicking on
translation once locks the User into the translated pages for the
whole site, and there seems to be no easy way to get back from the
Google translator.
I'd like to kick out of the translator when the User clicks out of the
current page.
On Sep 15, 3:21 pm, Josh <[EMAIL PROTECTED]> wrote:
> So it sounds to me what you want is the page to be translated, but you
> don't want the links rewritten to go to further translated pages?
> Correct?
>
> Unfortunately I don't know how to do that, but you might be able to
> hack together some Javascript that after you page renders it goes
> through and corrects the links.
>
> Also, i'll point out that you could create links like:
>
> <style>
> .fakelink {
> color:blue;
> text-decoration: underline;
> }
> </style>
> <span class=fakelink onclick="javascript:window.location='/
> some_path'">click here</span>
>
> And I'm pretty sure those won't get rewritten.
>
> Best,
> Josh
>
> On Sep 15, 11:54 am, MikeG <[EMAIL PROTECTED]> wrote:
>
>
>
> > I currently am trying to use the following code to translate a page
> > from English into French when the User clicks a button, without having
> > the Translate gadget showing:
>
> > <a HREF="#" onClick="javascript:window.location='http://www.google.com/
> > translate_c?hl=en&langpair=en%7Cfr&u=' + window.location.href;"
>
> > >Français</a>
>
> > It works, but it "locks" the site into being translated, which is not
> > what I want. Once activated, the pages are all shown in French as the
> > User navigates through the site.
>
> > I want ONLY that one page, where the User has selected translation, to
> > be translated, and if the User clicks any link to another page, then
> > the Translator would stop, and show the new page in English. i.e. the
> > User should select French on any one page, and ONLY that one page
> > would be translated, and if clicking to anothr page, the translation
> > would stop. The User would then have to select translation on the new
> > page to see the translation into French.
>
> > Alternately, the User could hit an "English" button and have the
> > translator stop on any page.
>
> > Any suggestions?- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Translate" 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?hl=en
-~----------~----~----~----~------~----~------~--~---