fixed some hard code strings
This commit is contained in:
parent
7f4b768c2a
commit
61c94f9e25
|
@ -485,7 +485,7 @@ class WC_Admin_Settings {
|
|||
|
||||
$disabled_attr = '';
|
||||
$disabled_message = '';
|
||||
|
||||
|
||||
if ( has_filter( 'woocommerce_get_image_size_' . $image_size ) ) {
|
||||
$disabled_attr = 'disabled="disabled"';
|
||||
$disabled_message = "<p><small>" . __( 'The settings of this image size have been disabled because its values are being overwritten by a filter.', 'woocommerce' ) . "</small></p>";
|
||||
|
@ -545,7 +545,7 @@ class WC_Admin_Settings {
|
|||
<label for="<?php echo esc_attr( $value['id'] ); ?>"><?php echo esc_html( $value['title'] ); ?></label>
|
||||
<?php echo $tip; ?>
|
||||
</th>
|
||||
<td class="forminp"><select name="<?php echo esc_attr( $value['id'] ); ?>" style="<?php echo esc_attr( $value['css'] ); ?>" data-placeholder="<?php _e( 'Choose a country…', 'woocommerce' ); ?>" title="Country" class="chosen_select">
|
||||
<td class="forminp"><select name="<?php echo esc_attr( $value['id'] ); ?>" style="<?php echo esc_attr( $value['css'] ); ?>" data-placeholder="<?php _e( 'Choose a country…', 'woocommerce' ); ?>" title="<?php _e( 'Country', 'woocommerce' ) ?>" class="chosen_select">
|
||||
<?php WC()->countries->country_dropdown_options( $country, $state ); ?>
|
||||
</select> <?php echo $description; ?>
|
||||
</td>
|
||||
|
@ -569,7 +569,7 @@ class WC_Admin_Settings {
|
|||
<?php echo $tip; ?>
|
||||
</th>
|
||||
<td class="forminp">
|
||||
<select multiple="multiple" name="<?php echo esc_attr( $value['id'] ); ?>[]" style="width:350px" data-placeholder="<?php _e( 'Choose countries…', 'woocommerce' ); ?>" title="Country" class="chosen_select">
|
||||
<select multiple="multiple" name="<?php echo esc_attr( $value['id'] ); ?>[]" style="width:350px" data-placeholder="<?php _e( 'Choose countries…', 'woocommerce' ); ?>" title="<?php _e( 'Country', 'woocommerce' ) ?>" class="chosen_select">
|
||||
<?php
|
||||
if ( $countries )
|
||||
foreach ( $countries as $key => $val )
|
||||
|
|
|
@ -325,7 +325,7 @@ class WC_Admin_Taxonomies {
|
|||
// Ref: http://core.trac.wordpress.org/ticket/23605
|
||||
$image = str_replace( ' ', '%20', $image );
|
||||
|
||||
$columns .= '<img src="' . esc_url( $image ) . '" alt="Thumbnail" class="wp-post-image" height="48" width="48" />';
|
||||
$columns .= '<img src="' . esc_url( $image ) . '" alt="' . __( 'Thumbnail', 'woocommerce' ) . '" class="wp-post-image" height="48" width="48" />';
|
||||
|
||||
}
|
||||
|
||||
|
@ -342,7 +342,7 @@ class WC_Admin_Taxonomies {
|
|||
$args['checked_ontop'] = false;
|
||||
}
|
||||
return $args;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
new WC_Admin_Taxonomies();
|
||||
|
|
|
@ -179,7 +179,7 @@ class WC_Meta_Box_Order_Data {
|
|||
<?php do_action( 'woocommerce_admin_order_data_after_order_details', $order ); ?>
|
||||
</div>
|
||||
<div class="order_data_column">
|
||||
<h4><?php _e( 'Billing Details', 'woocommerce' ); ?> <a class="edit_address" href="#"><img src="<?php echo WC()->plugin_url(); ?>/assets/images/icons/edit.png" alt="Edit" width="14" /></a></h4>
|
||||
<h4><?php _e( 'Billing Details', 'woocommerce' ); ?> <a class="edit_address" href="#"><img src="<?php echo WC()->plugin_url(); ?>/assets/images/icons/edit.png" alt="<?php _e( 'Edit', 'woocommerce' ); ?>" width="14" /></a></h4>
|
||||
<?php
|
||||
// Display values
|
||||
echo '<div class="address">';
|
||||
|
@ -258,7 +258,7 @@ class WC_Meta_Box_Order_Data {
|
|||
</div>
|
||||
<div class="order_data_column">
|
||||
|
||||
<h4><?php _e( 'Shipping Details', 'woocommerce' ); ?> <a class="edit_address" href="#"><img src="<?php echo WC()->plugin_url(); ?>/assets/images/icons/edit.png" alt="Edit" width="14" /></a></h4>
|
||||
<h4><?php _e( 'Shipping Details', 'woocommerce' ); ?> <a class="edit_address" href="#"><img src="<?php echo WC()->plugin_url(); ?>/assets/images/icons/edit.png" alt="<?php _e( 'Edit', 'woocommerce' ); ?>" width="14" /></a></h4>
|
||||
<?php
|
||||
// Display values
|
||||
echo '<div class="address">';
|
||||
|
@ -397,4 +397,4 @@ class WC_Meta_Box_Order_Data {
|
|||
|
||||
wc_delete_shop_order_transients( $post_id );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -291,7 +291,7 @@ function wc_placeholder_img_src() {
|
|||
function wc_placeholder_img( $size = 'shop_thumbnail' ) {
|
||||
$dimensions = wc_get_image_size( $size );
|
||||
|
||||
return apply_filters('woocommerce_placeholder_img', '<img src="' . wc_placeholder_img_src() . '" alt="Placeholder" width="' . esc_attr( $dimensions['width'] ) . '" class="woocommerce-placeholder wp-post-image" height="' . esc_attr( $dimensions['height'] ) . '" />' );
|
||||
return apply_filters('woocommerce_placeholder_img', '<img src="' . wc_placeholder_img_src() . '" alt="' . __( 'Placeholder', 'woocommerce' ) . '" width="' . esc_attr( $dimensions['width'] ) . '" class="woocommerce-placeholder wp-post-image" height="' . esc_attr( $dimensions['height'] ) . '" />' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -35,7 +35,7 @@ global $post, $woocommerce, $product;
|
|||
|
||||
} else {
|
||||
|
||||
echo apply_filters( 'woocommerce_single_product_image_html', sprintf( '<img src="%s" alt="Placeholder" />', wc_placeholder_img_src() ), $post->ID );
|
||||
echo apply_filters( 'woocommerce_single_product_image_html', sprintf( '<img src="%s" alt="%s" />', wc_placeholder_img_src(), __( 'Placeholder', 'woocommerce' ) ), $post->ID );
|
||||
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue