WebSite X5Help Center

 
Ricky B.
Ricky B.
User

Google Translate object not repsonsive on mobile phone  en

Автор: Ricky B.
Просмотрено 105, Подписчики 2, Размещенный 0  

I have installed the object: Google Translate. However, when users try to use it, they only see a limited number of available languages. Only part of the language list appears on their phone screens, and the rest cannot be accessed.

I’ve read about possible solutions that involve using a custom script. Unfortunately, I’m not advanced enough to apply such a solution. The instructions just say “use this script,” but they don’t explain where or how to implement it.

Could someone please help me with a clear, step-by-step explanation on how to solve this problem? Ideally, I would like all the available languages to be visible or accessible for mobile users as well. Thank you in advance!

Размещено
5 Ответы - 2 Полезно
Daniel W.
Daniel W.
User
Лучший пользователь месяца DEЛучший пользователь месяца EN

A similar script was posted here in the community, but I can't find the post.

Can you please provide the address where this script can be found?

Читать больше
Размещено От Daniel W.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Лучший пользователь месяца IT

(It > En) ...Unfortunately, this is an object that has become obsolete with the introduction of translation functions implemented directly in browsers, and for this reason it has not received recent updates.
... the problem is known and the STAFF is working on a modification to make it optimally usable again, but the timing is unknown...
... if you post your LINK I can do a concrete check...
... however, if you want to continue using this same object, you can make it usable by adding this EXTRA code of mine,
to be inserted in Step 1 - Settings ---> Statistics and Code in the "Before closing the HEAD tag" section:

<script>
$( document ).ready(function() { //K>;
/** --- rilevamento - giustificazione google translator vert. x WSx5 by KolAsim --- **/
nK=0;
TGobjectK = "iframe.VIpgJd-ZVi9od-xl07Ob-OEVmcd";
//-------------------------------
rilevaK =setInterval(function(){//K1>
nK=nK+1;
gtwK = $("#google_translate_element").width();
if(gtwK > 100 || nK > 20) {//K2>;
//alert(nK); // controllo rilevamento nK
$("#google_translate_element").click(function(){//K3>;
finestraGTK();
})//K3<<;
//-------------------------------
$(TGobjectK).contents().click(function(){//K4>;
setTimeout(function(){finestraGTK();}, 500);//K5>|<<;
})//K4<<;
clearInterval(rilevaK); rilevaK = 0;
} //K2<<;
}, 500);//K1<<;
}) //K<<;
//-------------------------------
function finestraGTK(){//K8>;
hK = (window.innerHeight)-100;
setTimeout(function(){//K7>;
wrapK = '<div style="height:'+hK+'px;overflow-y:scroll"> </div>';
$(TGobjectK).contents().find("tbody").wrap(wrapK);
$(TGobjectK).contents().find("td").css("display","block ");
$(TGobjectK).contents().find("body *").css('font-size','24px');
}, 100); //K7<<;
}//K6>>;
</script>

.

ciao

.

Читать больше
Размещено От  ‪ KolAsim ‪ ‪
Ricky B.
Ricky B.
User
Автор

The script you posted works perfectly! Thanks for the script and instructions, it's much appreciated!

Читать больше
Размещено От Ricky B.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Лучший пользователь месяца IT

... OK ... ciao

.

Читать больше
Размещено От  ‪ KolAsim ‪ ‪