Skip to content

Commit eb98cfe

Browse files
authored
Merge pull request #221 from woocommerce/feature/fix-text
2 parents 1133d6f + 32ee264 commit eb98cfe

13 files changed

Lines changed: 22 additions & 22 deletions

assets/source/setup-guide/app/steps/SetupAccount.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const SetupAccount = ( {
6262
'error',
6363
error.message ||
6464
__(
65-
'Couldn’t retrieve your Linked Business Accounts.',
65+
'Couldn’t retrieve your linked business accounts.',
6666
'pinterest-for-woocommerce'
6767
)
6868
);

class-pinterest-for-woocommerce.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -271,21 +271,21 @@ public function check_plugin_requirements() {
271271

272272
if ( ! version_compare( PHP_VERSION, self::PLUGIN_REQUIREMENTS['php_version'], '>=' ) ) {
273273
/* Translators: The minimum PHP version */
274-
$errors[] = sprintf( esc_html__( 'Pinterest For WooCommerce requires a minimum PHP version of %s.', 'pinterest-for-woocommerce' ), self::PLUGIN_REQUIREMENTS['php_version'] );
274+
$errors[] = sprintf( esc_html__( 'Pinterest for WooCommerce requires a minimum PHP version of %s.', 'pinterest-for-woocommerce' ), self::PLUGIN_REQUIREMENTS['php_version'] );
275275
}
276276

277277
if ( ! version_compare( $wp_version, self::PLUGIN_REQUIREMENTS['wp_version'], '>=' ) ) {
278278
/* Translators: The minimum WP version */
279-
$errors[] = sprintf( esc_html__( 'Pinterest For WooCommerce requires a minimum WordPress version of %s.', 'pinterest-for-woocommerce' ), self::PLUGIN_REQUIREMENTS['wp_version'] );
279+
$errors[] = sprintf( esc_html__( 'Pinterest for WooCommerce requires a minimum WordPress version of %s.', 'pinterest-for-woocommerce' ), self::PLUGIN_REQUIREMENTS['wp_version'] );
280280
}
281281

282282
if ( ! defined( 'WC_VERSION' ) || ! version_compare( WC_VERSION, self::PLUGIN_REQUIREMENTS['wc_version'], '>=' ) ) {
283283
/* Translators: The minimum WC version */
284-
$errors[] = sprintf( esc_html__( 'Pinterest For WooCommerce requires a minimum WooCommerce version of %s.', 'pinterest-for-woocommerce' ), self::PLUGIN_REQUIREMENTS['wc_version'] );
284+
$errors[] = sprintf( esc_html__( 'Pinterest for WooCommerce requires a minimum WooCommerce version of %s.', 'pinterest-for-woocommerce' ), self::PLUGIN_REQUIREMENTS['wc_version'] );
285285
}
286286

287287
if ( apply_filters( 'woocommerce_admin_disabled', false ) ) {
288-
$errors[] = esc_html__( 'Pinterest For WooCommerce requires WooCommerce Admin to be enabled.', 'pinterest-for-woocommerce' );
288+
$errors[] = esc_html__( 'Pinterest for WooCommerce requires WooCommerce Admin to be enabled.', 'pinterest-for-woocommerce' );
289289
}
290290

291291
if ( empty( $errors ) ) {
@@ -702,7 +702,7 @@ public static function update_account_data() {
702702

703703

704704
/**
705-
* Fetches a fresh copy (if needed or explicitly requested), of the authenticated user's Linked business accounts.
705+
* Fetches a fresh copy (if needed or explicitly requested), of the authenticated user's linked business accounts.
706706
*
707707
* @param boolean $force_refresh Wether to refresh the data from the API.
708708
*

src/API/Base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ public static function get_merchant( $merchant_id ) {
399399
*/
400400
public static function maybe_create_merchant( $args ) {
401401

402-
$merchant_name = apply_filters( 'pinterest_for_woocommerce_default_merchant_name', esc_html__( 'Auto Created by Pinterest For WooCommerce', 'pinterest-for-woocommerce' ) );
402+
$merchant_name = apply_filters( 'pinterest_for_woocommerce_default_merchant_name', esc_html__( 'Auto-created by Pinterest for WooCommerce', 'pinterest-for-woocommerce' ) );
403403

404404
$args = wp_parse_args(
405405
$args,

src/API/Businesses.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717

1818
/**
19-
* Endpoint handing Pinterest Linked Business Accounts.
19+
* Endpoint handing Pinterest linked business accounts.
2020
*/
2121
class Businesses extends VendorAPI {
2222

@@ -52,7 +52,7 @@ public function get_businesses( WP_REST_Request $request ) {
5252
} catch ( \Throwable $th ) {
5353

5454
/* Translators: The error description as returned from the API */
55-
$error_message = sprintf( esc_html__( 'Could not fetch Linked Business Accounts for Pinterest account ID. [%s]', 'pinterest-for-woocommerce' ), $th->getMessage() );
55+
$error_message = sprintf( esc_html__( 'Could not fetch linked business accounts for Pinterest account ID. [%s]', 'pinterest-for-woocommerce' ), $th->getMessage() );
5656

5757
return new \WP_Error( \PINTEREST_FOR_WOOCOMMERCE_PREFIX . '_businesses_error', $error_message, array( 'status' => $th->getCode() ) );
5858
}

src/API/FeedIssues.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function get_feed_issues( WP_REST_Request $request ) {
8282
$issues_file = $this->get_remote_file( $issues_file_url, (array) $workflow );
8383

8484
if ( empty( $issues_file ) ) {
85-
throw new \Exception( esc_html__( 'Error downloading Feed Issues file from Pinterest.', 'pinterest-for-woocommerce' ), 400 );
85+
throw new \Exception( esc_html__( 'Error downloading feed issues file from Pinterest.', 'pinterest-for-woocommerce' ), 400 );
8686
}
8787

8888
$start_line = ( ( $paged - 1 ) * $per_page );

src/API/FeedState.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ private function add_feed_registration_state( $result ) {
264264
switch ( $api_approved_status ) {
265265
case 'approved':
266266
$status = 'success';
267-
$status_label = esc_html__( 'Product feed configured for Ingestion on Pinterest', 'pinterest-for-woocommerce' );
267+
$status_label = esc_html__( 'Product feed configured for ingestion on Pinterest', 'pinterest-for-woocommerce' );
268268

269269
if ( ! empty( $merchant['data']->product_pin_feed_profile->location_config->full_feed_fetch_freq ) ) {
270270
$extra_info = wp_kses_post(
@@ -404,7 +404,7 @@ function ( $a, $b ) {
404404
$status_label = esc_html__( 'Unknown status in workflow.', 'pinterest-for-woocommerce' );
405405
$extra_info = sprintf(
406406
/* Translators: The status text returned by the API. */
407-
esc_html__( 'API Returned an unknown status: %1$s', 'pinterest-for-woocommerce' ),
407+
esc_html__( 'API returned an unknown status: %1$s', 'pinterest-for-woocommerce' ),
408408
$workflow->workflow_status
409409
);
410410

src/Crypto.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Pinterest For WooCommerce Crypto Wrapper
3+
* Pinterest for WooCommerce Crypto Wrapper
44
*
55
* @class WP_Salesforce_Crypto
66
* @version 1.0.0
@@ -92,7 +92,7 @@ private static function get_key( $retry = null ) {
9292
return self::get_key( 1 );
9393
}
9494

95-
Logger::log( esc_html__( 'Could not decrypt Key value. Try reconnecting to Pinterest.', 'pinterest-for-woocommerce' ), 'error' );
95+
Logger::log( esc_html__( 'Could not decrypt key value. Try reconnecting to Pinterest.', 'pinterest-for-woocommerce' ), 'error' );
9696
Pinterest_For_Woocommerce()::save_data( 'crypto_encoded_key', false ); // Reset base key.
9797
return false;
9898
}
@@ -136,7 +136,7 @@ public static function decrypt( $encrypted_value ) {
136136
// Either there's a bug in our code, we're trying to decrypt with the
137137
// wrong key, or the encrypted credit card number was corrupted in the
138138
// database.
139-
Logger::log( esc_html__( 'Could not decrypt Key value. Try reconnecting to Pinterest.', 'pinterest-for-woocommerce' ), 'error' );
139+
Logger::log( esc_html__( 'Could not decrypt key value. Try reconnecting to Pinterest.', 'pinterest-for-woocommerce' ), 'error' );
140140
}
141141

142142
return $value;

src/Logger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Pinterest For WooCommerce Logger
3+
* Pinterest for WooCommerce Logger
44
*
55
* @version 1.0.0
66
* @package Pinterest_For_WooCommerce/API

src/ProductSync.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php //phpcs:disable WordPress.WP.AlternativeFunctions --- Uses FS read/write in order to reliable append to an existing file.
22
/**
3-
* Pinterest For WooCommerce Catalog Syncing
3+
* Pinterest for WooCommerce Catalog Syncing
44
*
55
* @package Pinterest_For_WooCommerce/Classes/
66
* @version 1.0.0
@@ -438,7 +438,7 @@ private static function write_iteration_buffer( $xml_file, $state ) {
438438
'current_index' => self::$current_index,
439439
'progress' => sprintf(
440440
/* Translators: %1$s number of products written, %2$s total number of products, %3$s hyperlink open tag, %4$s hyperlink close tag */
441-
esc_html__( 'wrote %1$s out of %2$s products to %3$sfeed file%4$s.', 'pinterest-for-woocommerce' ),
441+
esc_html__( 'Wrote %1$s out of %2$s products to %3$sfeed file%4$s.', 'pinterest-for-woocommerce' ),
442442
self::$current_index,
443443
$state['products_count'],
444444
'<a href="' . $state['feed_url'] . '" target="_blank">',

src/ProductsXmlFeed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Pinterest For WooCommerce Catalog Syncing
3+
* Pinterest for WooCommerce Catalog Syncing
44
*
55
* @package Pinterest_For_WooCommerce/Classes/
66
* @version 1.0.0

0 commit comments

Comments
 (0)