update name space in locales

This commit is contained in:
Rimian Perkins 2017-02-27 11:52:34 +11:00
parent 3c1b351d3b
commit b6c213321b
6 changed files with 16 additions and 16 deletions

View File

@ -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'),

View File

@ -1,22 +1,22 @@
<form id="payment-form" class="form-horizontal">
<div class="control-group" style="width: 550px;">
<label class="control-label" for="card-element">{{i18n 'discourse_payments.amount'}}</label>
<label class="control-label" for="card-element">{{i18n 'discourse_donations.amount'}}</label>
<div class="controls controls-dropdown">
{{combo-box valueAttribute="value" content=paymentAmounts value=amount}}
{{combo-box valueAttribute="value" content=donateAmounts value=amount}}
</div>
</div>
<div class="control-group" style="width: 550px;">
<label class="control-label" for="card-element">{{i18n 'discourse_payments.card'}}</label>
<label class="control-label" for="card-element">{{i18n 'discourse_donations.card'}}</label>
<div id="card-element" class="controls"></div>
</div>
<div class="control-group save-button">
<div class="controls">
<button {{action "submitStripeCard"}} class="btn btn-primary">{{i18n 'discourse_payments.submit'}}</button>
<button {{action "submitStripeCard"}} class="btn btn-primary">{{i18n 'discourse_donations.submit'}}</button>
{{#if result}}
<span>{{i18n 'discourse_payments.success'}}</span>
<span>{{i18n 'discourse_donations.success'}}</span>
{{/if}}
</div>
</div>

View File

@ -1,9 +1,9 @@
{{#d-section pageClass="user-payments" class="user-content user-payments"}}
{{#d-section pageClass="user-donations" class="user-content user-donations"}}
<div class="user-table">
<div class="wrapper">
<section class="user-navigation">
<ul class="action-list nav-stacked">
<li class="no-glyph">{{i18n 'discourse_payments.title'}}</li>
<li class="no-glyph">{{i18n 'discourse_donations.title'}}</li>
</ul>
</section>
<section class="user-right">

View File

@ -1,8 +1,8 @@
en:
js:
discourse_payments:
title: Donate
amount: Amount
card: Credit or debit card
success: Payment Successful!
submit: Make Payment
discourse_donations:
title: Spenden
amount: Betrag
card: Kreditkarte oder Bankkarte
success: Bezahlung erfolgreich !
submit: Spende bezahlen

View File

@ -1,6 +1,6 @@
en:
js:
discourse_payments:
discourse_donations:
title: Donate
amount: Amount
card: Credit or debit card

View File

@ -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