localize Closes #1266.

This commit is contained in:
Mike Jolley 2012-07-18 09:38:00 +01:00
parent 1be0b9f8f2
commit 5ec11abf9c
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ class WC_Product_Cat_Dropdown_Walker extends Walker {
$output .= '>';
$output .= $pad . $cat_name;
$output .= $pad . __( $cat_name, 'woocommerce' );
if ( $args['show_count'] )
$output .= ' (' . $cat->count . ')';

View File

@ -60,7 +60,7 @@ class WC_Product_Cat_List_Walker extends Walker {
if ( $args['current_category_ancestors'] && $args['current_category'] && in_array( $cat->term_id, $args['current_category_ancestors'] ) )
$output .= ' current-cat-parent';
$output .= '"><a href="' . get_term_link( (int) $cat->term_id, 'product_cat' ) . '">' . $cat->name . '</a>';
$output .= '"><a href="' . get_term_link( (int) $cat->term_id, 'product_cat' ) . '">' . __( $cat->name, 'woocommerce' ) . '</a>';
if ( $args['show_count'] )
$output .= ' <span class="count">(' . $cat->count . ')</span>';