PDA

Zobacz pełną wersję : Przycisk facebook Be the first of your friends to like this



iopi
10-03-2012, 13:15
Pod każdym artykułem na stronie wyświetla mi się ów przycisk klik (http://www.ksawerow.org), chciałbym tą treść spolszczyć, badałem firebugiem gdzie to siedzi, ale nic nie znalazłem. Ktoś ma jakiś pomysł gdzie to może być
Szukałem w dodatkach i rozszerzeniach czy coś takiego mam i nie znalazłem

a_m
10-03-2012, 13:21
gk_twn2/html/com_k2/templates/default/item.php

znajdź:


js.src = "//connect.facebook.net/en_US/all.js#appId=177111755694317&xfbml=1";

i zmień en_US na pl_PL

iopi
10-03-2012, 13:42
Dziękuje

tym samym sposobem spolszczyłem przycisk Google + zmieniając z {lang: 'en'} na {lang: 'pl'}


przykład niżej

<!-- Google +1 Button -->
<div class="itemGooglePlusOneButton">
<g:plusone annotation="inline" width="120"></g:plusone>
<script type="text/javascript">
(function() {
window.___gcfg = {lang: 'en'}; // Define button default language here
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();


na:

<!-- Google +1 Button -->
<div class="itemGooglePlusOneButton">
<g:plusone annotation="inline" width="120"></g:plusone>
<script type="text/javascript">
(function() {
window.___gcfg = {lang: 'pl'}; // Define button default language here
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();