1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-02 00:42:45 +01:00

re. #704: forgot localized string

This commit is contained in:
gorhill 2015-02-06 18:20:33 -05:00
parent 99be9f5c30
commit 2378a63cf0
3 changed files with 10 additions and 6 deletions

View File

@ -180,6 +180,10 @@
"description":"" "description":""
}, },
"popupHitDomainCountPrompt":{ "popupHitDomainCountPrompt":{
"message":"domains touched",
"description":"appears in popup"
},
"popupHitDomainCount":{
"message":"{{count}} out of {{total}}", "message":"{{count}} out of {{total}}",
"description":"appears in popup" "description":"appears in popup"
}, },

View File

@ -50,7 +50,7 @@ var touchedDomainCount = 0;
var rowsToRecycle = uDom(); var rowsToRecycle = uDom();
var cachedPopupHash = ''; var cachedPopupHash = '';
var orStr = vAPI.i18n('popupOr'); var orStr = vAPI.i18n('popupOr');
var domainsHitStr = vAPI.i18n('popupHitDomainCountPrompt'); var domainsHitStr = vAPI.i18n('popupHitDomainCount');
/******************************************************************************/ /******************************************************************************/
@ -302,7 +302,7 @@ var renderPrivacyExposure = function() {
var summary = domainsHitStr.replace('{{count}}', touchedDomainCount.toLocaleString()) var summary = domainsHitStr.replace('{{count}}', touchedDomainCount.toLocaleString())
.replace('{{total}}', allDomainCount.toLocaleString()); .replace('{{total}}', allDomainCount.toLocaleString());
uDom('#privacyExposure').text(summary); uDom('#popupHitDomainCount').text(summary);
}; };
/******************************************************************************/ /******************************************************************************/
@ -330,7 +330,7 @@ var renderPopup = function() {
var total = popupData.pageAllowedRequestCount + blocked; var total = popupData.pageAllowedRequestCount + blocked;
var text = []; var text = [];
if ( total === 0 ) { if ( total === 0 ) {
text.push('0'); text.push(formatNumber(0));
} else { } else {
text.push( text.push(
formatNumber(blocked), formatNumber(blocked),
@ -344,7 +344,7 @@ var renderPopup = function() {
total = popupData.globalAllowedRequestCount + blocked; total = popupData.globalAllowedRequestCount + blocked;
text = []; text = [];
if ( total === 0 ) { if ( total === 0 ) {
text.push('0'); text.push(formatNumber(0));
} else { } else {
text.push( text.push(
formatNumber(blocked), formatNumber(blocked),

View File

@ -23,8 +23,8 @@
<p class="statValue" id="page-blocked">?</p> <p class="statValue" id="page-blocked">?</p>
<p class="statName" data-i18n="popupBlockedSinceInstallPrompt"></p> <p class="statName" data-i18n="popupBlockedSinceInstallPrompt"></p>
<p class="statValue" id="total-blocked">?</p> <p class="statValue" id="total-blocked">?</p>
<h2>domains touched</h2> <h2 data-i18n="popupHitDomainCountPrompt"></h2>
<p class="statValue" id="privacyExposure"></p> <p class="statValue" id="popupHitDomainCount"></p>
<div id="refresh" class="fa">&#xf021;</div> <div id="refresh" class="fa">&#xf021;</div>
</div><!-- DO NOT REMOVE --><div> </div><!-- DO NOT REMOVE --><div>
<div id="dynamicFilteringContainer"> <div id="dynamicFilteringContainer">