From ab4ed2f776753d5f9322ea88e08e2caf003d82b3 Mon Sep 17 00:00:00 2001 From: gorhill Date: Fri, 18 Jul 2014 10:57:11 -0400 Subject: [PATCH] this fixes #81 --- _locales/en/messages.json | 4 ++++ js/popup.js | 9 +++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 1b5f5dc30..95e342214 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -47,6 +47,10 @@ "message":"since install", "description":"English: since install" }, + "popupOr":{ + "message":"or", + "description":"English: or" + }, "pickerCreate":{ "message":"Create", "description":"English: Create" diff --git a/js/popup.js b/js/popup.js index b0f948927..675e229cd 100644 --- a/js/popup.js +++ b/js/popup.js @@ -69,6 +69,7 @@ var renderStats = function() { isHTTP ); + var or = chrome.i18n.getMessage('popupOr'); var blocked = stats.pageBlockedRequestCount; var total = stats.pageAllowedRequestCount + blocked; var html = []; @@ -77,7 +78,9 @@ var renderStats = function() { } else { html.push( formatNumber(blocked), - ' or ', + ' ', + or, + ' ', (blocked * 100 / total).toFixed(0), '%' ); @@ -92,7 +95,9 @@ var renderStats = function() { } else { html.push( formatNumber(blocked), - ' or ', + ' ', + or, + ' ', (blocked * 100 / total).toFixed(0), '%' );