- Posts: 41
- Thank you received: 0
Spanish language in the button Gogle +1
- diosneptuno
-
Topic Author
- Offline
Less
More
14 years 8 months ago - 14 years 8 months ago #36644
by diosneptuno
Spanish language in the button Gogle +1 was created by diosneptuno
Hi
Please where I can change the language to Spanish in the button "Google +1" in products?
Thank you
Andreu
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.
14 years 8 months ago #36699
by nicolas
Replied by nicolas on topic Re: Spanish language in the button Gogle +1
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.
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.
- diosneptuno
-
Topic Author
- Offline
Less
More
- Posts: 41
- Thank you received: 0
14 years 8 months ago #36850
by diosneptuno
Replied by diosneptuno on topic Re: Spanish language in the button Gogle +1
Hello Nicolas:
Not works well, is still in English not in Spanish
Any other ideas?
Thank you
Andreu
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.
14 years 8 months ago #36852
by nicolas
Replied by nicolas on topic Re: Spanish language in the button Gogle +1
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
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.
- diosneptuno
-
Topic Author
- Offline
Less
More
- Posts: 41
- Thank you received: 0
14 years 8 months ago #36855
by diosneptuno
Replied by diosneptuno on topic Re: Spanish language in the button Gogle +1
Hi
Thank you very much, I have the bussines edition, I will update now.
Andreu
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.
- diosneptuno
-
Topic Author
- Offline
Less
More
- Posts: 41
- Thank you received: 0
14 years 8 months ago #36891
by diosneptuno
Replied by diosneptuno on topic Re: Spanish language in the button Gogle +1
Hi Nicolas:
Thank you very much, I have updated and now works perfect
Andreu
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