fixed some missing and wrong textdomains

This commit is contained in:
claudiosmweb 2014-08-15 16:08:43 -03:00
parent eb679fad14
commit 6081f3b61f
4 changed files with 11 additions and 11 deletions

View File

@ -13,7 +13,7 @@ $who_refunded = new WP_User( $refund->post->post_author );
<?php <?php
echo esc_attr__( 'Refund', 'woocommerce' ) . ' - ' . esc_attr( date_i18n( get_option( 'date_format' ) . ', ' . get_option( 'time_format' ), strtotime( $refund->post_date ) ) ); echo esc_attr__( 'Refund', 'woocommerce' ) . ' - ' . esc_attr( date_i18n( get_option( 'date_format' ) . ', ' . get_option( 'time_format' ), strtotime( $refund->post_date ) ) );
if ( $who_refunded->exists() ){ if ( $who_refunded->exists() ){
echo ' ' . esc_attr__( 'by', 'Ex: Refund - $date >by< $username', 'woocommerce' ) . ' ' . '<abbr class="refund_by" title="' . esc_attr__( 'ID: ', 'woocommerce' ) . absint( $who_refunded->ID ) . '">' . esc_attr( $who_refunded->display_name ) . '</abbr>' ; echo ' ' . esc_attr_x( 'by', 'Ex: Refund - $date >by< $username', 'woocommerce' ) . ' ' . '<abbr class="refund_by" title="' . esc_attr__( 'ID: ', 'woocommerce' ) . absint( $who_refunded->ID ) . '">' . esc_attr( $who_refunded->display_name ) . '</abbr>' ;
} }
?> ?>
<?php if ( $refund->get_refund_reason() ) : ?> <?php if ( $refund->get_refund_reason() ) : ?>

View File

@ -458,7 +458,7 @@ if ( ! defined( 'ABSPATH' ) ) {
$parent_theme = wp_get_theme( $active_theme->Template ); $parent_theme = wp_get_theme( $active_theme->Template );
?> ?>
<tr> <tr>
<td><?php _e( 'Parent Theme Name', 'woocommece' ); ?>:</td> <td><?php _e( 'Parent Theme Name', 'woocommerce' ); ?>:</td>
<td><?php echo $parent_theme->Name; ?></td> <td><?php echo $parent_theme->Name; ?></td>
</tr> </tr>
<tr> <tr>

View File

@ -200,7 +200,7 @@ class WC_API_Coupons extends WC_API_Resource {
// Check if coupon code is specified // Check if coupon code is specified
if ( ! isset( $data['code'] ) ) { if ( ! isset( $data['code'] ) ) {
return new WP_Error( 'woocommerce_api_missing_coupon_code', sprintf( __( 'Missing parameter %s' ), 'code' ), array( 'status' => 400 ) ); return new WP_Error( 'woocommerce_api_missing_coupon_code', sprintf( __( 'Missing parameter %s', 'woocommerce' ), 'code' ), array( 'status' => 400 ) );
} }
$coupon_code = apply_filters( 'woocommerce_coupon_code', $data['code'] ); $coupon_code = apply_filters( 'woocommerce_coupon_code', $data['code'] );
@ -215,7 +215,7 @@ class WC_API_Coupons extends WC_API_Resource {
", $coupon_code ) ); ", $coupon_code ) );
if ( $coupon_found ) { if ( $coupon_found ) {
return new WP_Error( 'woocommerce_api_coupon_code_already_exists', __( 'The coupon code already exists' ), array( 'status' => 400 ) ); return new WP_Error( 'woocommerce_api_coupon_code_already_exists', __( 'The coupon code already exists', 'woocommerce' ), array( 'status' => 400 ) );
} }
$defaults = array( $defaults = array(
@ -319,12 +319,12 @@ class WC_API_Coupons extends WC_API_Resource {
", $coupon_code, $id ) ); ", $coupon_code, $id ) );
if ( $coupon_found ) { if ( $coupon_found ) {
return new WP_Error( 'woocommerce_api_coupon_code_already_exists', __( 'The coupon code already exists' ), array( 'status' => 400 ) ); return new WP_Error( 'woocommerce_api_coupon_code_already_exists', __( 'The coupon code already exists', 'woocommerce' ), array( 'status' => 400 ) );
} }
$id = wp_update_post( array( 'ID' => intval( $id ), 'post_title' => $coupon_code ) ); $id = wp_update_post( array( 'ID' => intval( $id ), 'post_title' => $coupon_code ) );
if ( 0 === $id ) { if ( 0 === $id ) {
return new WP_Error( 'woocommerce_api_cannot_update_coupon', __( 'Failed to update coupon', 'woocommerce'), array( 'status' => 400 ) ); return new WP_Error( 'woocommerce_api_cannot_update_coupon', __( 'Failed to update coupon', 'woocommerce' ), array( 'status' => 400 ) );
} }
} }

