diff --git a/app/Hooks/Handlers/AdminMenuHandler.php b/app/Hooks/Handlers/AdminMenuHandler.php index 3836bee8..40a2b8a6 100644 --- a/app/Hooks/Handlers/AdminMenuHandler.php +++ b/app/Hooks/Handlers/AdminMenuHandler.php @@ -92,7 +92,7 @@ class="wp-core-ui button button-primary"> 'You do not have permission to see this data' + 'html' => __('You do not have permission to see this data', 'fluent-smtp') ]); } @@ -230,8 +230,8 @@ public function enqueueAssets() add_filter('admin_footer_text', function ($text) { return sprintf( __('FluentSMTP is a free plugin & it will be always free %1$s. %2$s', 'fluent-smtp'), - '(Learn why it\'s free)', - 'Write a review ★★★★★' + '', + '' ); }); } @@ -364,7 +364,7 @@ public function dashWidgetContent() }
-

Loading data....

+

sendError([ - 'message' => 'Sorry! The provider email is not valid' + 'message' => __('Sorry! The provider email is not valid', 'fluent-smtp') ], 422); } @@ -486,7 +486,7 @@ public function subscribe() $this->pushData($email, $shareEssentials, $displayName); return $this->sendSuccess([ - 'message' => 'You are subscribed to plugin update and monthly tips' + 'message' => __('You are subscribed to plugin update and monthly tips', 'fluent-smtp') ]); } diff --git a/app/Services/Mailer/Providers/config.php b/app/Services/Mailer/Providers/config.php index 9758b15a..c4021036 100644 --- a/app/Services/Mailer/Providers/config.php +++ b/app/Services/Mailer/Providers/config.php @@ -26,7 +26,7 @@ 'encryption' => 'none', 'key_store' => 'db' ], - 'note' => 'Read the documentation for how to configure any SMTP with FluentSMTP.' + 'note' => '' . __('Read the documentation', 'fluent-smtp') . '' . __(' for how to configure any SMTP with FluentSMTP.', 'fluent-smtp') ], 'ses' => [ 'key' => 'ses', diff --git a/resources/admin/Modules/Dashboard/Charts/Emails.vue b/resources/admin/Modules/Dashboard/Charts/Emails.vue index 3a59bcc5..2a0643d9 100644 --- a/resources/admin/Modules/Dashboard/Charts/Emails.vue +++ b/resources/admin/Modules/Dashboard/Charts/Emails.vue @@ -55,7 +55,7 @@ }; const cumulativeItems = { - label: 'Cumulative', + label: this.$t('Cumulative'), backgroundColor: 'rgba(55, 162, 235, 0.1)', borderColor: '#37a2eb', data: [], diff --git a/resources/admin/Modules/Logger/LogFilter.vue b/resources/admin/Modules/Logger/LogFilter.vue index cc293e22..958bcc7d 100644 --- a/resources/admin/Modules/Logger/LogFilter.vue +++ b/resources/admin/Modules/Logger/LogFilter.vue @@ -18,7 +18,7 @@ v-model="filter_query.date_range" type="daterange" :placeholder="$t('Select date and time')" - range-separator="To" + range-separator="$t('To')" :start-placeholder="$t('Start date')" :end-placeholder="$t('End date')" style="width:100%" diff --git a/resources/admin/Modules/Logger/LogViewer.vue b/resources/admin/Modules/Logger/LogViewer.vue index df3989a3..95c5baed 100644 --- a/resources/admin/Modules/Logger/LogViewer.vue +++ b/resources/admin/Modules/Logger/LogViewer.vue @@ -47,11 +47,11 @@
{{ log.created_at }}
  • -
    From:
    +
    {{ $t('From') }}:
  • -
    To:
    +
    {{ $t('To') }}:
    @@ -69,13 +69,13 @@
  • -
    Mailer:
    +
    {{ $t('Mailer') }}:
    {{ settings.providers[log.extra.provider].title }}
  • -
    Mailer:
    +
    {{ $t('Mailer') }}:
    {{ log.extra.provider }}
    diff --git a/resources/admin/Modules/Logger/Logs.vue b/resources/admin/Modules/Logger/Logs.vue index efa3799f..afac01a2 100644 --- a/resources/admin/Modules/Logger/Logs.vue +++ b/resources/admin/Modules/Logger/Logs.vue @@ -54,7 +54,7 @@ @@ -122,7 +122,7 @@
    - Delete All Logs + {{ $t('Delete All Logs') }}
      diff --git a/resources/admin/Modules/Misc/Docs.vue b/resources/admin/Modules/Misc/Docs.vue index d86439d2..fa3dd9a3 100644 --- a/resources/admin/Modules/Misc/Docs.vue +++ b/resources/admin/Modules/Misc/Docs.vue @@ -73,15 +73,15 @@ const items = { item_4: { - label: 'Getting Started', + label: this.$t('Getting Started'), docs: [] }, item_5: { - label: 'Connect With Your Email Providers', + label: this.$t('Connect With Your Email Providers'), docs: [] }, item_6: { - label: 'Functionalities', + label: this.$t('Functionalities'), docs: [] } }; diff --git a/resources/admin/Modules/Misc/Support.vue b/resources/admin/Modules/Misc/Support.vue index 29834603..a8bde2e9 100644 --- a/resources/admin/Modules/Misc/Support.vue +++ b/resources/admin/Modules/Misc/Support.vue @@ -57,8 +57,8 @@
    -
    -
    Recommended Plugin
    +
    +
    {{ $t('Recommended Plugin') }}

    {{ installed_message }}

    @@ -87,7 +87,7 @@
    -
    Community
    +
    {{ $t('Community') }}

    {{ $t('__ABOUT_COMMUNITY') }}

    {{ $t('__ABOUT_JOIN') }}

    @@ -100,7 +100,7 @@
  • {{ $t('Write a review (really appreciate 😊)') }} + href="https://wordpress.org/support/plugin/fluent-smtp/reviews/?filter=5">{{ $t('Write a review (really appreciated 😊)') }}
  • {{ $t('Read the documentation') }} diff --git a/resources/admin/Modules/NotificationSettings/NotificationManager.vue b/resources/admin/Modules/NotificationSettings/NotificationManager.vue index 96c8e505..7f354578 100644 --- a/resources/admin/Modules/NotificationSettings/NotificationManager.vue +++ b/resources/admin/Modules/NotificationSettings/NotificationManager.vue @@ -10,9 +10,9 @@
    -

    Real-Time Email Failure Notifications

    -

    Get real-time notification on your favorite messaging channel on any email sending failure. Configure any - of the following channel to start getting real time notifications.

    +

    {{ $t('Real-Time Email Failure Notifications') }}

    +

    {{ $t('Get real-time notification on your favorite messaging channel on any email sending failure. Configure any + of the following channel to start getting real time notifications.') }}

    diff --git a/resources/admin/Modules/NotificationSettings/_EmailSummaryForm.vue b/resources/admin/Modules/NotificationSettings/_EmailSummaryForm.vue index 235e8ee1..7acd9723 100644 --- a/resources/admin/Modules/NotificationSettings/_EmailSummaryForm.vue +++ b/resources/admin/Modules/NotificationSettings/_EmailSummaryForm.vue @@ -47,13 +47,13 @@ export default { data() { return { sending_days: { - Mon: 'Monday', - Tue: 'Tuesday', - Wed: 'Wednesday', - Thu: 'Thursday', - Fri: 'Friday', - Sat: 'Saturday', - Sun: 'Sunday' + Mon: this.$t('Monday'), + Tue: this.$t('Tuesday'), + Wed: this.$t('Wednesday'), + Thu: this.$t('Thursday'), + Fri: this.$t('Friday'), + Sat: this.$t('Saturday'), + Sun: this.$t('Sunday') }, saving: false, } diff --git a/resources/admin/Modules/Settings/Partials/Providers/Smtp.vue b/resources/admin/Modules/Settings/Partials/Providers/Smtp.vue index 083264eb..871551c2 100644 --- a/resources/admin/Modules/Settings/Partials/Providers/Smtp.vue +++ b/resources/admin/Modules/Settings/Partials/Providers/Smtp.vue @@ -30,7 +30,7 @@
    - Select ssl on port 465, or tls on port 25 or 587 + {{ $t('Select ssl on port 465, or tls on port 25 or 587') }}
    diff --git a/resources/admin/Modules/Settings/Partials/_ConnectionSelector.vue b/resources/admin/Modules/Settings/Partials/_ConnectionSelector.vue index 583ed423..78d69cd2 100644 --- a/resources/admin/Modules/Settings/Partials/_ConnectionSelector.vue +++ b/resources/admin/Modules/Settings/Partials/_ConnectionSelector.vue @@ -6,7 +6,7 @@
    - change + {{ $t('change') }}
    diff --git a/resources/admin/Modules/Test/Test.vue b/resources/admin/Modules/Test/Test.vue index c8fa7de5..5386f563 100644 --- a/resources/admin/Modules/Test/Test.vue +++ b/resources/admin/Modules/Test/Test.vue @@ -21,7 +21,7 @@ - + @@ -109,7 +109,7 @@ this.$post('settings/test', { ...this.form }).then(res => { this.$notify.success({ - title: 'Great!', + title: this.$t('Great!'), offset: 19, message: res.data.message }); @@ -117,7 +117,7 @@ }).fail(res => { if (Number(res.status) === 504) { return this.$notify.error({ - title: 'Oops!', + title: this.$t('Oops!'), offset: 19, message: '504 Gateway Time-out.' }); @@ -127,7 +127,7 @@ if (responseJSON.data.email_error) { return this.$notify.error({ - title: 'Oops!', + title: this.$t('Oops!'), offset: 19, message: responseJSON.data.email_error }); diff --git a/resources/admin/Pieces/Confirm.vue b/resources/admin/Pieces/Confirm.vue index 3ece5474..464a0edb 100644 --- a/resources/admin/Pieces/Confirm.vue +++ b/resources/admin/Pieces/Confirm.vue @@ -39,7 +39,7 @@ default: 'top-end' }, message: { - default: 'Are you sure to delete this?' + default: this.$t('Are you sure to delete this?') } }, data() { diff --git a/resources/admin/Pieces/_Subscrbe.vue b/resources/admin/Pieces/_Subscrbe.vue index 8c8e7764..9860d3f4 100644 --- a/resources/admin/Pieces/_Subscrbe.vue +++ b/resources/admin/Pieces/_Subscrbe.vue @@ -15,8 +15,8 @@ - (Optional) Share Non - Sensitive Data.It will help us to improve the integrations - + {{ $t('(Optional) Share Non - Sensitive Data.It will help us to improve the integrations') }} +