diff --git a/admin/woocommerce-admin-dashboard.php b/admin/woocommerce-admin-dashboard.php index 8218e9dc9f6..7bbb66db9cf 100644 --- a/admin/woocommerce-admin-dashboard.php +++ b/admin/woocommerce-admin-dashboard.php @@ -184,10 +184,10 @@ function woocommerce_init_dashboard_widgets() { $sales_heading = ''; if ($the_month_num!=date('m')) : - $sales_heading .= ''.date('F', strtotime('01-'.($the_month_num+1).'-2011')).' →'; + $sales_heading .= ''.date_i18n('F', strtotime('01-'.($the_month_num+1).'-2011')).' →'; endif; - $sales_heading .= '← '.date('F', strtotime('01-'.($the_month_num-1).'-2011')).''.__('Monthly Sales', 'woocommerce').''; + $sales_heading .= '← '.date_i18n('F', strtotime('01-'.($the_month_num-1).'-2011')).''.__('Monthly Sales', 'woocommerce').''; if(current_user_can('manage_woocommerce_orders')){ wp_add_dashboard_widget( 'woocommerce_dashboard_right_now', __( 'WooCommerce Right Now', 'woocommerce' ), 'woocommerce_dashboard_widget_right_now' ); @@ -388,8 +388,10 @@ function woocommerce_dashboard_sales_js() { remove_filter( 'posts_where', 'orders_this_month' ); /* Script variables */ - $params = array( - 'currency_symbol' => get_woocommerce_currency_symbol() + $params = array( + 'currency_symbol' => get_woocommerce_currency_symbol(), + 'number_of_sales' => __( 'Number of sales', 'woocommerce' ), + 'sales_amount' => __( 'Sales aumount', 'woocommerce' ), ); $order_counts_array = array(); diff --git a/admin/woocommerce-admin-reports.php b/admin/woocommerce-admin-reports.php index 085abb7d082..e0ee2490a01 100644 --- a/admin/woocommerce-admin-reports.php +++ b/admin/woocommerce-admin-reports.php @@ -1143,7 +1143,7 @@ function woocommerce_product_sales() { $orders_link = admin_url('edit.php?s&post_status=all&post_type=shop_order&action=-1&s=' . urlencode(get_the_title($chosen_product_id)) . '&m=' . date('Ym', strtotime($date.'01')) . '&shop_order_status=completed,processing,on-hold'); - echo '