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":""
},
"popupHitDomainCountPrompt":{
"message":"domains touched",
"description":"appears in popup"
},
"popupHitDomainCount":{
"message":"{{count}} out of {{total}}",
"description":"appears in popup"
},

View file

@ -50,7 +50,7 @@ var touchedDomainCount = 0;
var rowsToRecycle = uDom();
var cachedPopupHash = '';
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())
.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 text = [];
if ( total === 0 ) {
text.push('0');
text.push(formatNumber(0));
} else {
text.push(
formatNumber(blocked),
@ -344,7 +344,7 @@ var renderPopup = function() {
total = popupData.globalAllowedRequestCount + blocked;
text = [];
if ( total === 0 ) {
text.push('0');
text.push(formatNumber(0));
} else {
text.push(
formatNumber(blocked),

View file

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