Merge pull request #21704 from woocommerce/fix/reduce-strings

Merged similar strings to reduce number of translateable strings
This commit is contained in:
Claudiu Lodromanean 2018-10-29 12:04:08 -07:00 committed by GitHub
commit 3e30682b41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -686,7 +686,7 @@ abstract class WC_REST_Terms_Controller extends WC_REST_Controller {
$params['context']['default'] = 'view';
$params['exclude'] = array(
'description' => __( 'Ensure result set excludes specific ids.', 'woocommerce' ),
'description' => __( 'Ensure result set excludes specific IDs.', 'woocommerce' ),
'type' => 'array',
'items' => array(
'type' => 'integer',

View File

@ -391,7 +391,7 @@ class WC_REST_Product_Reviews_Controller extends WC_REST_Controller {
* Do not allow a comment to be created with missing or empty comment_content. See wp_handle_comment_submission().
*/
if ( empty( $prepared_review['comment_content'] ) ) {
return new WP_Error( 'wc_rest_review_content_invalid', __( 'Invalid product review content.', 'woocommerce' ), array( 'status' => 400 ) );
return new WP_Error( 'woocommerce_rest_review_content_invalid', __( 'Invalid review content.', 'woocommerce' ), array( 'status' => 400 ) );
}
// Setting remaining values before wp_insert_comment so we can use wp_allow_comment().
@ -926,7 +926,7 @@ class WC_REST_Product_Reviews_Controller extends WC_REST_Controller {
$params['context']['default'] = 'view';
$params['after'] = array(
'description' => __( 'Limit response to reviews published after a given ISO8601 compliant date.', 'woocommerce' ),
'description' => __( 'Limit response to resources published after a given ISO8601 compliant date.', 'woocommerce' ),
'type' => 'string',
'format' => 'date-time',
);

View File

@ -662,7 +662,7 @@ class WC_Countries {
'priority' => 50,
),
'address_2' => array(
'label' => __( 'Apartment, suite, or unit.', 'woocommerce' ),
'label' => __( 'Apartment, suite, unit etc.', 'woocommerce' ),
'label_class' => 'screen-reader-text',
'placeholder' => esc_attr( $address_2_placeholder ),
'class' => array( 'form-row-wide', 'address-field' ),
@ -1012,12 +1012,12 @@ class WC_Countries {
),
'NG' => array(
'postcode' => array(
'label' => __( 'Postcode', 'woocommerce' ),
'label' => __( 'Postcode', 'woocommerce' ),
'required' => false,
'hidden' => true,
),
'state' => array(
'label' => __( 'State', 'woocommerce' ),
'label' => __( 'State', 'woocommerce' ),
),
),
'NZ' => array(