Google translate for site translation without the top frame


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
20 views
Google translate I'm comfortable suitable for translation of the site, but confused by the top frame with logo.
Tried separately shipping to the lower frame, but there is a security code that changes.

Maybe there are alternative services? API would not apply — no time for that. It's like the last option
by | 20 views

2 Answers

0 like 0 dislike
by
0 like 0 dislike
He has recently faced with a similar problem.
Here's my not too elegant solution for JQuery, suddenly someone come in handy.
\r
DeleteGoogleIframe function() { // Check if the page frame Google. // If there are other frames, the record will have to change. if($("iframe").length) { // Wait until the frame you see $("iframe").load(function() { // Hide bar Google via 250ms (timeout was selected experimentally) // Without using a timeout to remove the panel I failed. setTimeout(function() { // hide the panel $("iframe").hide(); }, 250); }); } } 

\r
Call function DeleteGoogleIframe need to add in code posted on the page:
\r
\r\rfunction googleTranslateElementInit() {\rnew google.translate.TranslateElement({\rpageLanguage: 'ru',\rincludedLanguages: 'en,ru'\r}, 'google_translate_element');\rDeleteGoogleIframe();\r}\r\r\r

\r
In addition, it is necessary to track the event language selection:
\r
$('.goog-te-combo').live('change', DeleteGoogleIframe); 
by

Related questions

0 like 0 dislike
4 answers
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
asked Mar 25, 2019 by Tant
0 like 0 dislike
5 answers
asked Mar 23, 2019 by dreamjke
0 like 0 dislike
2 answers
110,608 questions
257,186 answers
0 comments
38,658 users