From 9fc6615909db8923dad1a0e25a5b23c601b29b4a Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Mon, 25 Sep 2017 14:13:50 -0300 Subject: [PATCH 1/2] Removed new translatable string introduced in #16843 Fixes #16843 --- .../class-wc-product-csv-importer-controller.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/includes/admin/importers/class-wc-product-csv-importer-controller.php b/includes/admin/importers/class-wc-product-csv-importer-controller.php index 1ff5ee9d011..00dc296b3ab 100644 --- a/includes/admin/importers/class-wc-product-csv-importer-controller.php +++ b/includes/admin/importers/class-wc-product-csv-importer-controller.php @@ -416,14 +416,14 @@ class WC_Product_CSV_Importer_Controller { $special_columns = $this->get_special_columns( apply_filters( 'woocommerce_csv_product_import_mapping_special_columns', array( - __( 'attribute %d name', 'woocommerce' ) => 'attributes:name', - __( 'attribute %d value(s)', 'woocommerce' ) => 'attributes:value', - __( 'attribute %d visible', 'woocommerce' ) => 'attributes:visible', - __( 'attribute %d global', 'woocommerce' ) => 'attributes:taxonomy', - __( 'attribute %d default', 'woocommerce' ) => 'attributes:default', - __( 'download %d name', 'woocommerce' ) => 'downloads:name', - __( 'download %d url', 'woocommerce' ) => 'downloads:url', - __( 'meta: %s', 'woocommerce' ) => 'meta:', + strtolower( __( 'Attribute %d name', 'woocommerce' ) ) => 'attributes:name', + strtolower( __( 'Attribute %d value(s)', 'woocommerce' ) ) => 'attributes:value', + strtolower( __( 'Attribute %d visible', 'woocommerce' ) ) => 'attributes:visible', + strtolower( __( 'Attribute %d global', 'woocommerce' ) ) => 'attributes:taxonomy', + strtolower( __( 'Attribute %d default', 'woocommerce' ) ) => 'attributes:default', + strtolower( __( 'Download %d name', 'woocommerce' ) ) => 'downloads:name', + strtolower( __( 'Download %d url', 'woocommerce' ) ) => 'downloads:url', + strtolower( __( 'Meta: %s', 'woocommerce' ) ) => 'meta:', ) ) ); From b68b4eeb6b9eb0e9e1feaaafaf72db76c0323b5d Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Mon, 25 Sep 2017 14:14:55 -0300 Subject: [PATCH 2/2] Fixed 'Download %d URL' string --- .../importers/class-wc-product-csv-importer-controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/importers/class-wc-product-csv-importer-controller.php b/includes/admin/importers/class-wc-product-csv-importer-controller.php index 00dc296b3ab..5f8ff7f6057 100644 --- a/includes/admin/importers/class-wc-product-csv-importer-controller.php +++ b/includes/admin/importers/class-wc-product-csv-importer-controller.php @@ -422,7 +422,7 @@ class WC_Product_CSV_Importer_Controller { strtolower( __( 'Attribute %d global', 'woocommerce' ) ) => 'attributes:taxonomy', strtolower( __( 'Attribute %d default', 'woocommerce' ) ) => 'attributes:default', strtolower( __( 'Download %d name', 'woocommerce' ) ) => 'downloads:name', - strtolower( __( 'Download %d url', 'woocommerce' ) ) => 'downloads:url', + strtolower( __( 'Download %d URL', 'woocommerce' ) ) => 'downloads:url', strtolower( __( 'Meta: %s', 'woocommerce' ) ) => 'meta:', ) ) );