Jump to content

[solved] Google translate code results into an error


HAIRWEBSHOP

Recommended Posts

Hello,

We want to add Google Translate code to our theme's header.tpl nav class, but for some reason it will result into an error.
Can someone please help us figure out what's going on?

 

We're not interested in using modules btw.

Thank you in advance!

Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/htdocs/www/themes/default-bootstrap/header.tpl" on line 102 "new google.translate.TranslateElement({pageLanguage: 'nl', includedLanguages: 'de,en,fr,nl', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, gaTrack: true, gaId: 'xxx'}, 'google_translate_element');" - Unexpected ": ", expected one of: "}" <-- thrown in/home/htdocs/www/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 102
Edited by HAIRWEBSHOP (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...