Forum Archive - Custom code not trasnlating

Custom code not trasnlating
Apr 13, 2014 2:45 am by peaceandlove
Here is our website http://caribbeanscooterrentals.com/ You can see flags on the top, we are using Joomla 3 I had made a new module 'custom html' and place the following code <p><a class="alt_flag" style="background-position: -0px -200px;" title="English" onclick="doGTranslate('en|en');return false;" href="#"><img src="flags/canada.png" alt="English" width="32" height="32" /></a><a class="alt_flag" style="background-position: -0px -200px;" title="English" onclick="doGTranslate('en|en');return false;" href="#"><img src="flags/usa.png" alt="English" width="32" height="32" /></a><a class="flag nturl" style="background-position: -700px -0px;" title="Danish" onclick="doGTranslate('en|da');return false;" href="#"><img src="flags/danish.png" alt="Danish" width="32" height="32" /></a><a class="flag nturl" style="background-position: -200px -100px;" title="French" onclick="doGTranslate('en|fr');return false;" href="#"><img src="flags/france.png" alt="French" width="32" height="32" /></a><a class="flag nturl" style="background-position: -300px -100px;" title="German" onclick="doGTranslate('en|de');return false;" href="#"><img src="flags/germany.png" alt="German" width="32" height="32" /></a><a class="flag nturl" style="background-position: -600px -100px;" title="Italian" onclick="doGTranslate('en|it');return false;" href="#"><img src="flags/italy.png" alt="Italian" width="32" height="32" /></a><a class="flag nturl" style="background-position: -500px -200px;" title="Russian" onclick="doGTranslate('en|ru');return false;" href="#"><img src="flags/russia.png" alt="Russian" width="32" height="32" /></a><a class="flag nturl" style="background-position: -600px -200px;" title="Spanish" onclick="doGTranslate('en|es');return false;" href="#"><img src="flags/spain.png" alt="Spanish" width="32" height="32" />&nbsp;</a> </p> But when we click any lanaguge , nothing happend. Does i missed something in the code.
Re: Custom code not trasnlating
Apr 13, 2014 10:47 am by Edvard
Hi, I can see that you have placed only the flags, but not the javascript and css code. You need to get our HTML widget from https://gtranslate.io and make modifications on it. Thanks!
Re: Custom code not trasnlating
Apr 13, 2014 11:29 am by peaceandlove
Thanks I got your point and what i missed , will try to make it work

SIMILAR TOPICS

Large numbers of crawl errors with double language codeJan 24, 2019 1:43 amReplies: 1Post by: natastna2
504 timeout calling a custom functionNov 28, 2018 10:34 amReplies: 1Post by: fabbrichetta
Custom menu with gtranslate functionDec 4, 2018 3:14 amReplies: 1Post by: luqman305
AJAX requests sent to wrong (with language code) URLSep 27, 2018 10:16 amReplies: 3Post by: atriaforever
Export all custom translationsJul 5, 2018 11:50 amReplies: 1Post by: sadashiv

Try GTranslate with a free 15 day trial