From f32be34c3dab60a64394717ff120a030e1a76b06 Mon Sep 17 00:00:00 2001 From: Swashata Ghosh Date: Sun, 21 Apr 2024 17:25:55 +0530 Subject: [PATCH] [subscription-cancellation] [button-text] [l10n] Use proper localization function to populate the "Cancel" button of the subscription cancellation modal. --- languages/freemius.pot | 4 ++-- templates/forms/subscription-cancellation.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/languages/freemius.pot b/languages/freemius.pot index 587a3870..dd1f1a99 100644 --- a/languages/freemius.pot +++ b/languages/freemius.pot @@ -8,7 +8,7 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Language-Team: Freemius Team \n" "Last-Translator: Vova Feldman \n" -"POT-Creation-Date: 2024-04-21 11:18+0000\n" +"POT-Creation-Date: 2024-04-21 11:55+0000\n" "Report-Msgid-Bugs-To: https://github.com/Freemius/wordpress-sdk/issues\n" "X-Poedit-Basepath: ..\n" "X-Poedit-KeywordsList: get_text_inline;get_text_x_inline:1,2c;$this->get_text_inline;$this->get_text_x_inline:1,2c;$this->_fs->get_text_inline;$this->_fs->get_text_x_inline:1,2c;$this->fs->get_text_inline;$this->fs->get_text_x_inline:1,2c;$fs->get_text_inline;$fs->get_text_x_inline:1,2c;$this->_parent->get_text_inline;$this->_parent->get_text_x_inline:1,2c;fs_text_inline;fs_echo_inline;fs_esc_js_inline;fs_esc_attr_inline;fs_esc_attr_echo_inline;fs_esc_html_inline;fs_esc_html_echo_inline;fs_text_x_inline:1,2c;fs_echo_x_inline:1,2c;fs_esc_attr_x_inline:1,2c;fs_esc_js_x_inline:1,2c;fs_esc_js_echo_x_inline:1,2c;fs_esc_html_x_inline:1,2c;fs_esc_html_echo_x_inline:1,2c\n" @@ -2466,7 +2466,7 @@ msgstr "" msgid "Please provide details on how you intend to promote %s (please be as specific as possible)." msgstr "" -#: templates/forms/affiliation.php:238, templates/forms/resend-key.php:22, templates/account/partials/disconnect-button.php:92 +#: templates/forms/affiliation.php:238, templates/forms/resend-key.php:22, templates/forms/subscription-cancellation.php:142, templates/account/partials/disconnect-button.php:92 msgid "Cancel" msgstr "" diff --git a/templates/forms/subscription-cancellation.php b/templates/forms/subscription-cancellation.php index fdaac6a1..7a02fde3 100644 --- a/templates/forms/subscription-cancellation.php +++ b/templates/forms/subscription-cancellation.php @@ -139,7 +139,7 @@ + '
' + + '
' + ' ' + ' ' + ' ' @@ -194,7 +194,7 @@ function registerEventHandlers() { $modal.find('.fs-price-increase-warning').show(); } else { - $primaryButton.html( ); + $primaryButton.html( ); $modal.find('.fs-price-increase-warning').hide(); } @@ -271,7 +271,7 @@ function showMessage(message) { function updateButtonLabels() { $modal.find('.button-primary').text( ); - $modal.find('.button-secondary').text( ); + $modal.find('.button-secondary').text( ); } })( jQuery ); \ No newline at end of file