Wallos: Open-source, self-hostable personal subscription tracker. Visualize your recurring expenses, manage your budget, and save money.
message for when a payment method is deleted (#201)
Davi Alexandre23e3a189d0e9
diff --git a/endpoints/payments/delete.php b/endpoints/payments/delete.phpindex 36f6602..25d9b86 100644--- a/endpoints/payments/delete.php+++ b/endpoints/payments/delete.php@@ -8,10 +8,10 @@ if (isset($_SESSION['loggedin']) && $_SESSION['loggedin'] === true) {$deleteQuery = "DELETE FROM payment_methods WHERE id = :paymentMethodId";$deleteStmt = $db->prepare($deleteQuery);$deleteStmt->bindParam(':paymentMethodId', $paymentMethodId, SQLITE3_INTEGER);-+if ($deleteStmt->execute()) {$success['success'] = true;- $success['message'] = translate('payment_method_added_successfuly', $i18n);+ $success['message'] = translate('payment_method_removed', $i18n);$json = json_encode($success);header('Content-Type: application/json');echo $json;@@ -26,4 +26,4 @@ if (isset($_SESSION['loggedin']) && $_SESSION['loggedin'] === true) {}$db->close();-?>\ No newline at end of file+?>diff --git a/includes/i18n/en.php b/includes/i18n/en.phpindex cfcc650..9ae7b9a 100644--- a/includes/i18n/en.php+++ b/includes/i18n/en.php@@ -141,6 +141,7 @@ $i18n = ["add_custom_payment" => "Add Custom Payment Method","payment_method_name" => "Payment Method Name","payment_method_added_successfuly" => "Payment method added successfully",+ "payment_method_removed" => "Payment method removed","disable" => "Disable","enable" => "Enable","rename_payment_method" => "Rename Payment Method",diff --git a/includes/i18n/pt_br.php b/includes/i18n/pt_br.phpindex 919fc33..b980cb0 100644--- a/includes/i18n/pt_br.php+++ b/includes/i18n/pt_br.php@@ -139,6 +139,7 @@ $i18n = ["add_custom_payment" => "Adicionar um método de pagamento personalizado","payment_method_name" => "Nome do método de pagamento","payment_method_added_successfuly" => "Método de pagamento adicionado com sucesso",+ "payment_method_removed" => "Método de pagamento excluído","disable" => "Desativar","enable" => "Ativar","rename_payment_method" => "Renomear método de pagamento",@@ -166,7 +167,7 @@ $i18n = ["category_in_use" => "Essa categoria está em uso em uma assinatura e não pode ser removida","failed_remove_category" => "Erro ao remover categoria","category_saved" => "Categoria salva",- "category_removed" => "Category excluída",+ "category_removed" => "Categoria excluída","sort_order_saved" => "Direção de ordenação salva",// Currency"currency_saved" => "foi salva.",