{"action":"opened","issue":{"url":"https://api.github.com/repos/crankycoder/libmarisa/issues/11","repository_url":"https://api.github.com/repos/crankycoder/libmarisa","labels_url":"https://api.github.com/repos/crankycoder/libmarisa/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/crankycoder/libmarisa/issues/11/comments","events_url":"https://api.github.com/repos/crankycoder/libmarisa/issues/11/events","html_url":"https://github.com/crankycoder/libmarisa/issues/11","id":133306055,"number":11,"title":"Remove hard coded strings for the notification popup","user":{"login":"crankycoder","id":4829,"avatar_url":"https://avatars.githubusercontent.com/u/4829?v=3","gravatar_id":"","url":"https://api.github.com/users/crankycoder","html_url":"https://github.com/crankycoder","followers_url":"https://api.github.com/users/crankycoder/followers","following_url":"https://api.github.com/users/crankycoder/following{/other_user}","gists_url":"https://api.github.com/users/crankycoder/gists{/gist_id}","starred_url":"https://api.github.com/users/crankycoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crankycoder/subscriptions","organizations_url":"https://api.github.com/users/crankycoder/orgs","repos_url":"https://api.github.com/users/crankycoder/repos","events_url":"https://api.github.com/users/crankycoder/events{/privacy}","received_events_url":"https://api.github.com/users/crankycoder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-12T18:05:12Z","updated_at":"2016-02-12T18:05:12Z","closed_at":null,"body":"There's well defined i10n strings that are available for the notification popup available:\r\n\r\nhttps://dxr.mozilla.org/mozilla-central/source/browser/modules/SitePermissions.jsm#110\r\n\r\n```javascript\r\n  /* Returns the localized label for the given permission state, to be used in\r\n   * a UI for managing permissions.\r\n   */\r\n  getStateLabel: function (aPermissionID, aState) {\r\n    switch (aState) {\r\n      case this.UNKNOWN:\r\n        return gStringBundle.GetStringFromName(\"alwaysAsk\");\r\n      case this.ALLOW:\r\n        return gStringBundle.GetStringFromName(\"allow\");\r\n      case this.SESSION:\r\n        return gStringBundle.GetStringFromName(\"allowForSession\");\r\n      case this.BLOCK:\r\n        return gStringBundle.GetStringFromName(\"block\");\r\n      default:\r\n        throw new Error(\"unknown permission state\");\r\n    }\r\n  }\r\n};\r\n```\r\n\r\nCopy/pasta that into the addon\r\n"}}