[2.5] Add context to category localisation

@claudiosmweb Closes #10183
This commit is contained in:
Mike Jolley 2016-01-27 11:19:38 +00:00
parent 32b6e05eb1
commit 47a74f96cd
3 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ class WC_Product_Cat_Dropdown_Walker extends Walker {
$output .= '>';
$output .= $pad . __( $cat_name, 'woocommerce' );
$output .= $pad . _x( $cat_name, 'product category name', 'woocommerce' );
if ( ! empty( $args['show_count'] ) )
$output .= ' (' . $cat->count . ')';

View File

@ -96,7 +96,7 @@ class WC_Product_Cat_List_Walker extends Walker {
$output .= ' current-cat-parent';
}
$output .= '"><a href="' . get_term_link( (int) $cat->term_id, $this->tree_type ) . '">' . __( $cat->name, 'woocommerce' ) . '</a>';
$output .= '"><a href="' . get_term_link( (int) $cat->term_id, $this->tree_type ) . '">' . _x( $cat->name, 'product category name', 'woocommerce' ) . '</a>';
if ( $args['show_count'] ) {
$output .= ' <span class="count">(' . $cat->count . ')</span>';

View File

@ -1764,7 +1764,7 @@ if ( ! function_exists( 'woocommerce_form_field' ) ) {
. '<option value="">'.__( 'Select a country&hellip;', 'woocommerce' ) .'</option>';
foreach ( $countries as $ckey => $cvalue ) {
$field .= '<option value="' . esc_attr( $ckey ) . '" '. selected( $value, $ckey, false ) . '>'.__( $cvalue, 'woocommerce' ) .'</option>';
$field .= '<option value="' . esc_attr( $ckey ) . '" '. selected( $value, $ckey, false ) . '>'. __( $cvalue, 'woocommerce' ) .'</option>';
}
$field .= '</select>';