diff options
author | Moonchild <git-repo@palemoon.org> | 2020-02-19 21:23:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-19 21:23:24 +0100 |
commit | 0a8530b91630440aa2f478d729cd7b92128883c4 (patch) | |
tree | 641793ad955a6bb1018f174ae73760030beefa48 /toolkit | |
parent | e6b48cb648c7ec7f355fbdd7fd638e472a2aee93 (diff) | |
parent | c220c30bbb25015d85bd243a6445ca84401297a9 (diff) | |
download | uxp-0a8530b91630440aa2f478d729cd7b92128883c4.tar.gz |
Merge pull request #1455 from JustOff/issue1445_details_url
Add a link to details on using Firefox extensions in Pale Moon
Diffstat (limited to 'toolkit')
3 files changed, 10 insertions, 0 deletions
diff --git a/toolkit/locales/en-US/chrome/mozapps/extensions/extensions.properties b/toolkit/locales/en-US/chrome/mozapps/extensions/extensions.properties index fc46037cbf..0b5ec69a18 100644 --- a/toolkit/locales/en-US/chrome/mozapps/extensions/extensions.properties +++ b/toolkit/locales/en-US/chrome/mozapps/extensions/extensions.properties @@ -32,6 +32,7 @@ notification.softblocked=%1$S is known to cause issues. notification.softblocked.link=More Information #LOCALIZATION NOTE (notification.compatibility) %1$S is the add-on name, %2$S is brand name notification.compatibility=%1$S was not designed for %2$S. It may not function properly or cease to function. +notification.compatibility.link=More Information #LOCALIZATION NOTE (notification.outdated) %1$S is the add-on name notification.outdated=An important update is available for %1$S. notification.outdated.link=Update Now @@ -82,6 +83,7 @@ details.notification.blocked=%1$S has been disabled due to security or stability details.notification.blocked.link=More Information #LOCALIZATION NOTE (details.notification.compatibility) %1$S is the add-on name, %2$S is brand name details.notification.compatibility=%1$S was not designed for %2$S. It may not function properly or cease to function. +details.notification.compatibility.link=More Information #LOCALIZATION NOTE (details.notification.softblocked) %1$S is the add-on name details.notification.softblocked=%1$S is known to cause issues. details.notification.softblocked.link=More Information diff --git a/toolkit/mozapps/extensions/content/extensions.js b/toolkit/mozapps/extensions/content/extensions.js index 782fca303b..3c3b5894b7 100644 --- a/toolkit/mozapps/extensions/content/extensions.js +++ b/toolkit/mozapps/extensions/content/extensions.js @@ -3067,6 +3067,10 @@ var gDetailView = { "details.notification.compatibility", [this._addon.name, gStrings.brandShortName], 2 ); + var warningLink = document.getElementById("detail-warning-link"); + warningLink.value = gStrings.ext.GetStringFromName("details.notification.compatibility.link"); + warningLink.href = Services.urlFormatter.formatURLPref("extensions.compatibility.url"); + warningLink.hidden = false; #endif } else { this.node.removeAttribute("notification"); diff --git a/toolkit/mozapps/extensions/content/extensions.xml b/toolkit/mozapps/extensions/content/extensions.xml index 097410fd2c..e2eef852a7 100644 --- a/toolkit/mozapps/extensions/content/extensions.xml +++ b/toolkit/mozapps/extensions/content/extensions.xml @@ -1363,6 +1363,10 @@ "notification.compatibility", [this.mAddon.name, gStrings.brandShortName], 2 ); + this._warningLink.value = gStrings.ext.GetStringFromName("notification.compatibility.link"); + this._warningLink.href = Services.urlFormatter.formatURLPref("extensions.compatibility.url"); + this._warningLink.hidden = false; + this._warningBtn.hidden = true; } } #endif |