View File

@ -180,7 +180,7 @@ class WC_API_Products extends WC_API_Resource {
// Check if product title is specified // Check if product title is specified
if ( ! isset( $data['title'] ) ) { if ( ! isset( $data['title'] ) ) {
return new WP_Error( 'woocommerce_api_missing_product_title', sprintf( __( 'Missing parameter %s' ), 'title' ), array( 'status' => 400 ) ); return new WP_Error( 'woocommerce_api_missing_product_title', sprintf( __( 'Missing parameter %s', 'woocommerce' ), 'title' ), array( 'status' => 400 ) );
} }
// Check product type // Check product type
@ -676,7 +676,7 @@ class WC_API_Products extends WC_API_Resource {
if ( ! empty( $new_sku ) ) { if ( ! empty( $new_sku ) ) {
$unique_sku = wc_product_has_unique_sku( $id, $new_sku ); $unique_sku = wc_product_has_unique_sku( $id, $new_sku );
if ( ! $unique_sku ) { if ( ! $unique_sku ) {
return new WP_Error( 'woocommerce_api_product_sku_already_exists', __( 'The SKU already exists on another product' ), array( 'status' => 400 ) ); return new WP_Error( 'woocommerce_api_product_sku_already_exists', __( 'The SKU already exists on another product', 'woocommerce' ), array( 'status' => 400 ) );
} else { } else {
update_post_meta( $id, '_sku', $new_sku ); update_post_meta( $id, '_sku', $new_sku );
} }
@ -1117,7 +1117,7 @@ class WC_API_Products extends WC_API_Resource {
if ( ! empty( $new_sku ) ) { if ( ! empty( $new_sku ) ) {
$unique_sku = wc_product_has_unique_sku( $variation_id, $new_sku ); $unique_sku = wc_product_has_unique_sku( $variation_id, $new_sku );
if ( ! $unique_sku ) { if ( ! $unique_sku ) {
return new WP_Error( 'woocommerce_api_product_sku_already_exists', __( 'The SKU already exists on another product' ), array( 'status' => 400 ) ); return new WP_Error( 'woocommerce_api_product_sku_already_exists', __( 'The SKU already exists on another product', 'woocommerce' ), array( 'status' => 400 ) );
} else { } else {
update_post_meta( $variation_id, '_sku', $new_sku ); update_post_meta( $variation_id, '_sku', $new_sku );
} }
@ -1587,7 +1587,7 @@ class WC_API_Products extends WC_API_Resource {
// Check parsed URL // Check parsed URL
if ( ! $parsed_url || ! is_array( $parsed_url ) ) { if ( ! $parsed_url || ! is_array( $parsed_url ) ) {
return new WP_Error( 'woocommerce_api_invalid_product_image', sprintf( __( 'Invalid URL %s' ), $image_url ), array( 'status' => 400 ) ); return new WP_Error( 'woocommerce_api_invalid_product_image', sprintf( __( 'Invalid URL %s', 'woocommerce' ), $image_url ), array( 'status' => 400 ) );
} }
// Ensure url is valid // Ensure url is valid
@ -1599,7 +1599,7 @@ class WC_API_Products extends WC_API_Resource {
) ); ) );
if ( is_wp_error( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) { if ( is_wp_error( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) {
return new WP_Error( 'woocommerce_api_invalid_remote_product_image', sprintf( __( 'Error getting remote image %s' ), $image_url ), array( 'status' => 400 ) ); return new WP_Error( 'woocommerce_api_invalid_remote_product_image', sprintf( __( 'Error getting remote image %s', 'woocommerce' ), $image_url ), array( 'status' => 400 ) );
} }
// Ensure we have a file name and type // Ensure we have a file name and type