From a77cf00504922e6d6f2b82fff0f064d2b4243165 Mon Sep 17 00:00:00 2001 From: Rimian Perkins Date: Mon, 27 Feb 2017 11:52:34 +1100 Subject: [PATCH] update name space in locales --- .../discourse/components/stripe-card.js.es6 | 2 +- .../discourse/templates/components/stripe-card.hbs | 10 +++++----- .../javascripts/discourse/templates/user/payments.hbs | 4 ++-- config/locales/client.de.yml | 2 +- config/locales/client.en.yml | 2 +- plugin.rb | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/assets/javascripts/discourse/components/stripe-card.js.es6 b/assets/javascripts/discourse/components/stripe-card.js.es6 index b8f5a6d..ac25c07 100644 --- a/assets/javascripts/discourse/components/stripe-card.js.es6 +++ b/assets/javascripts/discourse/components/stripe-card.js.es6 @@ -2,7 +2,7 @@ import { ajax } from 'discourse/lib/ajax'; export default Ember.Component.extend({ result: null, - paymentAmounts: [5, 10], + donateAmounts: [5, 10], amount: null, stripe: Stripe('pk_test_b8RmhzlL8QPizJRqOrKF3JEV'), diff --git a/assets/javascripts/discourse/templates/components/stripe-card.hbs b/assets/javascripts/discourse/templates/components/stripe-card.hbs index 15b111f..5983439 100644 --- a/assets/javascripts/discourse/templates/components/stripe-card.hbs +++ b/assets/javascripts/discourse/templates/components/stripe-card.hbs @@ -1,22 +1,22 @@
- +
- {{combo-box valueAttribute="value" content=paymentAmounts value=amount}} + {{combo-box valueAttribute="value" content=donateAmounts value=amount}}
- +
- + {{#if result}} - {{i18n 'discourse_payments.success'}} + {{i18n 'discourse_donations.success'}} {{/if}}
diff --git a/assets/javascripts/discourse/templates/user/payments.hbs b/assets/javascripts/discourse/templates/user/payments.hbs index bca741e..229f783 100644 --- a/assets/javascripts/discourse/templates/user/payments.hbs +++ b/assets/javascripts/discourse/templates/user/payments.hbs @@ -1,9 +1,9 @@ -{{#d-section pageClass="user-payments" class="user-content user-payments"}} +{{#d-section pageClass="user-donations" class="user-content user-donations"}}
diff --git a/config/locales/client.de.yml b/config/locales/client.de.yml index e59716b..79ea61b 100644 --- a/config/locales/client.de.yml +++ b/config/locales/client.de.yml @@ -1,6 +1,6 @@ en: js: - discourse_payments: + discourse_donations: title: Spenden amount: Betrag card: Kreditkarte oder Bankkarte diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 48de9f9..23708ec 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -1,6 +1,6 @@ en: js: - discourse_payments: + discourse_donations: title: Donate amount: Amount card: Credit or debit card diff --git a/plugin.rb b/plugin.rb index 7cb7de4..8869198 100644 --- a/plugin.rb +++ b/plugin.rb @@ -1,6 +1,6 @@ # name: discourse-donations # about: Integrating Discourse with Stripe for donations -# version: 1.6.1 +# version: 1.6.2 # url: https://github.com/choiceaustralia/discourse-donations # authors: Rimian Perkins