Custom code not trasnlating
Apr 13, 2014 2:45 am by peaceandlove
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" /> </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
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
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 code | Jan 24, 2019 1:43 am | Replies: 1 | Post by: natastna2 |
504 timeout calling a custom function | Nov 28, 2018 10:34 am | Replies: 1 | Post by: fabbrichetta |
Custom menu with gtranslate function | Dec 4, 2018 3:14 am | Replies: 1 | Post by: luqman305 |
AJAX requests sent to wrong (with language code) URL | Sep 27, 2018 10:16 am | Replies: 3 | Post by: atriaforever |
Export all custom translations | Jul 5, 2018 11:50 am | Replies: 1 | Post by: sadashiv |