-
AuthorPosts
-
July 30, 2014 at 1:51 pm #200114
Can you tell me how and where to translate in French articles social sharing (Facebook button and comment “x persons like this…”) and also Google+ in the bottom of articles pages ?
http://www.patrick-lefebvre.be/blog/mes-news/89-s%C3%A9ance-de-portrait.html
Thanks by advance.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 31, 2014 at 4:09 am #543970Hi
You can’t translate them because FB does that for you. FB detects the language you use in your FB page to translate accordingly.
August 4, 2014 at 2:26 pm #544445I’m sorry but I think you are wrong :confused:
1.- Rightly, my Facebook page is in French !
2.- You can see on the top of this page that “Like” is justly translated to the French “J’Aime” (it’s in an iframe I put there), BUT in the bottom of the page, below the article, the “Like” and the text after are NOT translated !
WHY ?
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
August 5, 2014 at 9:14 am #544612Please try with my workaround as below:
– Open file: templatesja_lenshtmlcom_k2ja_lensitem.php
– Look for block of code which declare the Facebook button, at approx line: 232
[PHP]
<!– Facebook Button –>
<div class=”itemFacebookButton”>
<div id=”fb-root”></div>
<script type=”text/javascript”>
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = “//connect.facebook.net/en_US/all.js#appId=177111755694317&xfbml=1″;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));
</script>
<div class=”fb-like” data-send=”false” data-width=”270″ data-show-faces=”true”></div>
</div>
<?php endif; ?>
[/PHP]Replace this line:
js.src = "//connect.facebook.net/en_US/all.js#appId=177111755694317&xfbml=1";
With:
js.src = "//connect.facebook.net/fr_FR/all.js#appId=177111755694317&xfbml=1";
– And refresh your site again.
1 user says Thank You to Saguaros for this useful post
August 6, 2014 at 8:52 am #544776I did, but it was not the solution for my problem :((
In fact, it seemed that it was simply not sufficient…It is necessary to do the same modification in templatesja_lenshtmlcom_k2ja_lens_blogitem.php
And it’s now perfect ! 😎Thank you for your help 🙂
Note: it will be better to manage that function with the languages tools
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
August 6, 2014 at 1:48 pm #544821I think that’s a good idea, please try to put this request to K2 forum (as we inherit this default feature from K2) and see what they think.
If you have any other questions, just let me know and I’ll be happy to help. And have a fantastic day!
1 user says Thank You to Saguaros for this useful post
AuthorPostsViewing 6 posts - 1 through 6 (of 6 total)This topic contains 6 replies, has 2 voices, and was last updated by Saguaros 10 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
How to translate social sharing Facebook button in articles (Ja-Lens)
Viewing 6 posts - 1 through 6 (of 6 total)