diff options
author | gorhill <rhill@raymondhill.net> | 2015-02-06 18:20:33 -0500 |
---|---|---|
committer | gorhill <rhill@raymondhill.net> | 2015-02-06 18:20:33 -0500 |
commit | 2378a63cf0b10ec51da8df332bc56a750602683b (patch) | |
tree | 8bc615e7d7e70925481e52800684c79178c8d19f | |
parent | 99be9f5c3098cc833d4eb56c78f16aef22388026 (diff) | |
download | uBlock-2378a63cf0b10ec51da8df332bc56a750602683b.zip uBlock-2378a63cf0b10ec51da8df332bc56a750602683b.tar.gz uBlock-2378a63cf0b10ec51da8df332bc56a750602683b.tar.bz2 |
re. #704: forgot localized string
-rw-r--r-- | src/_locales/en/messages.json | 4 | ||||
-rw-r--r-- | src/js/popup.js | 8 | ||||
-rw-r--r-- | src/popup.html | 4 |
3 files changed, 10 insertions, 6 deletions
diff --git a/src/_locales/en/messages.json b/src/_locales/en/messages.json index 94edc24..fcf20f3 100644 --- a/src/_locales/en/messages.json +++ b/src/_locales/en/messages.json @@ -180,6 +180,10 @@ "description":"" }, "popupHitDomainCountPrompt":{ + "message":"domains touched", + "description":"appears in popup" + }, + "popupHitDomainCount":{ "message":"{{count}} out of {{total}}", "description":"appears in popup" }, diff --git a/src/js/popup.js b/src/js/popup.js index e83c070..ed864b7 100644 --- a/src/js/popup.js +++ b/src/js/popup.js @@ -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), diff --git a/src/popup.html b/src/popup.html index 3d08a00..07a39d4 100644 --- a/src/popup.html +++ b/src/popup.html @@ -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"></div> </div><!-- DO NOT REMOVE --><div> <div id="dynamicFilteringContainer"> |