From 328924f906835dd3bf6376ed80a3e1544227ab52 Mon Sep 17 00:00:00 2001 From: Kim Coleman Date: Tue, 17 Sep 2024 09:59:22 -0400 Subject: [PATCH 1/2] Translation for subscription cost text cycle periods --- classes/class-pmpro-subscription.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/class-pmpro-subscription.php b/classes/class-pmpro-subscription.php index d533ace36..83401974c 100644 --- a/classes/class-pmpro-subscription.php +++ b/classes/class-pmpro-subscription.php @@ -1010,10 +1010,10 @@ public function get_orders( array $args = [] ) { public function get_cost_text() { if ( 1 == $this->cycle_number ) { // translators: %1$s - price, %2$s - period. - $cost_text = sprintf( __( '%1$s per %2$s', 'paid-memberships-pro' ), pmpro_formatPrice( $this->billing_amount ), $this->cycle_period ); + $cost_text = sprintf( __( '%1$s per %2$s', 'paid-memberships-pro' ), pmpro_formatPrice( $this->billing_amount ), pmpro_translate_billing_period( $this->cycle_period, $this->cycle_number ) ); } else { // translators: %1$s - price, %2$d - number, %3$s - period. - $cost_text = sprintf( __( '%1$s every %2$d %3$s', 'paid-memberships-pro' ), pmpro_formatPrice( $this->billing_amount ), $this->cycle_number, $this->cycle_period ); + $cost_text = sprintf( __( '%1$s every %2$d %3$s', 'paid-memberships-pro' ), pmpro_formatPrice( $this->billing_amount ), $this->cycle_number, pmpro_translate_billing_period( $this->cycle_period, $this->cycle_number ) ); } /** From 00986224365c129c01e8a7189835ba94f5bf652e Mon Sep 17 00:00:00 2001 From: Kim Coleman Date: Tue, 17 Sep 2024 10:02:41 -0400 Subject: [PATCH 2/2] Fixing localization for the member profile edit save success message --- includes/profile.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/profile.php b/includes/profile.php index 73b337211..fbcb10ce2 100644 --- a/includes/profile.php +++ b/includes/profile.php @@ -1114,7 +1114,8 @@ function pmpro_member_profile_edit_form() { wp_update_user( $user ); ?>