Merge pull request #5659 from claudiosmweb/fix-hard-code-strings

Fix some hard code strings
This commit is contained in:
Mike Jolley 2014-06-12 11:59:06 +01:00
commit ff186a23cc
5 changed files with 10 additions and 10 deletions

View File

@ -485,7 +485,7 @@ class WC_Admin_Settings {
$disabled_attr = ''; $disabled_attr = '';
$disabled_message = ''; $disabled_message = '';
if ( has_filter( 'woocommerce_get_image_size_' . $image_size ) ) { if ( has_filter( 'woocommerce_get_image_size_' . $image_size ) ) {
$disabled_attr = 'disabled="disabled"'; $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>"; $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> <label for="<?php echo esc_attr( $value['id'] ); ?>"><?php echo esc_html( $value['title'] ); ?></label>
<?php echo $tip; ?> <?php echo $tip; ?>
</th> </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&hellip;', '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&hellip;', 'woocommerce' ); ?>" title="<?php _e( 'Country', 'woocommerce' ) ?>" class="chosen_select">
<?php WC()->countries->country_dropdown_options( $country, $state ); ?> <?php WC()->countries->country_dropdown_options( $country, $state ); ?>
</select> <?php echo $description; ?> </select> <?php echo $description; ?>
</td> </td>
@ -569,7 +569,7 @@ class WC_Admin_Settings {
<?php echo $tip; ?> <?php echo $tip; ?>
</th> </th>
<td class="forminp"> <td class="forminp">
<select multiple="multiple" name="<?php echo esc_attr( $value['id'] ); ?>[]" style="width:350px" data-placeholder="<?php _e( 'Choose countries&hellip;', '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&hellip;', 'woocommerce' ); ?>" title="<?php _e( 'Country', 'woocommerce' ) ?>" class="chosen_select">
<?php <?php
if ( $countries ) if ( $countries )
foreach ( $countries as $key => $val ) foreach ( $countries as $key => $val )

View File

@ -325,7 +325,7 @@ class WC_Admin_Taxonomies {
// Ref: http://core.trac.wordpress.org/ticket/23605 // Ref: http://core.trac.wordpress.org/ticket/23605
$image = str_replace( ' ', '%20', $image ); $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; $args['checked_ontop'] = false;
} }
return $args; return $args;
} }
} }
new WC_Admin_Taxonomies(); new WC_Admin_Taxonomies();

View File

@ -179,7 +179,7 @@ class WC_Meta_Box_Order_Data {
<?php do_action( 'woocommerce_admin_order_data_after_order_details', $order ); ?> <?php do_action( 'woocommerce_admin_order_data_after_order_details', $order ); ?>
</div> </div>
<div class="order_data_column"> <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 <?php
// Display values // Display values
echo '<div class="address">'; echo '<div class="address">';
@ -258,7 +258,7 @@ class WC_Meta_Box_Order_Data {
</div> </div>
<div class="order_data_column"> <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 <?php
// Display values // Display values
echo '<div class="address">'; echo '<div class="address">';
@ -397,4 +397,4 @@ class WC_Meta_Box_Order_Data {
wc_delete_shop_order_transients( $post_id ); wc_delete_shop_order_transients( $post_id );
} }
} }

View File

@ -291,7 +291,7 @@ function wc_placeholder_img_src() {
function wc_placeholder_img( $size = 'shop_thumbnail' ) { function wc_placeholder_img( $size = 'shop_thumbnail' ) {
$dimensions = wc_get_image_size( $size ); $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'] ) . '" />' );
} }
/** /**

View File

@ -35,7 +35,7 @@ global $post, $woocommerce, $product;
} else { } 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 );
} }
?> ?>