Skip to main content

Spanish language in the button Gogle +1

More
14 years 8 months ago - 14 years 8 months ago #36644 by diosneptuno
Hi

Please where I can change the language to Spanish in the button "Google +1" in products?

Thank you

Andreu
Last edit: 14 years 8 months ago by diosneptuno.

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #36699 by nicolas
Hi,

Could you try to change the code:
$body=str_replace('</head>', '<script type="text/javascript" src=" apis.google.com/js/plusone.js ">', $body);

by:
$mainLang = &JFactory::getLanguage();
$tag = $mainLang->get('tag');
if(!in_array($tag,array('zh-CN','zh-TW','en-GB','en-US','pt-BR','pt-PT'))) $tag=strtolower(substr($tag,0,2));
$lang = '{"lang": "'.$tag.'"}';
$body=str_replace('</head>', '<script type="text/javascript" src=" apis.google.com/js/plusone.js ">'.$lang.'', $body);

in the file plugins/content/hikashopsocial.php
That should allow google to use the correct language automatically.

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #36850 by diosneptuno
Hello Nicolas:

Not works well, is still in English not in Spanish :(
Any other ideas?

Thank you

Andreu

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #36852 by nicolas
Hi,

We included the modification in the new release of HikaShop that we did yesterday. The modification is working great. You can see it on our demo website. When you change the language, the google +1 language changes too.

So you can just update HikaShop to the new version and it should work for you too. The new version can be downloaded on your subscription page (or the download page for the Starter edition) on our website

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #36855 by diosneptuno
Hi

Thank you very much, I have the bussines edition, I will update now.

Andreu

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #36891 by diosneptuno
Hi Nicolas:

Thank you very much, I have updated and now works perfect

Andreu

Please Log in or Create an account to join the conversation.

Time to create page: 0.220 seconds
Powered by Kunena Forum