Ticket #142: path.diff

File path.diff, 1.6 KB (added by ileonelperea, on 04/23/2014 at 06:52:00 PM)
  • _locales/en_US/messages.json

    diff --git a/_locales/en_US/messages.json b/_locales/en_US/messages.json
    index 72d0846..f9b2314 100644
    a b  
    162162      } 
    163163    } 
    164164  }, 
     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  }, 
    165169  "stats_share_title": { 
    166170    "description": "Title for the share buttons to share stats.", 
    167171    "message": "Share these numbers" 
  • _locales/es/messages.json

    diff --git a/_locales/es/messages.json b/_locales/es/messages.json
    index b532925..01072e4 100644
    a b  
    149149      } 
    150150    } 
    151151  }, 
     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  }, 
    152156  "stats_share_title": { 
    153157    "message": "Compartir estos números" 
    154158  }, 
  • stats.js

    diff --git a/stats.js b/stats.js
    index 5276f3d..2bee291 100644
    a b  
    6161    { 
    6262      var value = params[key]; 
    6363      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); 
    6568      querystring.push(encodeURIComponent(key) + "=" + encodeURIComponent(value)); 
    6669    } 
    6770    return url + "?" + querystring.join("&");