diff --git a/_locales/en_US/messages.json b/_locales/en_US/messages.json
index 72d0846..f9b2314 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.", |
| 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/_locales/es/messages.json b/_locales/es/messages.json
index b532925..01072e4 100644
a
|
b
|
|
149 | 149 | } |
150 | 150 | } |
151 | 151 | }, |
| 152 | "stats_share_no_ads_message": { |
| 153 | "description": "Este mensaje se envió a las redes sociales, si el usuario decide compartir las estadísticas.", |
| 154 | "message": "Estoy bloqueando anuncios y trackers gracias a Adblock Plus." |
| 155 | }, |
152 | 156 | "stats_share_title": { |
153 | 157 | "message": "Compartir estos números" |
154 | 158 | }, |
diff --git a/stats.js b/stats.js
index 5276f3d..2bee291 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", blockedCount); |
| 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("&"); |