I have created a static template with the following Google Translate widget code below but when i add this block to a layout it breaks the site. I've tried adding the js in
templates/addons/my_changes/hooks/index/scripts.post.tpl
as well to no avail. Can anyone tell me what i'm doing wrong?
[quote name='ketutg' timestamp='1427678350' post='209460']
I have created a static template with the following Google Translate widget code below but when i add this block to a layout it breaks the site. I've tried adding the js in
templates/addons/my_changes/hooks/index/scripts.post.tpl
as well to no avail. Can anyone tell me what i'm doing wrong?
[/quote]
Please make sure that { and } symbols do not exist on one string. Please try
```php
```
Thanks eComLabs. It works now. Did not know that having the { like that would break it.
Always safest to replace '{' with {ldelim} and '}' with {rdelim}.
It's a Smarty thang!
[quote name='ketutg' timestamp='1427866050' post='209783']
Thanks eComLabs. It works now. Did not know that having the { like that would break it.
[/quote]
You are welcome!
[quote name='tbirnseth' timestamp='1427866050' post='209783']
[color=#282828][font=arial, verdana, tahoma, sans-serif]It's a Smarty thang! [/font][/color]
[/quote]
{ and } on different strings is also feature of Smarty 3
Hello @ecom lab
We wish to integrate the similar widget on our front end which is based on Google translation API
So that the common visitor can switch between the languages and translate pages
Since we are afraid of making any changes at backend, can you please help us in this regard?
Sent from my LND-L29 using Tapatalk
Try the code above. Not sure if this service still supported by Google
We are asked by another developer that it no more supports Google API.
Can you please just try at your end to see the results?
Sent from my LND-L29 using Tapatalk
PL share screenshot
It’s not opening
Sent from my LND-L29 using Tapatalk
For some reason I cannot upload image here. But the URL from my post works correctly for me