balazs-endresz / jquery-translate

Automatically exported from code.google.com/p/jquery-translate
5 stars 5 forks source link

I got a problem when customer comment on the page show with original first and show translated text after that ? #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
http://deliexpress.com.vn

I am using cookie for translate text on this page but I got problem because
customers comment on the text original first and then show translated text.

$('body').translate('english',that.language,
{toggle:true,fromOriginal:true,start:function(){},complete:function(){}});

I don't know how to fix ? 

Thanks for helps !

Original issue reported on code.google.com by vinhg...@gmail.com on 23 Jan 2010 at 2:51

GoogleCodeExporter commented 9 years ago
Sorry, but I don't really understand what you mean.
What I recognized is that if you translate one page then the other pages where 
you 
navigate aren't translated automatically. Is that the issue?

Original comment by balazs.endresz on 23 Jan 2010 at 8:53

GoogleCodeExporter commented 9 years ago
No. I mean that: The original page is English. I am using jquery translate and 
I use
cookie to save current language. But when I am on a page of French and after 
that
switching to other pages (also French) but the destination page firstly show
"English" and then switch to "French". I don't like that IE, I want to show 
French
immediately !

So that, I would like to ask you about the param to not show "orginal language" 
(here
is English) when on pages of French or Vietnamese !

Thank you so much !

Original comment by vinhg...@gmail.com on 25 Jan 2010 at 12:52

GoogleCodeExporter commented 9 years ago
Of course, when the page loads it shows up in the original language, it can't 
be 
otherwise. And the javascript can't translate content before it's downloaded to 
the 
client.
What you can do is to hide the whole page (at the beginning of the body tag) 
and show 
it only when it's translated, or rather just display an overlay, like here: 
http://www.texasonline.com

Original comment by balazs.endresz on 25 Jan 2010 at 1:42

GoogleCodeExporter commented 9 years ago

Original comment by balazs.endresz on 28 Jan 2010 at 6:57