From e799b1e234c6abab45748db7ec737812ae55c1a5 Mon Sep 17 00:00:00 2001 From: Nicola Mustone Date: Tue, 26 Jul 2016 15:46:50 +0200 Subject: [PATCH] reduce number of strings --- .../admin/settings/class-wc-settings-accounts.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/includes/admin/settings/class-wc-settings-accounts.php b/includes/admin/settings/class-wc-settings-accounts.php index 5d8fe90b1ea..ece3e3f4e15 100644 --- a/includes/admin/settings/class-wc-settings-accounts.php +++ b/includes/admin/settings/class-wc-settings-accounts.php @@ -111,7 +111,7 @@ class WC_Settings_Accounts extends WC_Settings_Page { array( 'title' => __( 'Orders', 'woocommerce' ), - 'desc' => __( 'Endpoint for the My Account → Orders page', 'woocommerce' ), + 'desc' => sprintf( __( 'Endpoint for the My Account → %s page', 'woocommerce' ), __( 'Orders', 'woocommerce' ) ), 'id' => 'woocommerce_myaccount_orders_endpoint', 'type' => 'text', 'default' => 'orders', @@ -120,7 +120,7 @@ class WC_Settings_Accounts extends WC_Settings_Page { array( 'title' => __( 'View Order', 'woocommerce' ), - 'desc' => __( 'Endpoint for the My Account → View Order page', 'woocommerce' ), + 'desc' => sprintf( __( 'Endpoint for the My Account → %s page', 'woocommerce' ), __( 'View Order', 'woocommerce' ) ), 'id' => 'woocommerce_myaccount_view_order_endpoint', 'type' => 'text', 'default' => 'view-order', @@ -129,7 +129,7 @@ class WC_Settings_Accounts extends WC_Settings_Page { array( 'title' => __( 'Downloads', 'woocommerce' ), - 'desc' => __( 'Endpoint for the My Account → Downloads page', 'woocommerce' ), + 'desc' => sprintf( __( 'Endpoint for the My Account → %s page', 'woocommerce' ), __( 'Downloads', 'woocommerce' ) ), 'id' => 'woocommerce_myaccount_downloads_endpoint', 'type' => 'text', 'default' => 'downloads', @@ -138,7 +138,7 @@ class WC_Settings_Accounts extends WC_Settings_Page { array( 'title' => __( 'Edit Account', 'woocommerce' ), - 'desc' => __( 'Endpoint for the My Account → Edit Account page', 'woocommerce' ), + 'desc' => sprintf( __( 'Endpoint for the My Account → %s page', 'woocommerce' ), __( 'Edit Account', 'woocommerce' ) ), 'id' => 'woocommerce_myaccount_edit_account_endpoint', 'type' => 'text', 'default' => 'edit-account', @@ -147,7 +147,7 @@ class WC_Settings_Accounts extends WC_Settings_Page { array( 'title' => __( 'Addresses', 'woocommerce' ), - 'desc' => __( 'Endpoint for the My Account → Addresses page', 'woocommerce' ), + 'desc' => sprintf( __( 'Endpoint for the My Account → %s page', 'woocommerce' ), __( 'Addresses', 'woocommerce' ) ), 'id' => 'woocommerce_myaccount_edit_address_endpoint', 'type' => 'text', 'default' => 'edit-address', @@ -156,7 +156,7 @@ class WC_Settings_Accounts extends WC_Settings_Page { array( 'title' => __( 'Payment Methods', 'woocommerce' ), - 'desc' => __( 'Endpoint for the My Account → Payment Methods page', 'woocommerce' ), + 'desc' => sprintf( __( 'Endpoint for the My Account → %s page', 'woocommerce' ), __( 'Payment Methods', 'woocommerce' ), 'id' => 'woocommerce_myaccount_payment_methods_endpoint', 'type' => 'text', 'default' => 'payment-methods', @@ -165,7 +165,7 @@ class WC_Settings_Accounts extends WC_Settings_Page { array( 'title' => __( 'Lost Password', 'woocommerce' ), - 'desc' => __( 'Endpoint for the My Account → Lost Password page', 'woocommerce' ), + 'desc' => sprintf( __( 'Endpoint for the My Account → %s page', 'woocommerce' ), __( 'Lost Password', 'woocommerce' ) ), 'id' => 'woocommerce_myaccount_lost_password_endpoint', 'type' => 'text', 'default' => 'lost-password',