MediaWiki:Gadget-Hitcounter-text.js: Skillnad mellan sidversioner
Ingen redigeringssammanfattning |
mIngen redigeringssammanfattning |
||
| (4 mellanliggande sidversioner av en annan användare visas inte) | |||
| Rad 3: | Rad 3: | ||
var text = $('#footer-info-viewcount').text(); | var text = $('#footer-info-viewcount').text(); | ||
$('#footer-info-viewcount').text(text.replace(/\.$/ sedan | if ($('html').attr('lang') == 'sv') { | ||
$('#footer-info-viewcount').text(text.replace(/\.$/, ' sedan 2020-09-25.')); | |||
} else { | |||
$('#footer-info-viewcount').text(text.replace(/\.$/, ' since 2020-09-25.')); | |||
} | |||
if (wgPageName === "Special:PopularPages") { | |||
var text = $('#firstHeading').text(); | |||
if ($('html').attr('lang') == 'sv') { | |||
$('#firstHeading').text('Populära sidor sedan 2020-09-25'); | |||
} else { | |||
$('#firstHeading').text('Popular pages since 2020-09-25'); | |||
} | |||
} | |||