From d5b478fb849ea62fdb3b1cf619d5e2be7761d8c0 Mon Sep 17 00:00:00 2001 From: devansh bawari Date: Mon, 22 Feb 2021 18:33:03 +0530 Subject: [PATCH] Translation Added --- .../Paypal/src/Providers/PaypalServiceProvider.php | 4 +++- packages/Webkul/Paypal/src/Resources/lang/ar/app.php | 9 +++++++++ packages/Webkul/Paypal/src/Resources/lang/de/app.php | 9 +++++++++ packages/Webkul/Paypal/src/Resources/lang/en/app.php | 9 +++++++++ packages/Webkul/Paypal/src/Resources/lang/fa/app.php | 9 +++++++++ packages/Webkul/Paypal/src/Resources/lang/it/app.php | 9 +++++++++ packages/Webkul/Paypal/src/Resources/lang/ja/app.php | 9 +++++++++ packages/Webkul/Paypal/src/Resources/lang/nl/app.php | 9 +++++++++ packages/Webkul/Paypal/src/Resources/lang/pl/app.php | 9 +++++++++ packages/Webkul/Paypal/src/Resources/lang/pt_BR/app.php | 9 +++++++++ packages/Webkul/Paypal/src/Resources/lang/tr/app.php | 9 +++++++++ .../views/checkout/onepage/paypal-smart-button.blade.php | 6 +++--- 12 files changed, 96 insertions(+), 4 deletions(-) create mode 100644 packages/Webkul/Paypal/src/Resources/lang/ar/app.php create mode 100644 packages/Webkul/Paypal/src/Resources/lang/de/app.php create mode 100644 packages/Webkul/Paypal/src/Resources/lang/en/app.php create mode 100644 packages/Webkul/Paypal/src/Resources/lang/fa/app.php create mode 100644 packages/Webkul/Paypal/src/Resources/lang/it/app.php create mode 100644 packages/Webkul/Paypal/src/Resources/lang/ja/app.php create mode 100644 packages/Webkul/Paypal/src/Resources/lang/nl/app.php create mode 100644 packages/Webkul/Paypal/src/Resources/lang/pl/app.php create mode 100644 packages/Webkul/Paypal/src/Resources/lang/pt_BR/app.php create mode 100644 packages/Webkul/Paypal/src/Resources/lang/tr/app.php diff --git a/packages/Webkul/Paypal/src/Providers/PaypalServiceProvider.php b/packages/Webkul/Paypal/src/Providers/PaypalServiceProvider.php index b815ed97b..097a817e3 100755 --- a/packages/Webkul/Paypal/src/Providers/PaypalServiceProvider.php +++ b/packages/Webkul/Paypal/src/Providers/PaypalServiceProvider.php @@ -15,6 +15,8 @@ class PaypalServiceProvider extends ServiceProvider { include __DIR__ . '/../Http/routes.php'; + $this->loadTranslationsFrom(__DIR__ . '/../Resources/lang', 'paypal'); + $this->loadViewsFrom(__DIR__ . '/../Resources/views', 'paypal'); $this->app->register(EventServiceProvider::class); @@ -29,7 +31,7 @@ class PaypalServiceProvider extends ServiceProvider { $this->registerConfig(); } - + /** * Register package config. * diff --git a/packages/Webkul/Paypal/src/Resources/lang/ar/app.php b/packages/Webkul/Paypal/src/Resources/lang/ar/app.php new file mode 100644 index 000000000..796b54254 --- /dev/null +++ b/packages/Webkul/Paypal/src/Resources/lang/ar/app.php @@ -0,0 +1,9 @@ + [ + 'universal-error' => 'Something went wrong!', + 'sdk-validation-error' => 'Client ID not recognized for either production or sandbox!', + 'authorization-error' => 'Client ID and Client Secret should be valid!' + ] +]; diff --git a/packages/Webkul/Paypal/src/Resources/lang/de/app.php b/packages/Webkul/Paypal/src/Resources/lang/de/app.php new file mode 100644 index 000000000..796b54254 --- /dev/null +++ b/packages/Webkul/Paypal/src/Resources/lang/de/app.php @@ -0,0 +1,9 @@ + [ + 'universal-error' => 'Something went wrong!', + 'sdk-validation-error' => 'Client ID not recognized for either production or sandbox!', + 'authorization-error' => 'Client ID and Client Secret should be valid!' + ] +]; diff --git a/packages/Webkul/Paypal/src/Resources/lang/en/app.php b/packages/Webkul/Paypal/src/Resources/lang/en/app.php new file mode 100644 index 000000000..796b54254 --- /dev/null +++ b/packages/Webkul/Paypal/src/Resources/lang/en/app.php @@ -0,0 +1,9 @@ + [ + 'universal-error' => 'Something went wrong!', + 'sdk-validation-error' => 'Client ID not recognized for either production or sandbox!', + 'authorization-error' => 'Client ID and Client Secret should be valid!' + ] +]; diff --git a/packages/Webkul/Paypal/src/Resources/lang/fa/app.php b/packages/Webkul/Paypal/src/Resources/lang/fa/app.php new file mode 100644 index 000000000..796b54254 --- /dev/null +++ b/packages/Webkul/Paypal/src/Resources/lang/fa/app.php @@ -0,0 +1,9 @@ + [ + 'universal-error' => 'Something went wrong!', + 'sdk-validation-error' => 'Client ID not recognized for either production or sandbox!', + 'authorization-error' => 'Client ID and Client Secret should be valid!' + ] +]; diff --git a/packages/Webkul/Paypal/src/Resources/lang/it/app.php b/packages/Webkul/Paypal/src/Resources/lang/it/app.php new file mode 100644 index 000000000..796b54254 --- /dev/null +++ b/packages/Webkul/Paypal/src/Resources/lang/it/app.php @@ -0,0 +1,9 @@ + [ + 'universal-error' => 'Something went wrong!', + 'sdk-validation-error' => 'Client ID not recognized for either production or sandbox!', + 'authorization-error' => 'Client ID and Client Secret should be valid!' + ] +]; diff --git a/packages/Webkul/Paypal/src/Resources/lang/ja/app.php b/packages/Webkul/Paypal/src/Resources/lang/ja/app.php new file mode 100644 index 000000000..796b54254 --- /dev/null +++ b/packages/Webkul/Paypal/src/Resources/lang/ja/app.php @@ -0,0 +1,9 @@ + [ + 'universal-error' => 'Something went wrong!', + 'sdk-validation-error' => 'Client ID not recognized for either production or sandbox!', + 'authorization-error' => 'Client ID and Client Secret should be valid!' + ] +]; diff --git a/packages/Webkul/Paypal/src/Resources/lang/nl/app.php b/packages/Webkul/Paypal/src/Resources/lang/nl/app.php new file mode 100644 index 000000000..796b54254 --- /dev/null +++ b/packages/Webkul/Paypal/src/Resources/lang/nl/app.php @@ -0,0 +1,9 @@ + [ + 'universal-error' => 'Something went wrong!', + 'sdk-validation-error' => 'Client ID not recognized for either production or sandbox!', + 'authorization-error' => 'Client ID and Client Secret should be valid!' + ] +]; diff --git a/packages/Webkul/Paypal/src/Resources/lang/pl/app.php b/packages/Webkul/Paypal/src/Resources/lang/pl/app.php new file mode 100644 index 000000000..796b54254 --- /dev/null +++ b/packages/Webkul/Paypal/src/Resources/lang/pl/app.php @@ -0,0 +1,9 @@ + [ + 'universal-error' => 'Something went wrong!', + 'sdk-validation-error' => 'Client ID not recognized for either production or sandbox!', + 'authorization-error' => 'Client ID and Client Secret should be valid!' + ] +]; diff --git a/packages/Webkul/Paypal/src/Resources/lang/pt_BR/app.php b/packages/Webkul/Paypal/src/Resources/lang/pt_BR/app.php new file mode 100644 index 000000000..796b54254 --- /dev/null +++ b/packages/Webkul/Paypal/src/Resources/lang/pt_BR/app.php @@ -0,0 +1,9 @@ + [ + 'universal-error' => 'Something went wrong!', + 'sdk-validation-error' => 'Client ID not recognized for either production or sandbox!', + 'authorization-error' => 'Client ID and Client Secret should be valid!' + ] +]; diff --git a/packages/Webkul/Paypal/src/Resources/lang/tr/app.php b/packages/Webkul/Paypal/src/Resources/lang/tr/app.php new file mode 100644 index 000000000..796b54254 --- /dev/null +++ b/packages/Webkul/Paypal/src/Resources/lang/tr/app.php @@ -0,0 +1,9 @@ + [ + 'universal-error' => 'Something went wrong!', + 'sdk-validation-error' => 'Client ID not recognized for either production or sandbox!', + 'authorization-error' => 'Client ID and Client Secret should be valid!' + ] +]; diff --git a/packages/Webkul/Paypal/src/Resources/views/checkout/onepage/paypal-smart-button.blade.php b/packages/Webkul/Paypal/src/Resources/views/checkout/onepage/paypal-smart-button.blade.php index b4988d20b..f94390ff3 100644 --- a/packages/Webkul/Paypal/src/Resources/views/checkout/onepage/paypal-smart-button.blade.php +++ b/packages/Webkul/Paypal/src/Resources/views/checkout/onepage/paypal-smart-button.blade.php @@ -15,9 +15,9 @@