From efa227fb1ffb3f9784ad4beda8915f6bae5ade83 Mon Sep 17 00:00:00 2001 From: sienori Date: Fri, 1 Jun 2018 20:45:21 +0900 Subject: [PATCH] Add a link of amazon gift cards to options page --- simple-translate/_locales/en/messages.json | 6 ++++++ simple-translate/options/options.html | 11 +++++++++++ simple-translate/options/ui.js | 1 + 3 files changed, 18 insertions(+) diff --git a/simple-translate/_locales/en/messages.json b/simple-translate/_locales/en/messages.json index ff2c0ef..48667b4 100644 --- a/simple-translate/_locales/en/messages.json +++ b/simple-translate/_locales/en/messages.json @@ -143,9 +143,15 @@ "donationCaptionLabel": { "message": "Thank you for using Simple Translate.
Your support will be a big encouragement, as I continue to develop the add-on.
If you like Simple Translate, I would be pleased if you could consider donating." }, + "amazonTitleLabel": { + "message": "amazon.co.jp eGift Cards" + }, "addonPageLabel": { "message": "Add-on page" }, + "amazonUrl": { + "message": "https://www.amazon.co.jp/dp/B004N3APGO?language=en_US" + }, "addonUrl": { "message": "https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/simple-translate\/?src=optionpage" }, diff --git a/simple-translate/options/options.html b/simple-translate/options/options.html index cf74a19..8dfe3d5 100644 --- a/simple-translate/options/options.html +++ b/simple-translate/options/options.html @@ -333,6 +333,17 @@ +
  • +
    +
    + + amazonギフト券 Eメールタイプ + +

    email: sienori.firefox+st@gmail.com

    +
    +
    +
  • +
  • diff --git a/simple-translate/options/ui.js b/simple-translate/options/ui.js index ae2e882..92f33d9 100644 --- a/simple-translate/options/ui.js +++ b/simple-translate/options/ui.js @@ -42,3 +42,4 @@ function readHash(e) { } document.getElementsByClassName("addonUrl")[0].href = browser.i18n.getMessage("addonUrl"); +document.getElementsByClassName("amazonUrl")[0].href = browser.i18n.getMessage("amazonUrl");