diff --git a/src/components/donations/AddDonationPaymentModal.svelte b/src/components/donations/AddDonationPaymentModal.svelte index b8d25d16..8c85e633 100644 --- a/src/components/donations/AddDonationPaymentModal.svelte +++ b/src/components/donations/AddDonationPaymentModal.svelte @@ -33,7 +33,7 @@ if (processed_last_submit === true) { processed_last_submit = false; const toast = Toastify({ - text: "Updating Donation", + text: $_('updating-donation'), duration: -1, }).showToast(); editable.donor = editable.donor.id; @@ -48,7 +48,7 @@ payment_modal_open = false; // Toastify({ - text: "Donation updated", + text: $_('donation-updated'), duration: 500, backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)", }).showToast(); @@ -73,7 +73,7 @@ payment_modal_open = false; // Toastify({ - text: "Donation updated", + text: $_('donation-updated'), duration: 500, backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)", }).showToast(); @@ -133,11 +133,11 @@

- Add or Update a payment + {$_('enter-payment')}

- You can update the donation's paid amount manually or use the TODO button to use the donation's exact amount. + {$_('you-can-enter-the-donations-paid-amount-manually-or-use-the-max-button-to-use-the-donations-exact-amount')}

@@ -170,7 +170,7 @@ {#if !is_amount_valid} - Payment amount must be greater than 0.00€ + {$_('payment-amount-must-be-greater-than-0-00eur')} {/if}
diff --git a/src/components/donations/DonationDetail.svelte b/src/components/donations/DonationDetail.svelte index 1a1e6a75..5dd6e089 100644 --- a/src/components/donations/DonationDetail.svelte +++ b/src/components/donations/DonationDetail.svelte @@ -66,7 +66,7 @@ function submit() { if (data_loaded === true && save_enabled) { Toastify({ - text: "Donation is being updated", + text: $_('updating-donation'), duration: 2500, }).showToast(); let postdata = {}; @@ -83,7 +83,7 @@ Object.assign(original_data, editable); original_data = original_data; Toastify({ - text: "updated donation", + text: $_('donation-updated'), duration: 2500, backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)", }).showToast(); @@ -98,7 +98,7 @@ Object.assign(original_data, editable); original_data = original_data; Toastify({ - text: "updated donation", + text: $_('donation-updated'), duration: 2500, backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)", }).showToast(); @@ -112,7 +112,7 @@ DonationService.donationControllerRemove(original_data.id, false) .then((resp) => { Toastify({ - text: "Donation delete", + text: $_('donation-deleted'), duration: 500, backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)", }).showToast(); diff --git a/src/components/donations/DonationsOverview.svelte b/src/components/donations/DonationsOverview.svelte index 469380ba..9184f6bf 100644 --- a/src/components/donations/DonationsOverview.svelte +++ b/src/components/donations/DonationsOverview.svelte @@ -187,7 +187,7 @@ (obj) => obj.id !== donation.id ); Toastify({ - text: 'Donation deleted', + text: $_('donation-deleted'), duration: 500, backgroundColor: 'linear-gradient(to right, #00b09b, #96c93d)', @@ -203,7 +203,7 @@ class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium"> + class="text-green-600 hover:text-green-900 mr-4">{$_('enter-payment')} {$_('details')} diff --git a/src/locales/de.json b/src/locales/de.json index 0f8448f9..bf8f6870 100644 --- a/src/locales/de.json +++ b/src/locales/de.json @@ -438,5 +438,11 @@ "paid": "BEZAHLT", "open": "OFFEN", "already-paid": "Bereits bezahlt", - "unpaid": "Offen" + "unpaid": "Offen", + "enter-payment": "Zahlung eingeben", + "you-can-enter-the-donations-paid-amount-manually-or-use-the-max-button-to-use-the-donations-exact-amount": "Du kannst den Betrag der Zahlung entweder manuell eingeben oder über den MAX Button auf den Spendenbetrag setzen", + "payment-amount-must-be-greater-than-0-00eur": "Der Zahlungsbetrag muss größer als 0.00€ sein!", + "donation-updated": "Sponsoring wurde aktualisiert", + "updating-donation": "Sponsoring wird aktualisiert", + "donation-deleted": "Sponsoring gelöscht" } diff --git a/src/locales/en.json b/src/locales/en.json index 15262fb9..ccd53720 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -438,5 +438,12 @@ "paid": "PAID", "open": "OPEN", "already-paid": "Already paid", - "unpaid": "Unpaid" + "unpaid": "Unpaid", + "enter-payment": "Enter payment", + "add-or-update-a-payment": "Add or update a payment", + "you-can-enter-the-donations-paid-amount-manually-or-use-the-max-button-to-use-the-donations-exact-amount": "You can enter the donation's paid amount manually or use the MAX button to use the donation's exact amount.", + "payment-amount-must-be-greater-than-0-00eur": "Payment amount must be greater than 0.00€!", + "donation-updated": "Donation updated", + "updating-donation": "Updating donation", + "donation-deleted": "Donation deleted" }