diff --git a/_locales/en_US/messages.json b/_locales/en_US/messages.json
index 72d0846..fdf3362 100644
|
a
|
b
|
|
| 162 | 162 | } |
| 163 | 163 | } |
| 164 | 164 | }, |
| | 165 | "stats_share_no_ads_message": { |
| | 166 | "description": "This message will be posted to social networks if the user decides to share the stats and nothing has been blocked yet.", |
| | 167 | "message": "I am blocking ads and trackers thanks to Adblock Plus." |
| | 168 | }, |
| 165 | 169 | "stats_share_title": { |
| 166 | 170 | "description": "Title for the share buttons to share stats.", |
| 167 | 171 | "message": "Share these numbers" |
diff --git a/stats.js b/stats.js
index 5276f3d..c399fca 100644
|
a
|
b
|
|
| 61 | 61 | { |
| 62 | 62 | var value = params[key]; |
| 63 | 63 | if (value == messageMark) |
| 64 | | value = i18n.getMessage("stats_share_message", blockedCount); |
| | 64 | if (blockedCount == 0) |
| | 65 | value = i18n.getMessage("stats_share_no_ads_message"); |
| | 66 | else |
| | 67 | value = i18n.getMessage("stats_share_message", blockedCount); |
| 65 | 68 | querystring.push(encodeURIComponent(key) + "=" + encodeURIComponent(value)); |
| 66 | 69 | } |
| 67 | 70 | return url + "?" + querystring.join("&"); |