Localisation spacing.

This commit is contained in:
Mike Jolley 2012-10-16 10:45:33 +01:00
parent f7e5dec1c4
commit 8c3ad31c07
121 changed files with 1590 additions and 1587 deletions

View File

@ -202,7 +202,7 @@ if ( class_exists( 'WP_Importer' ) ) {
// Show Result
echo '<div class="updated settings-error below-h2"><p>
'.sprintf( __('Import complete - imported <strong>%s</strong> tax rates and skipped <strong>%s</strong>.', 'woocommerce'), $this->imported, $this->skipped ).'
'.sprintf( __( 'Import complete - imported <strong>%s</strong> tax rates and skipped <strong>%s</strong>.', 'woocommerce' ), $this->imported, $this->skipped ).'
</p></div>';
$this->import_end();

View File

@ -20,7 +20,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
*/
function woocommerce_duplicate_product() {
if (! ( isset( $_GET['post']) || isset( $_POST['post']) || ( isset($_REQUEST['action']) && 'duplicate_post_save_as_new_page' == $_REQUEST['action'] ) ) ) {
wp_die(__('No product to duplicate has been supplied!', 'woocommerce'));
wp_die(__( 'No product to duplicate has been supplied!', 'woocommerce' ));
}
// Get the original page
@ -40,7 +40,7 @@ function woocommerce_duplicate_product() {
wp_redirect( admin_url( 'post.php?action=edit&post=' . $new_id ) );
exit;
} else {
wp_die(__('Product creation failed, could not find original product:', 'woocommerce') . ' ' . $id);
wp_die(__( 'Product creation failed, could not find original product:', 'woocommerce' ) . ' ' . $id);
}
}

View File

@ -58,7 +58,7 @@ function woocommerce_duplicate_product_post_button() {
if ( isset( $_GET['post'] ) ) :
$notifyUrl = wp_nonce_url( admin_url( "admin.php?action=duplicate_product&post=" . $_GET['post'] ), 'woocommerce-duplicate-product_' . $_GET['post'] );
?>
<div id="duplicate-action"><a class="submitduplicate duplication" href="<?php echo esc_url( $notifyUrl ); ?>"><?php _e('Copy to a new draft', 'woocommerce'); ?></a></div>
<div id="duplicate-action"><a class="submitduplicate duplication" href="<?php echo esc_url( $notifyUrl ); ?>"><?php _e( 'Copy to a new draft', 'woocommerce' ); ?></a></div>
<?php
endif;
}
@ -203,21 +203,21 @@ function woocommerce_custom_product_columns( $column ) {
break;
case "product_type" :
if( $product->product_type == 'grouped' ):
echo '<span class="product-type tips '.$product->product_type.'" data-tip="' . __('Grouped', 'woocommerce') . '"></span>';
echo '<span class="product-type tips '.$product->product_type.'" data-tip="' . __( 'Grouped', 'woocommerce' ) . '"></span>';
elseif ( $product->product_type == 'external' ):
echo '<span class="product-type tips '.$product->product_type.'" data-tip="' . __('External/Affiliate', 'woocommerce') . '"></span>';
echo '<span class="product-type tips '.$product->product_type.'" data-tip="' . __( 'External/Affiliate', 'woocommerce' ) . '"></span>';
elseif ( $product->product_type == 'simple' ):
if ($product->is_virtual()) {
echo '<span class="product-type tips virtual" data-tip="' . __('Virtual', 'woocommerce') . '"></span>';
echo '<span class="product-type tips virtual" data-tip="' . __( 'Virtual', 'woocommerce' ) . '"></span>';
} elseif ($product->is_downloadable()) {
echo '<span class="product-type tips downloadable" data-tip="' . __('Downloadable', 'woocommerce') . '"></span>';
echo '<span class="product-type tips downloadable" data-tip="' . __( 'Downloadable', 'woocommerce' ) . '"></span>';
} else {
echo '<span class="product-type tips '.$product->product_type.'" data-tip="' . __('Simple', 'woocommerce') . '"></span>';
echo '<span class="product-type tips '.$product->product_type.'" data-tip="' . __( 'Simple', 'woocommerce' ) . '"></span>';
}
elseif ( $product->product_type == 'variable' ):
echo '<span class="product-type tips '.$product->product_type.'" data-tip="' . __('Variable', 'woocommerce') . '"></span>';
echo '<span class="product-type tips '.$product->product_type.'" data-tip="' . __( 'Variable', 'woocommerce' ) . '"></span>';
else:
// Assuming that we have other types in future
echo '<span class="product-type tips '.$product->product_type.'" data-tip="' . ucwords($product->product_type) . '"></span>';
@ -240,7 +240,7 @@ function woocommerce_custom_product_columns( $column ) {
break;
case "featured" :
$url = wp_nonce_url( admin_url('admin-ajax.php?action=woocommerce-feature-product&product_id=' . $post->ID), 'woocommerce-feature-product' );
echo '<a href="'.$url.'" title="'.__('Change', 'woocommerce') .'">';
echo '<a href="'.$url.'" title="'.__( 'Change', 'woocommerce' ) .'">';
if ($product->is_featured()) echo '<a href="'.$url.'"><img src="'.$woocommerce->plugin_url().'/assets/images/featured.png" alt="yes" height="14" width="14" />';
else echo '<img src="'.$woocommerce->plugin_url().'/assets/images/featured-off.png" alt="no" height="14" width="14" />';
echo '</a>';
@ -248,9 +248,9 @@ function woocommerce_custom_product_columns( $column ) {
case "is_in_stock" :
if ($product->is_in_stock()) {
echo '<mark class="instock">' . __('In stock', 'woocommerce') . '</mark>';
echo '<mark class="instock">' . __( 'In stock', 'woocommerce' ) . '</mark>';
} else {
echo '<mark class="outofstock">' . __('Out of stock', 'woocommerce') . '</mark>';
echo '<mark class="outofstock">' . __( 'Out of stock', 'woocommerce' ) . '</mark>';
}
if ( $product->managing_stock() ) :
@ -366,7 +366,7 @@ function woocommerce_products_by_type() {
// Types
$terms = get_terms('product_type');
$output = "<select name='product_type' id='dropdown_product_type'>";
$output .= '<option value="">'.__('Show all product types', 'woocommerce').'</option>';
$output .= '<option value="">'.__( 'Show all product types', 'woocommerce' ).'</option>';
foreach($terms as $term) :
$output .="<option value='$term->slug' ";
if ( isset( $wp_query->query['product_type'] ) ) $output .=selected($term->slug, $wp_query->query['product_type'], false);
@ -374,13 +374,13 @@ function woocommerce_products_by_type() {
// Its was dynamic but did not support the translations
if( $term->name == 'grouped' ):
$output .= __('Grouped product', 'woocommerce');
$output .= __( 'Grouped product', 'woocommerce' );
elseif ( $term->name == 'external' ):
$output .= __('External/Affiliate product', 'woocommerce');
$output .= __( 'External/Affiliate product', 'woocommerce' );
elseif ( $term->name == 'simple' ):
$output .= __('Simple product', 'woocommerce');
$output .= __( 'Simple product', 'woocommerce' );
elseif ( $term->name == 'variable' ):
$output .= __('Variable', 'woocommerce');
$output .= __( 'Variable', 'woocommerce' );
else:
// Assuming that we have other types in future
$output .= ucwords($term->name);
@ -392,15 +392,15 @@ function woocommerce_products_by_type() {
// Downloadable/virtual
$output .= "<select name='product_subtype' id='dropdown_product_subtype'>";
$output .= '<option value="">'.__('Show all sub-types', 'woocommerce').'</option>';
$output .= '<option value="">'.__( 'Show all sub-types', 'woocommerce' ).'</option>';
$output .="<option value='downloadable' ";
if ( isset( $_GET['product_subtype'] ) ) $output .= selected('downloadable', $_GET['product_subtype'], false);
$output .=">".__('Downloadable', 'woocommerce')."</option>";
$output .=">".__( 'Downloadable', 'woocommerce' )."</option>";
$output .="<option value='virtual' ";
if ( isset( $_GET['product_subtype'] ) ) $output .= selected('virtual', $_GET['product_subtype'], false);
$output .=">".__('Virtual', 'woocommerce')."</option>";
$output .=">".__( 'Virtual', 'woocommerce' )."</option>";
$output .="</select>";
@ -545,12 +545,12 @@ function woocommerce_admin_product_quick_edit( $column_name, $post_type ) {
<fieldset class="inline-edit-col-left">
<div id="woocommerce-fields" class="inline-edit-col">
<h4><?php _e('Product Data', 'woocommerce'); ?></h4>
<h4><?php _e( 'Product Data', 'woocommerce' ); ?></h4>
<?php if( get_option('woocommerce_enable_sku', true) !== 'no' ) : ?>
<label>
<span class="title"><?php _e('SKU', 'woocommerce'); ?></span>
<span class="title"><?php _e( 'SKU', 'woocommerce' ); ?></span>
<span class="input-text-wrap">
<input type="text" name="_sku" class="text sku" value="">
</span>
@ -561,16 +561,16 @@ function woocommerce_admin_product_quick_edit( $column_name, $post_type ) {
<div class="price_fields">
<label>
<span class="title"><?php _e('Price', 'woocommerce'); ?></span>
<span class="title"><?php _e( 'Price', 'woocommerce' ); ?></span>
<span class="input-text-wrap">
<input type="text" name="_regular_price" class="text regular_price" placeholder="<?php _e('Regular price', 'woocommerce'); ?>" value="">
<input type="text" name="_regular_price" class="text regular_price" placeholder="<?php _e( 'Regular price', 'woocommerce' ); ?>" value="">
</span>
</label>
<br class="clear" />
<label>
<span class="title"><?php _e('Sale', 'woocommerce'); ?></span>
<span class="title"><?php _e( 'Sale', 'woocommerce' ); ?></span>
<span class="input-text-wrap">
<input type="text" name="_sale_price" class="text sale_price" placeholder="<?php _e('Sale price', 'woocommerce'); ?>" value="">
<input type="text" name="_sale_price" class="text sale_price" placeholder="<?php _e( 'Sale price', 'woocommerce' ); ?>" value="">
</span>
</label>
<br class="clear" />
@ -581,7 +581,7 @@ function woocommerce_admin_product_quick_edit( $column_name, $post_type ) {
<?php if ( get_option('woocommerce_enable_weight') == "yes" ) : ?>
<label>
<span class="title"><?php _e('Weight', 'woocommerce'); ?></span>
<span class="title"><?php _e( 'Weight', 'woocommerce' ); ?></span>
<span class="input-text-wrap">
<input type="text" name="_weight" class="text weight" placeholder="0.00" value="">
</span>
@ -592,11 +592,11 @@ function woocommerce_admin_product_quick_edit( $column_name, $post_type ) {
<?php if ( get_option('woocommerce_enable_dimensions') == "yes" ) : ?>
<div class="inline-edit-group dimensions">
<div>
<span class="title"><?php _e('L/W/H', 'woocommerce'); ?></span>
<span class="title"><?php _e( 'L/W/H', 'woocommerce' ); ?></span>
<span class="input-text-wrap">
<input type="text" name="_length" class="text length" placeholder="<?php _e('Length', 'woocommerce'); ?>" value="">
<input type="text" name="_width" class="text width" placeholder="<?php _e('Width', 'woocommerce'); ?>" value="">
<input type="text" name="_height" class="text height" placeholder="<?php _e('Height', 'woocommerce'); ?>" value="">
<input type="text" name="_length" class="text length" placeholder="<?php _e( 'Length', 'woocommerce' ); ?>" value="">
<input type="text" name="_width" class="text width" placeholder="<?php _e( 'Width', 'woocommerce' ); ?>" value="">
<input type="text" name="_height" class="text height" placeholder="<?php _e( 'Height', 'woocommerce' ); ?>" value="">
</span>
</div>
</div>
@ -606,15 +606,15 @@ function woocommerce_admin_product_quick_edit( $column_name, $post_type ) {
<?php endif; ?>
<label class="alignleft">
<span class="title"><?php _e('Visibility', 'woocommerce'); ?></span>
<span class="title"><?php _e( 'Visibility', 'woocommerce' ); ?></span>
<span class="input-text-wrap">
<select class="visibility" name="_visibility">
<?php
$options = array(
'visible' => __('Catalog &amp; search', 'woocommerce'),
'catalog' => __('Catalog', 'woocommerce'),
'search' => __('Search', 'woocommerce'),
'hidden' => __('Hidden', 'woocommerce')
'visible' => __( 'Catalog &amp; search', 'woocommerce' ),
'catalog' => __( 'Catalog', 'woocommerce' ),
'search' => __( 'Search', 'woocommerce' ),
'hidden' => __( 'Hidden', 'woocommerce' )
);
foreach ($options as $key => $value) {
echo '<option value="'.$key.'">'. $value .'</option>';
@ -625,17 +625,17 @@ function woocommerce_admin_product_quick_edit( $column_name, $post_type ) {
</label>
<label class="alignleft featured">
<input type="checkbox" name="_featured" value="1">
<span class="checkbox-title"><?php _e('Featured', 'woocommerce'); ?></span>
<span class="checkbox-title"><?php _e( 'Featured', 'woocommerce' ); ?></span>
</label>
<br class="clear" />
<label class="alignleft">
<span class="title"><?php _e('In stock?', 'woocommerce'); ?></span>
<span class="title"><?php _e( 'In stock?', 'woocommerce' ); ?></span>
<span class="input-text-wrap">
<select class="stock_status" name="_stock_status">
<?php
$options = array(
'instock' => __('In stock', 'woocommerce'),
'outofstock' => __('Out of stock', 'woocommerce')
'instock' => __( 'In stock', 'woocommerce' ),
'outofstock' => __( 'Out of stock', 'woocommerce' )
);
foreach ($options as $key => $value) {
echo '<option value="'.$key.'">'. $value .'</option>';
@ -650,11 +650,11 @@ function woocommerce_admin_product_quick_edit( $column_name, $post_type ) {
<?php if (get_option('woocommerce_manage_stock')=='yes') : ?>
<label class="alignleft manage_stock">
<input type="checkbox" name="_manage_stock" value="1">
<span class="checkbox-title"><?php _e('Manage stock?', 'woocommerce'); ?></span>
<span class="checkbox-title"><?php _e( 'Manage stock?', 'woocommerce' ); ?></span>
</label>
<br class="clear" />
<label class="stock_qty_field">
<span class="title"><?php _e('Stock Qty', 'woocommerce'); ?></span>
<span class="title"><?php _e( 'Stock Qty', 'woocommerce' ); ?></span>
<span class="input-text-wrap">
<input type="text" name="_stock" class="text stock" value="">
</span>
@ -776,11 +776,11 @@ function woocommerce_admin_product_bulk_edit( $column_name, $post_type ) {
<fieldset class="inline-edit-col-right">
<div id="woocommerce-fields-bulk" class="inline-edit-col">
<h4><?php _e('Product Data', 'woocommerce'); ?></h4>
<h4><?php _e( 'Product Data', 'woocommerce' ); ?></h4>
<div class="inline-edit-group">
<label class="alignleft">
<span class="title"><?php _e('Price', 'woocommerce'); ?></span>
<span class="title"><?php _e( 'Price', 'woocommerce' ); ?></span>
<span class="input-text-wrap">
<select class="change_regular_price change_to" name="change_regular_price">
<?php
@ -798,13 +798,13 @@ function woocommerce_admin_product_bulk_edit( $column_name, $post_type ) {
</span>
</label>
<label class="alignright">
<input type="text" name="_regular_price" class="text regular_price" placeholder="<?php _e('Enter price', 'woocommerce'); ?>" value="" />
<input type="text" name="_regular_price" class="text regular_price" placeholder="<?php _e( 'Enter price', 'woocommerce' ); ?>" value="" />
</label>
</div>
<div class="inline-edit-group">
<label class="alignleft">
<span class="title"><?php _e('Sale', 'woocommerce'); ?></span>
<span class="title"><?php _e( 'Sale', 'woocommerce' ); ?></span>
<span class="input-text-wrap">
<select class="change_sale_price change_to" name="change_sale_price">
<?php
@ -823,20 +823,20 @@ function woocommerce_admin_product_bulk_edit( $column_name, $post_type ) {
</span>
</label>
<label class="alignright">
<input type="text" name="_sale_price" class="text sale_price" placeholder="<?php _e('Enter price', 'woocommerce'); ?>" value="" />
<input type="text" name="_sale_price" class="text sale_price" placeholder="<?php _e( 'Enter price', 'woocommerce' ); ?>" value="" />
</label>
</div>
<?php if ( get_option('woocommerce_enable_weight') == "yes" ) : ?>
<div class="inline-edit-group">
<label class="alignleft">
<span class="title"><?php _e('Weight', 'woocommerce'); ?></span>
<span class="title"><?php _e( 'Weight', 'woocommerce' ); ?></span>
<span class="input-text-wrap">
<select class="change_weight change_to" name="change_weight">
<?php
$options = array(
'' => __('— No Change —', 'woocommerce'),
'1' => __('Change to:', 'woocommerce')
'' => __( '— No Change —', 'woocommerce' ),
'1' => __( 'Change to:', 'woocommerce' )
);
foreach ($options as $key => $value) {
echo '<option value="'.$key.'">'. $value .'</option>';
@ -854,13 +854,13 @@ function woocommerce_admin_product_bulk_edit( $column_name, $post_type ) {
<?php if ( get_option('woocommerce_enable_dimensions') == "yes" ) : ?>
<div class="inline-edit-group dimensions">
<label class="alignleft">
<span class="title"><?php _e('L/W/H', 'woocommerce'); ?></span>
<span class="title"><?php _e( 'L/W/H', 'woocommerce' ); ?></span>
<span class="input-text-wrap">
<select class="change_dimensions change_to" name="change_dimensions">
<?php
$options = array(
'' => __('— No Change —', 'woocommerce'),
'1' => __('Change to:', 'woocommerce')
'' => __( '— No Change —', 'woocommerce' ),
'1' => __( 'Change to:', 'woocommerce' )
);
foreach ($options as $key => $value) {
echo '<option value="'.$key.'">'. $value .'</option>';
@ -870,24 +870,24 @@ function woocommerce_admin_product_bulk_edit( $column_name, $post_type ) {
</span>
</label>
<div class="alignright">
<input type="text" name="_length" class="text length" placeholder="<?php _e('Length', 'woocommerce'); ?>" value="">
<input type="text" name="_width" class="text width" placeholder="<?php _e('Width', 'woocommerce'); ?>" value="">
<input type="text" name="_height" class="text height" placeholder="<?php _e('Height', 'woocommerce'); ?>" value="">
<input type="text" name="_length" class="text length" placeholder="<?php _e( 'Length', 'woocommerce' ); ?>" value="">
<input type="text" name="_width" class="text width" placeholder="<?php _e( 'Width', 'woocommerce' ); ?>" value="">
<input type="text" name="_height" class="text height" placeholder="<?php _e( 'Height', 'woocommerce' ); ?>" value="">
</div>
</div>
<?php endif; ?>
<label>
<span class="title"><?php _e('Visibility', 'woocommerce'); ?></span>
<span class="title"><?php _e( 'Visibility', 'woocommerce' ); ?></span>
<span class="input-text-wrap">
<select class="visibility" name="_visibility">
<?php
$options = array(
'' => __('— No Change —', 'woocommerce'),
'visible' => __('Catalog &amp; search', 'woocommerce'),
'catalog' => __('Catalog', 'woocommerce'),
'search' => __('Search', 'woocommerce'),
'hidden' => __('Hidden', 'woocommerce')
'' => __( '— No Change —', 'woocommerce' ),
'visible' => __( 'Catalog &amp; search', 'woocommerce' ),
'catalog' => __( 'Catalog', 'woocommerce' ),
'search' => __( 'Search', 'woocommerce' ),
'hidden' => __( 'Hidden', 'woocommerce' )
);
foreach ($options as $key => $value) {
echo '<option value="'.$key.'">'. $value .'</option>';
@ -897,14 +897,14 @@ function woocommerce_admin_product_bulk_edit( $column_name, $post_type ) {
</span>
</label>
<label>
<span class="title"><?php _e('Featured', 'woocommerce'); ?></span>
<span class="title"><?php _e( 'Featured', 'woocommerce' ); ?></span>
<span class="input-text-wrap">
<select class="featured" name="_featured">
<?php
$options = array(
'' => __('— No Change —', 'woocommerce'),
'yes' => __('Yes', 'woocommerce'),
'no' => __('No', 'woocommerce')
'' => __( '— No Change —', 'woocommerce' ),
'yes' => __( 'Yes', 'woocommerce' ),
'no' => __( 'No', 'woocommerce' )
);
foreach ($options as $key => $value) {
echo '<option value="'.$key.'">'. $value .'</option>';
@ -915,14 +915,14 @@ function woocommerce_admin_product_bulk_edit( $column_name, $post_type ) {
</label>
<label>
<span class="title"><?php _e('In stock?', 'woocommerce'); ?></span>
<span class="title"><?php _e( 'In stock?', 'woocommerce' ); ?></span>
<span class="input-text-wrap">
<select class="stock_status" name="_stock_status">
<?php
$options = array(
'' => __('— No Change —', 'woocommerce'),
'instock' => __('In stock', 'woocommerce'),
'outofstock' => __('Out of stock', 'woocommerce')
'' => __( '— No Change —', 'woocommerce' ),
'instock' => __( 'In stock', 'woocommerce' ),
'outofstock' => __( 'Out of stock', 'woocommerce' )
);
foreach ($options as $key => $value) {
echo '<option value="'.$key.'">'. $value .'</option>';
@ -933,14 +933,14 @@ function woocommerce_admin_product_bulk_edit( $column_name, $post_type ) {
</label>
<?php if (get_option('woocommerce_manage_stock')=='yes') : ?>
<label>
<span class="title"><?php _e('Manage stock?', 'woocommerce'); ?></span>
<span class="title"><?php _e( 'Manage stock?', 'woocommerce' ); ?></span>
<span class="input-text-wrap">
<select class="manage_stock" name="_manage_stock">
<?php
$options = array(
'' => __('— No Change —', 'woocommerce'),
'yes' => __('Yes', 'woocommerce'),
'no' => __('No', 'woocommerce')
'' => __( '— No Change —', 'woocommerce' ),
'yes' => __( 'Yes', 'woocommerce' ),
'no' => __( 'No', 'woocommerce' )
);
foreach ($options as $key => $value) {
echo '<option value="'.$key.'">'. $value .'</option>';
@ -952,13 +952,13 @@ function woocommerce_admin_product_bulk_edit( $column_name, $post_type ) {
<div class="inline-edit-group dimensions">
<label class="alignleft stock_qty_field">
<span class="title"><?php _e('Stock Qty', 'woocommerce'); ?></span>
<span class="title"><?php _e( 'Stock Qty', 'woocommerce' ); ?></span>
<span class="input-text-wrap">
<select class="change_stock change_to" name="change_stock">
<?php
$options = array(
'' => __('— No Change —', 'woocommerce'),
'1' => __('Change to:', 'woocommerce')
'' => __( '— No Change —', 'woocommerce' ),
'1' => __( 'Change to:', 'woocommerce' )
);
foreach ($options as $key => $value) {
echo '<option value="'.$key.'">'. $value .'</option>';
@ -968,7 +968,7 @@ function woocommerce_admin_product_bulk_edit( $column_name, $post_type ) {
</span>
</label>
<label class="alignright">
<input type="text" name="_stock" class="text stock" placeholder="<?php _e('Stock Qty', 'woocommerce'); ?>" value="">
<input type="text" name="_stock" class="text stock" placeholder="<?php _e( 'Stock Qty', 'woocommerce' ); ?>" value="">
</label>
</div>
<?php endif; ?>
@ -1165,7 +1165,7 @@ function woocommerce_default_sorting_link( $views ) {
$query_string = remove_query_arg(array( 'orderby', 'order' ));
$query_string = add_query_arg( 'orderby', urlencode('menu_order title'), $query_string );
$query_string = add_query_arg( 'order', urlencode('ASC'), $query_string );
$views['byorder'] = '<a href="'. $query_string . '" class="' . $class . '">' . __('Sort Products', 'woocommerce') . '</a>';
$views['byorder'] = '<a href="'. $query_string . '" class="' . $class . '">' . __( 'Sort Products', 'woocommerce' ) . '</a>';
return $views;
}

View File

@ -88,16 +88,16 @@ function woocommerce_custom_order_columns( $column ) {
$user .= '</a>';
else :
$user = __('Guest', 'woocommerce');
$user = __( 'Guest', 'woocommerce' );
endif;
echo '<a href="'.admin_url('post.php?post='.$post->ID.'&action=edit').'"><strong>'.sprintf( __('Order %s', 'woocommerce'), $order->get_order_number() ).'</strong></a> ' . __('made by', 'woocommerce') . ' ' . $user;
echo '<a href="'.admin_url('post.php?post='.$post->ID.'&action=edit').'"><strong>'.sprintf( __( 'Order %s', 'woocommerce' ), $order->get_order_number() ).'</strong></a> ' . __( 'made by', 'woocommerce' ) . ' ' . $user;
if ($order->billing_email) :
echo '<small class="meta">'.__('Email:', 'woocommerce') . ' ' . '<a href="' . esc_url( 'mailto:'.$order->billing_email ).'">'.esc_html( $order->billing_email ).'</a></small>';
echo '<small class="meta">'.__( 'Email:', 'woocommerce' ) . ' ' . '<a href="' . esc_url( 'mailto:'.$order->billing_email ).'">'.esc_html( $order->billing_email ).'</a></small>';
endif;
if ($order->billing_phone) :
echo '<small class="meta">'.__('Tel:', 'woocommerce') . ' ' . esc_html( $order->billing_phone ) . '</small>';
echo '<small class="meta">'.__( 'Tel:', 'woocommerce' ) . ' ' . esc_html( $order->billing_phone ) . '</small>';
endif;
break;
@ -110,7 +110,7 @@ function woocommerce_custom_order_columns( $column ) {
endif;
if ($order->payment_method_title) :
echo '<small class="meta">' . __('Via', 'woocommerce') . ' ' . esc_html( $order->payment_method_title ) . '</small>';
echo '<small class="meta">' . __( 'Via', 'woocommerce' ) . ' ' . esc_html( $order->payment_method_title ) . '</small>';
endif;
break;
@ -123,7 +123,7 @@ function woocommerce_custom_order_columns( $column ) {
endif;
if ($order->shipping_method_title) :
echo '<small class="meta">' . __('Via', 'woocommerce') . ' ' . esc_html( $order->shipping_method_title ) . '</small>';
echo '<small class="meta">' . __( 'Via', 'woocommerce' ) . ' ' . esc_html( $order->shipping_method_title ) . '</small>';
endif;
break;
case "total_cost" :
@ -191,9 +191,9 @@ function woocommerce_custom_order_columns( $column ) {
case "note" :
if ($order->customer_note)
echo '<img src="'.$woocommerce->plugin_url().'/assets/images/note.png" alt="yes" class="tips" data-tip="'. __('Yes', 'woocommerce') .'" width="14" height="14" />';
echo '<img src="'.$woocommerce->plugin_url().'/assets/images/note.png" alt="yes" class="tips" data-tip="'. __( 'Yes', 'woocommerce' ) .'" width="14" height="14" />';
else
echo '<img src="'.$woocommerce->plugin_url().'/assets/images/note-off.png" alt="no" class="tips" data-tip="'. __('No', 'woocommerce') .'" width="14" height="14" />';
echo '<img src="'.$woocommerce->plugin_url().'/assets/images/note-off.png" alt="no" class="tips" data-tip="'. __( 'No', 'woocommerce' ) .'" width="14" height="14" />';
break;
case "order_comments" :
@ -283,7 +283,7 @@ function woocommerce_restrict_manage_orders() {
// Status
?>
<select name='shop_order_status' id='dropdown_shop_order_status'>
<option value=""><?php _e('Show all statuses', 'woocommerce'); ?></option>
<option value=""><?php _e( 'Show all statuses', 'woocommerce' ); ?></option>
<?php
$terms = get_terms('shop_order_status');
@ -302,7 +302,7 @@ function woocommerce_restrict_manage_orders() {
// Customers
?>
<select id="dropdown_customers" name="_customer_user">
<option value=""><?php _e('Show all customers', 'woocommerce') ?></option>
<option value=""><?php _e( 'Show all customers', 'woocommerce' ) ?></option>
<?php
if ( ! empty( $_GET['_customer_user'] ) ) {
$user = get_user_by( 'id', absint( $_GET['_customer_user'] ) );
@ -327,7 +327,7 @@ function woocommerce_restrict_manage_orders() {
data: {
action: 'woocommerce_json_search_customers',
security: '" . wp_create_nonce("search-customers") . "',
default: '" . __('Show all customers', 'woocommerce') . "'
default: '" . __( 'Show all customers', 'woocommerce' ) . "'
}
}, function (data) {

View File

@ -19,7 +19,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
* @param mixed $post
* @return void
*/
function woocommerce_coupon_data_meta_box($post) {
function woocommerce_coupon_data_meta_box( $post ) {
global $woocommerce;
wp_nonce_field( 'woocommerce_save_data', 'woocommerce_meta_nonce' );
@ -34,34 +34,34 @@ function woocommerce_coupon_data_meta_box($post) {
echo '<div class="options_group">';
// Type
woocommerce_wp_select( array( 'id' => 'discount_type', 'label' => __('Discount type', 'woocommerce'), 'options' => $woocommerce->get_coupon_discount_types() ) );
woocommerce_wp_select( array( 'id' => 'discount_type', 'label' => __( 'Discount type', 'woocommerce' ), 'options' => $woocommerce->get_coupon_discount_types() ) );
// Amount
woocommerce_wp_text_input( array( 'id' => 'coupon_amount', 'label' => __('Coupon amount', 'woocommerce'), 'placeholder' => '0.00', 'description' => __('Enter an amount e.g. 2.99', 'woocommerce') ) );
woocommerce_wp_text_input( array( 'id' => 'coupon_amount', 'label' => __( 'Coupon amount', 'woocommerce' ), 'placeholder' => '0.00', 'description' => __( 'Enter an amount e.g. 2.99', 'woocommerce' ) ) );
// Description
woocommerce_wp_text_input( array( 'id' => 'coupon_description', 'label' => __('Coupon description', 'woocommerce'), 'description' => __('Optionally enter a description for this coupon', 'woocommerce'), 'value' => $post->post_excerpt, 'name' => 'excerpt' ) );
woocommerce_wp_text_input( array( 'id' => 'coupon_description', 'label' => __( 'Coupon description', 'woocommerce' ), 'description' => __( 'Optionally enter a description for this coupon', 'woocommerce' ), 'value' => $post->post_excerpt, 'name' => 'excerpt' ) );
// Individual use
woocommerce_wp_checkbox( array( 'id' => 'individual_use', 'label' => __('Individual use', 'woocommerce'), 'description' => __('Check this box if the coupon cannot be used in conjunction with other coupons', 'woocommerce') ) );
woocommerce_wp_checkbox( array( 'id' => 'individual_use', 'label' => __( 'Individual use', 'woocommerce' ), 'description' => __( 'Check this box if the coupon cannot be used in conjunction with other coupons', 'woocommerce' ) ) );
// Apply before tax
woocommerce_wp_checkbox( array( 'id' => 'apply_before_tax', 'label' => __('Apply before tax', 'woocommerce'), 'description' => __('Check this box if the coupon should be applied before calculating cart tax', 'woocommerce') ) );
woocommerce_wp_checkbox( array( 'id' => 'apply_before_tax', 'label' => __( 'Apply before tax', 'woocommerce' ), 'description' => __( 'Check this box if the coupon should be applied before calculating cart tax', 'woocommerce' ) ) );
// Free Shipping
woocommerce_wp_checkbox( array( 'id' => 'free_shipping', 'label' => __('Enable free shipping', 'woocommerce'), 'description' => sprintf(__('Check this box if the coupon enables free shipping (see <a href="%s">Free Shipping</a>)', 'woocommerce'), admin_url('admin.php?page=woocommerce_settings&tab=shipping&section=WC_Free_Shipping')) ) );
woocommerce_wp_checkbox( array( 'id' => 'free_shipping', 'label' => __( 'Enable free shipping', 'woocommerce' ), 'description' => sprintf(__( 'Check this box if the coupon enables free shipping (see <a href="%s">Free Shipping</a>)', 'woocommerce' ), admin_url('admin.php?page=woocommerce_settings&tab=shipping&section=WC_Free_Shipping')) ) );
echo '</div><div class="options_group">';
// minimum spend
woocommerce_wp_text_input( array( 'id' => 'minimum_amount', 'label' => __('Minimum amount', 'woocommerce'), 'placeholder' => __('No minimum', 'woocommerce'), 'description' => __('This field allows you to set the minimum subtotal needed to use the coupon.', 'woocommerce') ) );
woocommerce_wp_text_input( array( 'id' => 'minimum_amount', 'label' => __( 'Minimum amount', 'woocommerce' ), 'placeholder' => __( 'No minimum', 'woocommerce' ), 'description' => __( 'This field allows you to set the minimum subtotal needed to use the coupon.', 'woocommerce' ) ) );
echo '</div><div class="options_group">';
// Product ids
?>
<p class="form-field"><label for="product_ids"><?php _e('Products', 'woocommerce') ?></label>
<select id="product_ids" name="product_ids[]" class="ajax_chosen_select_products_and_variations" multiple="multiple" data-placeholder="<?php _e('Search for a product&hellip;', 'woocommerce'); ?>">
<p class="form-field"><label for="product_ids"><?php _e( 'Products', 'woocommerce' ) ?></label>
<select id="product_ids" name="product_ids[]" class="ajax_chosen_select_products_and_variations" multiple="multiple" data-placeholder="<?php _e( 'Search for a product&hellip;', 'woocommerce' ); ?>">
<?php
$product_ids = get_post_meta( $post->ID, 'product_ids', true );
if ($product_ids) {
@ -78,13 +78,13 @@ function woocommerce_coupon_data_meta_box($post) {
}
}
?>
</select> <img class="help_tip" data-tip='<?php _e('Products which need to be in the cart to use this coupon or, for "Product Discounts", which products are discounted.', 'woocommerce') ?>' src="<?php echo $woocommerce->plugin_url(); ?>/assets/images/help.png" /></p>
</select> <img class="help_tip" data-tip='<?php _e( 'Products which need to be in the cart to use this coupon or, for "Product Discounts", which products are discounted.', 'woocommerce' ) ?>' src="<?php echo $woocommerce->plugin_url(); ?>/assets/images/help.png" /></p>
<?php
// Exclude Product ids
?>
<p class="form-field"><label for="exclude_product_ids"><?php _e('Exclude Products', 'woocommerce') ?></label>
<select id="exclude_product_ids" name="exclude_product_ids[]" class="ajax_chosen_select_products_and_variations" multiple="multiple" data-placeholder="<?php _e('Search for a product…', 'woocommerce'); ?>">
<p class="form-field"><label for="exclude_product_ids"><?php _e( 'Exclude Products', 'woocommerce' ) ?></label>
<select id="exclude_product_ids" name="exclude_product_ids[]" class="ajax_chosen_select_products_and_variations" multiple="multiple" data-placeholder="<?php _e( 'Search for a product…', 'woocommerce' ); ?>">
<?php
$product_ids = get_post_meta( $post->ID, 'exclude_product_ids', true );
if ($product_ids) {
@ -101,15 +101,15 @@ function woocommerce_coupon_data_meta_box($post) {
}
}
?>
</select> <img class="help_tip" data-tip='<?php _e('Products which must not be in the cart to use this coupon or, for "Product Discounts", which products are not discounted.', 'woocommerce') ?>' src="<?php echo $woocommerce->plugin_url(); ?>/assets/images/help.png" /></p>
</select> <img class="help_tip" data-tip='<?php _e( 'Products which must not be in the cart to use this coupon or, for "Product Discounts", which products are not discounted.', 'woocommerce' ) ?>' src="<?php echo $woocommerce->plugin_url(); ?>/assets/images/help.png" /></p>
<?php
echo '</div><div class="options_group">';
// Categories
?>
<p class="form-field"><label for="product_ids"><?php _e('Product Categories', 'woocommerce') ?></label>
<select id="product_categories" name="product_categories[]" class="chosen_select" multiple="multiple" data-placeholder="<?php _e('Any category', 'woocommerce'); ?>">
<p class="form-field"><label for="product_ids"><?php _e( 'Product Categories', 'woocommerce' ) ?></label>
<select id="product_categories" name="product_categories[]" class="chosen_select" multiple="multiple" data-placeholder="<?php _e( 'Any category', 'woocommerce' ); ?>">
<?php
$category_ids = (array) get_post_meta( $post->ID, 'product_categories', true );
@ -120,13 +120,13 @@ function woocommerce_coupon_data_meta_box($post) {
echo '>'. $cat->name .'</option>';
}
?>
</select> <img class="help_tip" data-tip='<?php _e('A product must be in this category for the coupon to remain valid or, for "Product Discounts", products in these categories will be discounted.', 'woocommerce') ?>' src="<?php echo $woocommerce->plugin_url(); ?>/assets/images/help.png" /></p>
</select> <img class="help_tip" data-tip='<?php _e( 'A product must be in this category for the coupon to remain valid or, for "Product Discounts", products in these categories will be discounted.', 'woocommerce' ) ?>' src="<?php echo $woocommerce->plugin_url(); ?>/assets/images/help.png" /></p>
<?php
// Exclude Categories
?>
<p class="form-field"><label for="exclude_product_categories"><?php _e('Exclude Categories', 'woocommerce') ?></label>
<select id="exclude_product_categories" name="exclude_product_categories[]" class="chosen_select" multiple="multiple" data-placeholder="<?php _e('No categories', 'woocommerce'); ?>">
<p class="form-field"><label for="exclude_product_categories"><?php _e( 'Exclude Categories', 'woocommerce' ) ?></label>
<select id="exclude_product_categories" name="exclude_product_categories[]" class="chosen_select" multiple="multiple" data-placeholder="<?php _e( 'No categories', 'woocommerce' ); ?>">
<?php
$category_ids = (array) get_post_meta( $post->ID, 'exclude_product_categories', true );
@ -137,21 +137,21 @@ function woocommerce_coupon_data_meta_box($post) {
echo '>'. $cat->name .'</option>';
}
?>
</select> <img class="help_tip" data-tip='<?php _e('Product must not be in this category for the coupon to remain valid or, for "Product Discounts", products in these categories will not be discounted.', 'woocommerce') ?>' src="<?php echo $woocommerce->plugin_url(); ?>/assets/images/help.png" /></p>
</select> <img class="help_tip" data-tip='<?php _e( 'Product must not be in this category for the coupon to remain valid or, for "Product Discounts", products in these categories will not be discounted.', 'woocommerce' ) ?>' src="<?php echo $woocommerce->plugin_url(); ?>/assets/images/help.png" /></p>
<?php
echo '</div><div class="options_group">';
// Customers
woocommerce_wp_text_input( array( 'id' => 'customer_email', 'label' => __('Customer Emails', 'woocommerce'), 'placeholder' => __('Any customer', 'woocommerce'), 'description' => __('Comma separate email addresses to restrict this coupon to specific billing and user emails.', 'woocommerce'), 'value' => implode(', ', (array) get_post_meta( $post->ID, 'customer_email', true )) ) );
woocommerce_wp_text_input( array( 'id' => 'customer_email', 'label' => __( 'Customer Emails', 'woocommerce' ), 'placeholder' => __( 'Any customer', 'woocommerce' ), 'description' => __( 'Comma separate email addresses to restrict this coupon to specific billing and user emails.', 'woocommerce' ), 'value' => implode(', ', (array) get_post_meta( $post->ID, 'customer_email', true )) ) );
echo '</div><div class="options_group">';
// Usage limit
woocommerce_wp_text_input( array( 'id' => 'usage_limit', 'label' => __('Usage limit', 'woocommerce'), 'placeholder' => _x('Unlimited usage', 'placeholder', 'woocommerce'), 'description' => __('How many times this coupon can be used before it is void', 'woocommerce') ) );
woocommerce_wp_text_input( array( 'id' => 'usage_limit', 'label' => __( 'Usage limit', 'woocommerce' ), 'placeholder' => _x('Unlimited usage', 'placeholder', 'woocommerce'), 'description' => __( 'How many times this coupon can be used before it is void', 'woocommerce' ) ) );
// Expiry date
woocommerce_wp_text_input( array( 'id' => 'expiry_date', 'label' => __('Expiry date', 'woocommerce'), 'placeholder' => _x('Never expire', 'placeholder', 'woocommerce'), 'description' => __('The date this coupon will expire, <code>YYYY-MM-DD</code>', 'woocommerce'), 'class' => 'short date-picker' ) );
woocommerce_wp_text_input( array( 'id' => 'expiry_date', 'label' => __( 'Expiry date', 'woocommerce' ), 'placeholder' => _x('Never expire', 'placeholder', 'woocommerce'), 'description' => __( 'The date this coupon will expire, <code>YYYY-MM-DD</code>', 'woocommerce' ), 'class' => 'short date-picker' ) );
echo '</div>';

View File

@ -57,9 +57,9 @@ function woocommerce_order_data_meta_box($post) {
<div class="order_data_left">
<h2><?php _e('Order Details', 'woocommerce'); ?> &mdash; <?php echo $order->get_order_number(); ?></h2>
<h2><?php _e( 'Order Details', 'woocommerce' ); ?> &mdash; <?php echo $order->get_order_number(); ?></h2>
<p class="form-field"><label for="order_status"><?php _e('Order status:', 'woocommerce') ?></label>
<p class="form-field"><label for="order_status"><?php _e( 'Order status:', 'woocommerce' ) ?></label>
<select id="order_status" name="order_status" class="chosen_select">
<?php
$statuses = (array) get_terms('shop_order_status', array('hide_empty' => 0, 'orderby' => 'id'));
@ -71,14 +71,14 @@ function woocommerce_order_data_meta_box($post) {
?>
</select></p>
<p class="form-field last"><label for="order_date"><?php _e('Order Date:', 'woocommerce') ?></label>
<input type="text" class="date-picker-field" name="order_date" id="order_date" maxlength="10" value="<?php echo date_i18n( 'Y-m-d', strtotime( $post->post_date ) ); ?>" /> @ <input type="text" class="hour" placeholder="<?php _e('h', 'woocommerce') ?>" name="order_date_hour" id="order_date_hour" maxlength="2" size="2" value="<?php echo date_i18n( 'H', strtotime( $post->post_date ) ); ?>" />:<input type="text" class="minute" placeholder="<?php _e('m', 'woocommerce') ?>" name="order_date_minute" id="order_date_minute" maxlength="2" size="2" value="<?php echo date_i18n( 'i', strtotime( $post->post_date ) ); ?>" />
<p class="form-field last"><label for="order_date"><?php _e( 'Order Date:', 'woocommerce' ) ?></label>
<input type="text" class="date-picker-field" name="order_date" id="order_date" maxlength="10" value="<?php echo date_i18n( 'Y-m-d', strtotime( $post->post_date ) ); ?>" /> @ <input type="text" class="hour" placeholder="<?php _e( 'h', 'woocommerce' ) ?>" name="order_date_hour" id="order_date_hour" maxlength="2" size="2" value="<?php echo date_i18n( 'H', strtotime( $post->post_date ) ); ?>" />:<input type="text" class="minute" placeholder="<?php _e( 'm', 'woocommerce' ) ?>" name="order_date_minute" id="order_date_minute" maxlength="2" size="2" value="<?php echo date_i18n( 'i', strtotime( $post->post_date ) ); ?>" />
</p>
<p class="form-field form-field-wide">
<label for="customer_user"><?php _e('Customer:', 'woocommerce') ?></label>
<label for="customer_user"><?php _e( 'Customer:', 'woocommerce' ) ?></label>
<select id="customer_user" name="customer_user" class="ajax_chosen_select_customer">
<option value=""><?php _e('Guest', 'woocommerce') ?></option>
<option value=""><?php _e( 'Guest', 'woocommerce' ) ?></option>
<?php
if ( $customer_user ) {
$user = get_user_by( 'id', $customer_user );
@ -118,8 +118,8 @@ function woocommerce_order_data_meta_box($post) {
</p>
<?php if( get_option( 'woocommerce_enable_order_comments' ) != 'no' ) : ?>
<p class="form-field form-field-wide"><label for="excerpt"><?php _e('Customer Note:', 'woocommerce') ?></label>
<textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt" placeholder="<?php _e('Customer\'s notes about the order', 'woocommerce'); ?>"><?php echo $post->post_excerpt; ?></textarea></p>
<p class="form-field form-field-wide"><label for="excerpt"><?php _e( 'Customer Note:', 'woocommerce' ) ?></label>
<textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt" placeholder="<?php _e( 'Customer\'s notes about the order', 'woocommerce' ); ?>"><?php echo $post->post_excerpt; ?></textarea></p>
<?php endif; ?>
<?php do_action( 'woocommerce_admin_order_data_after_order_details', $order ); ?>
@ -127,59 +127,59 @@ function woocommerce_order_data_meta_box($post) {
</div>
<div class="order_data_right">
<div class="order_data">
<h2><?php _e('Billing Details', 'woocommerce'); ?> <a class="edit_address" href="#">(<?php _e('Edit', 'woocommerce') ;?>)</a></h2>
<h2><?php _e( 'Billing Details', 'woocommerce' ); ?> <a class="edit_address" href="#">(<?php _e( 'Edit', 'woocommerce' ) ;?>)</a></h2>
<?php
$billing_data = apply_filters('woocommerce_admin_billing_fields', array(
'first_name' => array(
'label' => __('First Name', 'woocommerce'),
'label' => __( 'First Name', 'woocommerce' ),
'show' => false
),
'last_name' => array(
'label' => __('Last Name', 'woocommerce'),
'label' => __( 'Last Name', 'woocommerce' ),
'show' => false
),
'company' => array(
'label' => __('Company', 'woocommerce'),
'label' => __( 'Company', 'woocommerce' ),
'show' => false
),
'address_1' => array(
'label' => __('Address 1', 'woocommerce'),
'label' => __( 'Address 1', 'woocommerce' ),
'show' => false
),
'address_2' => array(
'label' => __('Address 2', 'woocommerce'),
'label' => __( 'Address 2', 'woocommerce' ),
'show' => false
),
'city' => array(
'label' => __('City', 'woocommerce'),
'label' => __( 'City', 'woocommerce' ),
'show' => false
),
'postcode' => array(
'label' => __('Postcode', 'woocommerce'),
'label' => __( 'Postcode', 'woocommerce' ),
'show' => false
),
'country' => array(
'label' => __('Country', 'woocommerce'),
'label' => __( 'Country', 'woocommerce' ),
'show' => false,
'type' => 'select',
'options' => array( '' => __( 'Select a country&hellip;', 'woocommerce' ) ) + $woocommerce->countries->get_allowed_countries()
),
'state' => array(
'label' => __('State/County', 'woocommerce'),
'label' => __( 'State/County', 'woocommerce' ),
'show' => false
),
'email' => array(
'label' => __('Email', 'woocommerce'),
'label' => __( 'Email', 'woocommerce' ),
),
'phone' => array(
'label' => __('Phone', 'woocommerce'),
'label' => __( 'Phone', 'woocommerce' ),
),
));
// Display values
echo '<div class="address">';
if ($order->get_formatted_billing_address()) echo '<p><strong>'.__('Address', 'woocommerce').':</strong><br/> ' .$order->get_formatted_billing_address().'</p>'; else echo '<p class="none_set"><strong>'.__('Address', 'woocommerce').':</strong> ' . __('No billing address set.', 'woocommerce') . '</p>';
if ($order->get_formatted_billing_address()) echo '<p><strong>'.__( 'Address', 'woocommerce' ).':</strong><br/> ' .$order->get_formatted_billing_address().'</p>'; else echo '<p class="none_set"><strong>'.__( 'Address', 'woocommerce' ).':</strong> ' . __( 'No billing address set.', 'woocommerce' ) . '</p>';
foreach ( $billing_data as $key => $field ) : if (isset($field['show']) && !$field['show']) continue;
$field_name = 'billing_'.$key;
@ -189,7 +189,7 @@ function woocommerce_order_data_meta_box($post) {
echo '</div>';
// Display form
echo '<div class="edit_address"><p><button class="button load_customer_billing">'.__('Load billing address', 'woocommerce').'</button></p>';
echo '<div class="edit_address"><p><button class="button load_customer_billing">'.__( 'Load billing address', 'woocommerce' ).'</button></p>';
foreach ( $billing_data as $key => $field ) :
if (!isset($field['type'])) $field['type'] = 'text';
@ -210,45 +210,45 @@ function woocommerce_order_data_meta_box($post) {
</div>
<div class="order_data order_data_alt">
<h2><?php _e('Shipping Details', 'woocommerce'); ?> <a class="edit_address" href="#">(<?php _e('Edit', 'woocommerce') ;?>)</a></h2>
<h2><?php _e( 'Shipping Details', 'woocommerce' ); ?> <a class="edit_address" href="#">(<?php _e( 'Edit', 'woocommerce' ) ;?>)</a></h2>
<?php
$shipping_data = apply_filters('woocommerce_admin_shipping_fields', array(
'first_name' => array(
'label' => __('First Name', 'woocommerce'),
'label' => __( 'First Name', 'woocommerce' ),
'show' => false
),
'last_name' => array(
'label' => __('Last Name', 'woocommerce'),
'label' => __( 'Last Name', 'woocommerce' ),
'show' => false
),
'company' => array(
'label' => __('Company', 'woocommerce'),
'label' => __( 'Company', 'woocommerce' ),
'show' => false
),
'address_1' => array(
'label' => __('Address 1', 'woocommerce'),
'label' => __( 'Address 1', 'woocommerce' ),
'show' => false
),
'address_2' => array(
'label' => __('Address 2', 'woocommerce'),
'label' => __( 'Address 2', 'woocommerce' ),
'show' => false
),
'city' => array(
'label' => __('City', 'woocommerce'),
'label' => __( 'City', 'woocommerce' ),
'show' => false
),
'postcode' => array(
'label' => __('Postcode', 'woocommerce'),
'label' => __( 'Postcode', 'woocommerce' ),
'show' => false
),
'country' => array(
'label' => __('Country', 'woocommerce'),
'label' => __( 'Country', 'woocommerce' ),
'show' => false,
'type' => 'select',
'options' => array( '' => __( 'Select a country&hellip;', 'woocommerce' ) ) + $woocommerce->countries->get_allowed_countries()
),
'state' => array(
'label' => __('State/County', 'woocommerce'),
'label' => __( 'State/County', 'woocommerce' ),
'show' => false
),
));
@ -256,7 +256,7 @@ function woocommerce_order_data_meta_box($post) {
// Display values
echo '<div class="address">';
if ($order->get_formatted_shipping_address()) echo '<p><strong>'.__('Address', 'woocommerce').':</strong><br/> ' .$order->get_formatted_shipping_address().'</p>'; else echo '<p class="none_set"><strong>'.__('Address', 'woocommerce').':</strong> ' . __('No shipping address set.', 'woocommerce') . '</p>';
if ($order->get_formatted_shipping_address()) echo '<p><strong>'.__( 'Address', 'woocommerce' ).':</strong><br/> ' .$order->get_formatted_shipping_address().'</p>'; else echo '<p class="none_set"><strong>'.__( 'Address', 'woocommerce' ).':</strong> ' . __( 'No shipping address set.', 'woocommerce' ) . '</p>';
if ( $shipping_data ) foreach ( $shipping_data as $key => $field ) : if (isset($field['show']) && !$field['show']) continue;
$field_name = 'shipping_'.$key;
@ -266,7 +266,7 @@ function woocommerce_order_data_meta_box($post) {
echo '</div>';
// Display form
echo '<div class="edit_address"><p><button class="button load_customer_shipping">' . __('Load shipping address', 'woocommerce') . '</button> <button class="button billing-same-as-shipping">'. __('Copy from billing', 'woocommerce') . '</button></p>';
echo '<div class="edit_address"><p><button class="button load_customer_shipping">' . __( 'Load shipping address', 'woocommerce' ) . '</button> <button class="button billing-same-as-shipping">'. __( 'Copy from billing', 'woocommerce' ) . '</button></p>';
if ( $shipping_data ) foreach ( $shipping_data as $key => $field ) :
if (!isset($field['type'])) $field['type'] = 'text';
@ -307,18 +307,18 @@ function woocommerce_order_items_meta_box($post) {
<table cellpadding="0" cellspacing="0" class="woocommerce_order_items">
<thead>
<tr>
<th class="thumb" width="1%"><?php _e('Item', 'woocommerce'); ?></th>
<th class="sku"><?php _e('SKU', 'woocommerce'); ?></th>
<th class="name"><?php _e('Name', 'woocommerce'); ?></th>
<th class="thumb" width="1%"><?php _e( 'Item', 'woocommerce' ); ?></th>
<th class="sku"><?php _e( 'SKU', 'woocommerce' ); ?></th>
<th class="name"><?php _e( 'Name', 'woocommerce' ); ?></th>
<?php do_action('woocommerce_admin_order_item_headers'); ?>
<th class="tax_class"><?php _e('Tax Class', 'woocommerce'); ?>&nbsp;<a class="tips" data-tip="<?php _e('Tax class for the line item', 'woocommerce'); ?>." href="#">[?]</a></th>
<th class="tax_class"><?php _e( 'Tax Class', 'woocommerce' ); ?>&nbsp;<a class="tips" data-tip="<?php _e( 'Tax class for the line item', 'woocommerce' ); ?>." href="#">[?]</a></th>
<th class="quantity"><?php _e('Qty', 'woocommerce'); ?></th>
<th class="quantity"><?php _e( 'Qty', 'woocommerce' ); ?></th>
<th class="line_subtotal"><?php _e('Line&nbsp;Subtotal', 'woocommerce'); ?>&nbsp;<a class="tips" data-tip="<?php _e('Line cost and line tax before pre-tax discounts', 'woocommerce'); ?>" href="#">[?]</a></th>
<th class="line_subtotal"><?php _e( 'Line&nbsp;Subtotal', 'woocommerce' ); ?>&nbsp;<a class="tips" data-tip="<?php _e( 'Line cost and line tax before pre-tax discounts', 'woocommerce' ); ?>" href="#">[?]</a></th>
<th class="line_total"><?php _e('Line&nbsp;Total', 'woocommerce'); ?>&nbsp;<a class="tips" data-tip="<?php _e('Line cost and line tax after pre-tax discounts', 'woocommerce'); ?>" href="#">[?]</a></th>
<th class="line_total"><?php _e( 'Line&nbsp;Total', 'woocommerce' ); ?>&nbsp;<a class="tips" data-tip="<?php _e( 'Line cost and line tax after pre-tax discounts', 'woocommerce' ); ?>" href="#">[?]</a></th>
</tr>
</thead>
@ -343,9 +343,9 @@ function woocommerce_order_items_meta_box($post) {
<tr class="item" rel="<?php echo $loop; ?>">
<td class="thumb">
<a href="<?php echo esc_url( admin_url('post.php?post='. $_product->id .'&action=edit') ); ?>" class="tips" data-tip="<?php
echo '<strong>'.__('Product ID:', 'woocommerce').'</strong> '. $item['id'];
echo '<br/><strong>'.__('Variation ID:', 'woocommerce').'</strong> '; if ($item['variation_id']) echo $item['variation_id']; else echo '-';
echo '<br/><strong>'.__('Product SKU:', 'woocommerce').'</strong> '; if ($_product->sku) echo $_product->sku; else echo '-';
echo '<strong>'.__( 'Product ID:', 'woocommerce' ).'</strong> '. $item['id'];
echo '<br/><strong>'.__( 'Variation ID:', 'woocommerce' ).'</strong> '; if ($item['variation_id']) echo $item['variation_id']; else echo '-';
echo '<br/><strong>'.__( 'Product SKU:', 'woocommerce' ).'</strong> '; if ($_product->sku) echo $_product->sku; else echo '-';
?>"><?php echo $_product->get_image(); ?></a>
</td>
<td class="sku" width="1%">
@ -357,8 +357,8 @@ function woocommerce_order_items_meta_box($post) {
<td class="name">
<div class="row-actions">
<span class="trash"><a class="remove_row" href="#"><?php _e('Delete item', 'woocommerce'); ?></a> | </span>
<span class="view"><a href="<?php echo esc_url( admin_url('post.php?post='. $_product->id .'&action=edit') ); ?>"><?php _e('View product', 'woocommerce'); ?></a>
<span class="trash"><a class="remove_row" href="#"><?php _e( 'Delete item', 'woocommerce' ); ?></a> | </span>
<span class="view"><a href="<?php echo esc_url( admin_url('post.php?post='. $_product->id .'&action=edit') ); ?>"><?php _e( 'View product', 'woocommerce' ); ?></a>
</div>
<?php echo $item['name']; ?>
@ -368,7 +368,7 @@ function woocommerce_order_items_meta_box($post) {
<table class="meta" cellspacing="0">
<tfoot>
<tr>
<td colspan="4"><button class="add_meta button"><?php _e('Add&nbsp;meta', 'woocommerce'); ?></button></td>
<td colspan="4"><button class="add_meta button"><?php _e( 'Add&nbsp;meta', 'woocommerce' ); ?></button></td>
</tr>
</tfoot>
<tbody class="meta_items">
@ -396,12 +396,12 @@ function woocommerce_order_items_meta_box($post) {
<?php do_action( 'woocommerce_admin_order_item_values', $_product, $item, $loop ); ?>
<td class="tax_class" width="1%">
<select class="tax_class" name="item_tax_class[<?php echo $loop; ?>]" title="<?php _e('Tax class', 'woocommerce'); ?>">
<select class="tax_class" name="item_tax_class[<?php echo $loop; ?>]" title="<?php _e( 'Tax class', 'woocommerce' ); ?>">
<?php
$item_value = (isset($item['tax_class'])) ? sanitize_title($item['tax_class']) : '';
$tax_classes = array_filter(array_map('trim', explode("\n", get_option('woocommerce_tax_classes'))));
$classes_options = array();
$classes_options[''] = __('Standard', 'woocommerce');
$classes_options[''] = __( 'Standard', 'woocommerce' );
if ($tax_classes) foreach ($tax_classes as $class) :
$classes_options[sanitize_title($class)] = $class;
endforeach;
@ -415,15 +415,15 @@ function woocommerce_order_items_meta_box($post) {
</td>
<td class="line_subtotal" width="1%">
<label><?php _e('Cost', 'woocommerce'); ?>: <input type="text" name="line_subtotal[<?php echo $loop; ?>]" placeholder="0.00" value="<?php if (isset($item['line_subtotal'])) echo esc_attr( $item['line_subtotal'] ); ?>" class="line_subtotal" /></label>
<label><?php _e( 'Cost', 'woocommerce' ); ?>: <input type="text" name="line_subtotal[<?php echo $loop; ?>]" placeholder="0.00" value="<?php if (isset($item['line_subtotal'])) echo esc_attr( $item['line_subtotal'] ); ?>" class="line_subtotal" /></label>
<label><?php _e('Tax', 'woocommerce'); ?>: <input type="text" name="line_subtotal_tax[<?php echo $loop; ?>]" placeholder="0.00" value="<?php if (isset($item['line_subtotal_tax'])) echo esc_attr( $item['line_subtotal_tax'] ); ?>" class="line_subtotal_tax" /></label>
<label><?php _e( 'Tax', 'woocommerce' ); ?>: <input type="text" name="line_subtotal_tax[<?php echo $loop; ?>]" placeholder="0.00" value="<?php if (isset($item['line_subtotal_tax'])) echo esc_attr( $item['line_subtotal_tax'] ); ?>" class="line_subtotal_tax" /></label>
</td>
<td class="line_total" width="1%">
<label><?php _e('Cost', 'woocommerce'); ?>: <input type="text" name="line_total[<?php echo $loop; ?>]" placeholder="0.00" value="<?php if (isset($item['line_total'])) echo esc_attr( $item['line_total'] ); ?>" class="line_total" /></label>
<label><?php _e( 'Cost', 'woocommerce' ); ?>: <input type="text" name="line_total[<?php echo $loop; ?>]" placeholder="0.00" value="<?php if (isset($item['line_total'])) echo esc_attr( $item['line_total'] ); ?>" class="line_total" /></label>
<label><?php _e('Tax', 'woocommerce'); ?>: <input type="text" name="line_tax[<?php echo $loop; ?>]" placeholder="0.00" value="<?php if (isset($item['line_tax'])) echo esc_attr( $item['line_tax'] ); ?>" class="line_tax" /></label>
<label><?php _e( 'Tax', 'woocommerce' ); ?>: <input type="text" name="line_tax[<?php echo $loop; ?>]" placeholder="0.00" value="<?php if (isset($item['line_tax'])) echo esc_attr( $item['line_tax'] ); ?>" class="line_tax" /></label>
</td>
</tr>
@ -433,13 +433,13 @@ function woocommerce_order_items_meta_box($post) {
</div>
<p class="buttons">
<select id="add_item_id" name="add_item_id[]" class="ajax_chosen_select_products_and_variations" multiple="multiple" data-placeholder="<?php _e('Search for a product&hellip;', 'woocommerce'); ?>" style="width: 400px"></select>
<select id="add_item_id" name="add_item_id[]" class="ajax_chosen_select_products_and_variations" multiple="multiple" data-placeholder="<?php _e( 'Search for a product&hellip;', 'woocommerce' ); ?>" style="width: 400px"></select>
<button type="button" class="button add_shop_order_item"><?php _e('Add item(s)', 'woocommerce'); ?></button>
<button type="button" class="button add_shop_order_item"><?php _e( 'Add item(s)', 'woocommerce' ); ?></button>
</p>
<p class="buttons buttons-alt">
<button type="button" class="button calc_line_taxes"><?php _e('Calc line tax &uarr;', 'woocommerce'); ?></button>
<button type="button" class="button calc_totals"><?php _e('Calc totals &rarr;', 'woocommerce'); ?></button>
<button type="button" class="button calc_line_taxes"><?php _e( 'Calc line tax &uarr;', 'woocommerce' ); ?></button>
<button type="button" class="button calc_totals"><?php _e( 'Calc totals &rarr;', 'woocommerce' ); ?></button>
</p>
<div class="clear"></div>
<?php
@ -460,9 +460,9 @@ function woocommerce_order_actions_meta_box($post) {
?>
<ul class="order_actions submitbox">
<li><input type="submit" class="button tips" name="reduce_stock" value="<?php _e('Reduce stock', 'woocommerce'); ?>" data-tip="<?php _e('Reduces stock for each item in the order; useful after manually creating an order or manually marking an order as paid.', 'woocommerce'); ?>" /></li>
<li><input type="submit" class="button tips" name="reduce_stock" value="<?php _e( 'Reduce stock', 'woocommerce' ); ?>" data-tip="<?php _e( 'Reduces stock for each item in the order; useful after manually creating an order or manually marking an order as paid.', 'woocommerce' ); ?>" /></li>
<li><input type="submit" class="button tips" name="restore_stock" value="<?php _e('Restore stock', 'woocommerce'); ?>" data-tip="<?php _e('Restores stock for each item in the order; useful after refunding or canceling the entire order.', 'woocommerce'); ?>" /></li>
<li><input type="submit" class="button tips" name="restore_stock" value="<?php _e( 'Restore stock', 'woocommerce' ); ?>" data-tip="<?php _e( 'Restores stock for each item in the order; useful after refunding or canceling the entire order.', 'woocommerce' ); ?>" /></li>
<?php do_action('woocommerce_order_actions', $post->ID); ?>
@ -500,14 +500,14 @@ function woocommerce_order_actions_meta_box($post) {
<div id="delete-action"><?php
if ( current_user_can( "delete_post", $post->ID ) ) {
if ( !EMPTY_TRASH_DAYS )
$delete_text = __('Delete Permanently', 'woocommerce');
$delete_text = __( 'Delete Permanently', 'woocommerce' );
else
$delete_text = __('Move to Trash', 'woocommerce');
$delete_text = __( 'Move to Trash', 'woocommerce' );
?><a class="submitdelete deletion" href="<?php echo esc_url( get_delete_post_link($post->ID) ); ?>"><?php echo $delete_text; ?></a><?php
}
?></div>
<input type="submit" class="button save_order button-primary tips" name="save" value="<?php _e('Save Order', 'woocommerce'); ?>" data-tip="<?php _e('Save/update the order', 'woocommerce'); ?>" />
<input type="submit" class="button save_order button-primary tips" name="save" value="<?php _e( 'Save Order', 'woocommerce' ); ?>" data-tip="<?php _e( 'Save/update the order', 'woocommerce' ); ?>" />
</li>
</ul>
<?php
@ -527,18 +527,18 @@ function woocommerce_order_totals_meta_box($post) {
$data = get_post_custom( $post->ID );
?>
<div class="totals_group">
<h4><span class="discount_total_display inline_total"></span><?php _e('Discounts', 'woocommerce'); ?></h4>
<h4><span class="discount_total_display inline_total"></span><?php _e( 'Discounts', 'woocommerce' ); ?></h4>
<ul class="totals">
<li class="left">
<label><?php _e('Cart Discount:', 'woocommerce'); ?></label>
<label><?php _e( 'Cart Discount:', 'woocommerce' ); ?></label>
<input type="text" id="_cart_discount" name="_cart_discount" placeholder="0.00" value="<?php
if (isset($data['_cart_discount'][0])) echo $data['_cart_discount'][0];
?>" class="calculated" />
</li>
<li class="right">
<label><?php _e('Order Discount:', 'woocommerce'); ?></label>
<label><?php _e( 'Order Discount:', 'woocommerce' ); ?></label>
<input type="text" id="_order_discount" name="_order_discount" placeholder="0.00" value="<?php
if (isset($data['_order_discount'][0])) echo $data['_order_discount'][0];
?>" />
@ -548,17 +548,17 @@ function woocommerce_order_totals_meta_box($post) {
<div class="clear"></div>
</div>
<div class="totals_group">
<h4><?php _e('Shipping', 'woocommerce'); ?></h4>
<h4><?php _e( 'Shipping', 'woocommerce' ); ?></h4>
<ul class="totals">
<li class="left">
<label><?php _e('Cost ex. tax:', 'woocommerce'); ?></label>
<input type="text" id="_order_shipping" name="_order_shipping" placeholder="0.00 <?php _e('(ex. tax)', 'woocommerce'); ?>" value="<?php if (isset($data['_order_shipping'][0])) echo $data['_order_shipping'][0];
<label><?php _e( 'Cost ex. tax:', 'woocommerce' ); ?></label>
<input type="text" id="_order_shipping" name="_order_shipping" placeholder="0.00 <?php _e( '(ex. tax)', 'woocommerce' ); ?>" value="<?php if (isset($data['_order_shipping'][0])) echo $data['_order_shipping'][0];
?>" class="first" />
</li>
<li class="right">
<label><?php _e('Shipping Method:', 'woocommerce'); ?></label>
<label><?php _e( 'Shipping Method:', 'woocommerce' ); ?></label>
<select name="_shipping_method" id="_shipping_method" class="first">
<option value=""><?php _e( 'N/A', 'woocommerce' ); ?></option>
<?php
@ -583,8 +583,8 @@ function woocommerce_order_totals_meta_box($post) {
</li>
<li class="wide">
<label><?php _e('Shipping Title:', 'woocommerce'); ?></label>
<input type="text" id="_shipping_method_title" name="_shipping_method_title" placeholder="<?php _e('The shipping title the customer sees', 'woocommerce'); ?>" value="<?php if (isset($data['_shipping_method_title'][0])) echo $data['_shipping_method_title'][0];
<label><?php _e( 'Shipping Title:', 'woocommerce' ); ?></label>
<input type="text" id="_shipping_method_title" name="_shipping_method_title" placeholder="<?php _e( 'The shipping title the customer sees', 'woocommerce' ); ?>" value="<?php if (isset($data['_shipping_method_title'][0])) echo $data['_shipping_method_title'][0];
?>" class="first" />
</li>
@ -593,7 +593,7 @@ function woocommerce_order_totals_meta_box($post) {
<div class="clear"></div>
</div>
<div class="totals_group">
<h4><?php _e('Tax Rows', 'woocommerce'); ?></h4>
<h4><?php _e( 'Tax Rows', 'woocommerce' ); ?></h4>
<div id="tax_rows">
<?php
$loop = 0;
@ -603,19 +603,19 @@ function woocommerce_order_totals_meta_box($post) {
?>
<div class="tax_row">
<p class="first">
<label><?php _e('Tax Label:', 'woocommerce'); ?></label>
<label><?php _e( 'Tax Label:', 'woocommerce' ); ?></label>
<input type="text" name="_order_taxes_label[<?php echo $loop; ?>]" placeholder="<?php echo $woocommerce->countries->tax_or_vat(); ?>" value="<?php echo $tax['label']; ?>" />
</p>
<p class="last">
<label><?php _e('Compound:', 'woocommerce'); ?>
<label><?php _e( 'Compound:', 'woocommerce' ); ?>
<input type="checkbox" name="_order_taxes_compound[<?php echo $loop; ?>]" <?php checked($tax['compound'], 1); ?> /></label>
</p>
<p class="first">
<label><?php _e('Cart Tax:', 'woocommerce'); ?></label>
<label><?php _e( 'Cart Tax:', 'woocommerce' ); ?></label>
<input type="text" name="_order_taxes_cart[<?php echo $loop; ?>]" placeholder="0.00" value="<?php echo $tax['cart_tax']; ?>" />
</p>
<p class="last">
<label><?php _e('Shipping Tax:', 'woocommerce'); ?></label>
<label><?php _e( 'Shipping Tax:', 'woocommerce' ); ?></label>
<input type="text" name="_order_taxes_shipping[<?php echo $loop; ?>]" placeholder="0.00" value="<?php echo $tax['shipping_tax']; ?>" />
</p>
<a href="#" class="delete_tax_row">&times;</a>
@ -627,22 +627,22 @@ function woocommerce_order_totals_meta_box($post) {
endif;
?>
</div>
<h4><a href="#" class="add_tax_row tips" data-tip="<?php _e('These rows contain taxes for this order. This allows you to display multiple or compound taxes rather than a single total.', 'woocommerce'); ?>"><?php _e('+ Add tax row', 'woocommerce'); ?> [?]</a></a></h4>
<h4><a href="#" class="add_tax_row tips" data-tip="<?php _e( 'These rows contain taxes for this order. This allows you to display multiple or compound taxes rather than a single total.', 'woocommerce' ); ?>"><?php _e( '+ Add tax row', 'woocommerce' ); ?> [?]</a></a></h4>
<div class="clear"></div>
</div>
<div class="totals_group">
<h4><span class="tax_total_display inline_total"></span><?php _e('Tax Totals', 'woocommerce'); ?></h4>
<h4><span class="tax_total_display inline_total"></span><?php _e( 'Tax Totals', 'woocommerce' ); ?></h4>
<ul class="totals">
<li class="left">
<label><?php _e('Cart Tax:', 'woocommerce'); ?></label>
<label><?php _e( 'Cart Tax:', 'woocommerce' ); ?></label>
<input type="text" id="_order_tax" name="_order_tax" placeholder="0.00" value="<?php
if (isset($data['_order_tax'][0])) echo $data['_order_tax'][0];
?>" class="calculated" />
</li>
<li class="right">
<label><?php _e('Shipping Tax:', 'woocommerce'); ?></label>
<label><?php _e( 'Shipping Tax:', 'woocommerce' ); ?></label>
<input type="text" id="_order_shipping_tax" name="_order_shipping_tax" placeholder="0.00" value="<?php
if (isset($data['_order_shipping_tax'][0])) echo $data['_order_shipping_tax'][0];
?>" />
@ -652,18 +652,18 @@ function woocommerce_order_totals_meta_box($post) {
<div class="clear"></div>
</div>
<div class="totals_group">
<h4><?php _e('Total', 'woocommerce'); ?></h4>
<h4><?php _e( 'Total', 'woocommerce' ); ?></h4>
<ul class="totals">
<li class="left">
<label><?php _e('Order Total:', 'woocommerce'); ?></label>
<label><?php _e( 'Order Total:', 'woocommerce' ); ?></label>
<input type="text" id="_order_total" name="_order_total" placeholder="0.00" value="<?php
if (isset($data['_order_total'][0])) echo $data['_order_total'][0];
?>" class="calculated" />
</li>
<li class="right">
<label><?php _e('Payment Method:', 'woocommerce'); ?></label>
<label><?php _e( 'Payment Method:', 'woocommerce' ); ?></label>
<select name="_payment_method" id="_payment_method" class="first">
<option value=""><?php _e( 'N/A', 'woocommerce' ); ?></option>
<?php
@ -895,7 +895,7 @@ function woocommerce_process_shop_order_meta( $post_id, $post ) {
if (isset($_POST['reduce_stock']) && $_POST['reduce_stock'] && sizeof($order_items)>0) :
$order->add_order_note( __('Manually reducing stock.', 'woocommerce') );
$order->add_order_note( __( 'Manually reducing stock.', 'woocommerce' ) );
foreach ($order_items as $order_item) :
@ -909,7 +909,7 @@ function woocommerce_process_shop_order_meta( $post_id, $post ) {
$new_quantity = $_product->reduce_stock( $order_item['qty'] );
$order->add_order_note( sprintf( __('Item #%s stock reduced from %s to %s.', 'woocommerce'), $order_item['id'], $old_stock, $new_quantity) );
$order->add_order_note( sprintf( __( 'Item #%s stock reduced from %s to %s.', 'woocommerce' ), $order_item['id'], $old_stock, $new_quantity) );
$order->send_stock_notifications( $_product, $new_quantity, $order_item['qty'] );
@ -917,19 +917,19 @@ function woocommerce_process_shop_order_meta( $post_id, $post ) {
else :
$order->add_order_note( sprintf( __('Item %s %s not found, skipping.', 'woocommerce'), $order_item['id'], $order_item['name'] ) );
$order->add_order_note( sprintf( __( 'Item %s %s not found, skipping.', 'woocommerce' ), $order_item['id'], $order_item['name'] ) );
endif;
endforeach;
$order->add_order_note( __('Manual stock reduction complete.', 'woocommerce') );
$order->add_order_note( __( 'Manual stock reduction complete.', 'woocommerce' ) );
do_action( 'woocommerce_reduce_order_stock', $order );
elseif (isset($_POST['restore_stock']) && $_POST['restore_stock'] && sizeof($order_items)>0) :
$order->add_order_note( __('Manually restoring stock.', 'woocommerce') );
$order->add_order_note( __( 'Manually restoring stock.', 'woocommerce' ) );
foreach ($order_items as $order_item) :
@ -943,19 +943,19 @@ function woocommerce_process_shop_order_meta( $post_id, $post ) {
$new_quantity = $_product->increase_stock( $order_item['qty'] );
$order->add_order_note( sprintf( __('Item #%s stock increased from %s to %s.', 'woocommerce'), $order_item['id'], $old_stock, $new_quantity) );
$order->add_order_note( sprintf( __( 'Item #%s stock increased from %s to %s.', 'woocommerce' ), $order_item['id'], $old_stock, $new_quantity) );
endif;
else :
$order->add_order_note( sprintf( __('Item %s %s not found, skipping.', 'woocommerce'), $order_item['id'], $order_item['name'] ) );
$order->add_order_note( sprintf( __( 'Item %s %s not found, skipping.', 'woocommerce' ), $order_item['id'], $order_item['name'] ) );
endif;
endforeach;
$order->add_order_note( __('Manual stock restore complete.', 'woocommerce') );
$order->add_order_note( __( 'Manual stock restore complete.', 'woocommerce' ) );
do_action( 'woocommerce_restore_order_stock', $order );

View File

@ -7,7 +7,7 @@
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/WritePanels
* @version 1.6.4
* @version 1.7.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@ -22,44 +22,47 @@ function woocommerce_order_notes_meta_box() {
global $woocommerce, $post;
$args = array(
'post_id' => $post->ID,
'approve' => 'approve',
'type' => ''
'post_id' => $post->ID,
'approve' => 'approve',
'type' => ''
);
$notes = get_comments( $args );
echo '<ul class="order_notes">';
if ($notes) :
foreach($notes as $note) :
$customer_note = get_comment_meta($note->comment_ID, 'is_customer_note', true);
echo '<li rel="'.$note->comment_ID.'" class="note ';
if ($customer_note) echo 'customer-note';
echo '"><div class="note_content">';
echo wpautop( wptexturize( $note->comment_content ) );
echo '</div><p class="meta">'. sprintf(__('added %s ago', 'woocommerce'), human_time_diff(strtotime($note->comment_date_gmt), current_time('timestamp', 1))) .' - <a href="#" class="delete_note">'.__('Delete note', 'woocommerce').'</a></p>';
echo '</li>';
endforeach;
else :
echo '<li>' . __('There are no notes for this order yet.', 'woocommerce') . '</li>';
endif;
if ( $notes ) {
foreach( $notes as $note ) {
$note_classes = get_comment_meta( $note->comment_ID, 'is_customer_note', true ) ? array( 'customer-note', 'note' ) : array( 'note' );
?>
<li rel="<?php echo absint( $note->comment_ID ) ; ?>" class="<?php echo implode( ' ', $note_classes ); ?>">
<div class="note_content">
<?php echo wpautop( wptexturize( wp_kses_post( $note->comment_content ) ) ); ?>
</div>
<p class="meta">
<?php printf( __( 'added %s ago', 'woocommerce' ), human_time_diff( strtotime( $note->comment_date_gmt ), current_time( 'timestamp', 1 ) ) ); ?> <a href="#" class="delete_note"><?php _e( 'Delete note', 'woocommerce' ); ?></a>
</p>
</li>
<?php
}
} else {
echo '<li>' . __( 'There are no notes for this order yet.', 'woocommerce' ) . '</li>';
}
echo '</ul>';
?>
<div class="add_note">
<h4><?php _e('Add note', 'woocommerce'); ?> <img class="help_tip" data-tip='<?php esc_attr_e('Add a note for your reference, or add a customer note (the user will be notified).', 'woocommerce'); ?>' src="<?php echo $woocommerce->plugin_url(); ?>/assets/images/help.png" /></h4>
<h4><?php _e( 'Add note', 'woocommerce' ); ?> <img class="help_tip" data-tip='<?php esc_attr_e( 'Add a note for your reference, or add a customer note (the user will be notified).', 'woocommerce' ); ?>' src="<?php echo $woocommerce->plugin_url(); ?>/assets/images/help.png" /></h4>
<p>
<textarea type="text" name="order_note" id="add_order_note" class="input-text" cols="20" rows="5"></textarea>
</p>
<p>
<select name="order_note_type" id="order_note_type">
<option value="customer"><?php _e('Customer note', 'woocommerce'); ?></option>
<option value=""><?php _e('Private note', 'woocommerce'); ?></option>
<option value="customer"><?php _e( 'Customer note', 'woocommerce' ); ?></option>
<option value=""><?php _e( 'Private note', 'woocommerce' ); ?></option>
</select>
<a href="#" class="add_note button"><?php _e('Add', 'woocommerce'); ?></a>
<a href="#" class="add_note button"><?php _e( 'Add', 'woocommerce' ); ?></a>
</p>
</div>
<script type="text/javascript">

View File

@ -53,7 +53,7 @@ function woocommerce_meta_boxes() {
// Excerpt
if ( function_exists('wp_editor') ) {
remove_meta_box( 'postexcerpt', 'product', 'normal' );
add_meta_box( 'postexcerpt', __('Product Short Description', 'woocommerce'), 'woocommerce_product_short_description_meta_box', 'product', 'normal' );
add_meta_box( 'postexcerpt', __( 'Product Short Description', 'woocommerce' ), 'woocommerce_product_short_description_meta_box', 'product', 'normal' );
}
// Comments/Reviews
@ -62,16 +62,16 @@ function woocommerce_meta_boxes() {
if ( ('publish' == $post->post_status || 'private' == $post->post_status) ) {
remove_meta_box( 'commentsdiv', 'product', 'normal' );
add_meta_box( 'commentsdiv', __('Reviews', 'woocommerce'), 'post_comment_meta_box', 'product', 'normal' );
add_meta_box( 'commentsdiv', __( 'Reviews', 'woocommerce' ), 'post_comment_meta_box', 'product', 'normal' );
}
// Orders
add_meta_box( 'woocommerce-order-data', __('Order Data', 'woocommerce'), 'woocommerce_order_data_meta_box', 'shop_order', 'normal', 'high' );
add_meta_box( 'woocommerce-order-items', __('Order Items <small>&ndash; Note: if you edit quantities or remove items from the order you will need to manually change the item\'s stock levels.</small>', 'woocommerce'), 'woocommerce_order_items_meta_box', 'shop_order', 'normal', 'high');
add_meta_box( 'woocommerce-order-totals', __('Order Totals', 'woocommerce'), 'woocommerce_order_totals_meta_box', 'shop_order', 'side', 'default');
add_meta_box( 'woocommerce-order-notes', __('Order Notes', 'woocommerce'), 'woocommerce_order_notes_meta_box', 'shop_order', 'side', 'default');
add_meta_box( 'woocommerce-order-downloads', __('Downloadable Product Permissions <small>&ndash; Note: Permissions for order items will automatically be granted when the order status changes to processing/completed.</small>', 'woocommerce'), 'woocommerce_order_downloads_meta_box', 'shop_order', 'normal', 'default');
add_meta_box( 'woocommerce-order-actions', __('Order Actions', 'woocommerce'), 'woocommerce_order_actions_meta_box', 'shop_order', 'side', 'high');
add_meta_box( 'woocommerce-order-data', __( 'Order Data', 'woocommerce' ), 'woocommerce_order_data_meta_box', 'shop_order', 'normal', 'high' );
add_meta_box( 'woocommerce-order-items', __( 'Order Items <small>&ndash; Note: if you edit quantities or remove items from the order you will need to manually change the item\'s stock levels.</small>', 'woocommerce' ), 'woocommerce_order_items_meta_box', 'shop_order', 'normal', 'high');
add_meta_box( 'woocommerce-order-totals', __( 'Order Totals', 'woocommerce' ), 'woocommerce_order_totals_meta_box', 'shop_order', 'side', 'default');
add_meta_box( 'woocommerce-order-notes', __( 'Order Notes', 'woocommerce' ), 'woocommerce_order_notes_meta_box', 'shop_order', 'side', 'default');
add_meta_box( 'woocommerce-order-downloads', __( 'Downloadable Product Permissions <small>&ndash; Note: Permissions for order items will automatically be granted when the order status changes to processing/completed.</small>', 'woocommerce' ), 'woocommerce_order_downloads_meta_box', 'shop_order', 'normal', 'default');
add_meta_box( 'woocommerce-order-actions', __( 'Order Actions', 'woocommerce' ), 'woocommerce_order_actions_meta_box', 'shop_order', 'side', 'high');
remove_meta_box( 'commentsdiv', 'shop_order' , 'normal' );
remove_meta_box( 'woothemes-settings', 'shop_order' , 'normal' );
@ -79,7 +79,7 @@ function woocommerce_meta_boxes() {
remove_meta_box( 'slugdiv', 'shop_order' , 'normal' );
// Coupons
add_meta_box( 'woocommerce-coupon-data', __('Coupon Data', 'woocommerce'), 'woocommerce_coupon_data_meta_box', 'shop_coupon', 'normal', 'high');
add_meta_box( 'woocommerce-coupon-data', __( 'Coupon Data', 'woocommerce' ), 'woocommerce_coupon_data_meta_box', 'shop_coupon', 'normal', 'high');
remove_meta_box( 'woothemes-settings', 'shop_coupon' , 'normal' );
remove_meta_box( 'commentstatusdiv', 'shop_coupon' , 'normal' );
@ -98,8 +98,8 @@ add_action( 'add_meta_boxes', 'woocommerce_meta_boxes' );
* @return string
*/
function woocommerce_enter_title_here( $text, $post ) {
if ( $post->post_type == 'shop_coupon' ) return __('Coupon code', 'woocommerce');
if ( $post->post_type == 'product' ) return __('Product name', 'woocommerce');
if ( $post->post_type == 'shop_coupon' ) return __( 'Coupon code', 'woocommerce' );
if ( $post->post_type == 'product' ) return __( 'Product name', 'woocommerce' );
return $text;
}

View File

@ -40,11 +40,11 @@ function woocommerce_frontend_styles_setting() {
if ( empty( $colors['subtext'] ) ) $colors['subtext'] = '#777777';
// Show inputs
woocommerce_frontend_css_color_picker( __('Primary', 'woocommerce'), 'woocommerce_frontend_css_primary', $colors['primary'], __('Call to action buttons/price slider/layered nav UI', 'woocommerce') );
woocommerce_frontend_css_color_picker( __('Secondary', 'woocommerce'), 'woocommerce_frontend_css_secondary', $colors['secondary'], __('Buttons and tabs', 'woocommerce') );
woocommerce_frontend_css_color_picker( __('Highlight', 'woocommerce'), 'woocommerce_frontend_css_highlight', $colors['highlight'], __('Price labels and Sale Flashes', 'woocommerce') );
woocommerce_frontend_css_color_picker( __('Content', 'woocommerce'), 'woocommerce_frontend_css_content_bg', $colors['content_bg'], __('Your themes page background - used for tab active states', 'woocommerce') );
woocommerce_frontend_css_color_picker( __('Subtext', 'woocommerce'), 'woocommerce_frontend_css_subtext', $colors['subtext'], __('Used for certain text and asides - breadcrumbs, small text etc.', 'woocommerce') );
woocommerce_frontend_css_color_picker( __( 'Primary', 'woocommerce' ), 'woocommerce_frontend_css_primary', $colors['primary'], __( 'Call to action buttons/price slider/layered nav UI', 'woocommerce' ) );
woocommerce_frontend_css_color_picker( __( 'Secondary', 'woocommerce' ), 'woocommerce_frontend_css_secondary', $colors['secondary'], __( 'Buttons and tabs', 'woocommerce' ) );
woocommerce_frontend_css_color_picker( __( 'Highlight', 'woocommerce' ), 'woocommerce_frontend_css_highlight', $colors['highlight'], __( 'Price labels and Sale Flashes', 'woocommerce' ) );
woocommerce_frontend_css_color_picker( __( 'Content', 'woocommerce' ), 'woocommerce_frontend_css_content_bg', $colors['content_bg'], __( 'Your themes page background - used for tab active states', 'woocommerce' ) );
woocommerce_frontend_css_color_picker( __( 'Subtext', 'woocommerce' ), 'woocommerce_frontend_css_subtext', $colors['subtext'], __( 'Used for certain text and asides - breadcrumbs, small text etc.', 'woocommerce' ) );
} else {

View File

@ -13,8 +13,8 @@
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
$localisation_setting = ( defined('WPLANG') ) ? array(
'name' => __('Localisation', 'woocommerce'),
'desc' => __('Use informal localisation file if it exists', 'woocommerce'),
'name' => __( 'Localisation', 'woocommerce' ),
'desc' => __( 'Use informal localisation file if it exists', 'woocommerce' ),
'id' => 'woocommerce_informal_localisation_type',
'type' => 'checkbox',
'std' => 'no',
@ -103,7 +103,7 @@ $woocommerce_settings['general'] = apply_filters('woocommerce_general_settings',
array( 'type' => 'sectionend', 'id' => 'general_options'),
array( 'name' => __( 'Checkout and Accounts', 'woocommerce' ), 'type' => 'title','desc' => __('The following options control the behaviour of the checkout process and customer accounts.', 'woocommerce'), 'id' => 'checkout_account_options' ),
array( 'name' => __( 'Checkout and Accounts', 'woocommerce' ), 'type' => 'title','desc' => __( 'The following options control the behaviour of the checkout process and customer accounts.', 'woocommerce' ), 'id' => 'checkout_account_options' ),
array(
'name' => __( 'Checkout', 'woocommerce' ),
@ -130,7 +130,7 @@ $woocommerce_settings['general'] = apply_filters('woocommerce_general_settings',
'type' => 'checkbox',
'checkboxgroup' => 'start',
'show_if_checked' => 'option',
'desc_tip' => __('Force SSL (HTTPS) on the checkout pages (an SSL Certificate is required)', 'woocommerce'),
'desc_tip' => __( 'Force SSL (HTTPS) on the checkout pages (an SSL Certificate is required)', 'woocommerce' ),
),
array(
@ -222,7 +222,7 @@ $woocommerce_settings['general'] = apply_filters('woocommerce_general_settings',
array( 'type' => 'sectionend', 'id' => 'checkout_account_options'),
array( 'name' => __( 'Styles and Scripts', 'woocommerce' ), 'type' => 'title', 'desc' => __('The following options affect the styling of your store, as well as how certain features behave.', 'woocommerce'), 'id' => 'script_styling_options' ),
array( 'name' => __( 'Styles and Scripts', 'woocommerce' ), 'type' => 'title', 'desc' => __( 'The following options affect the styling of your store, as well as how certain features behave.', 'woocommerce' ), 'id' => 'script_styling_options' ),
array(
'name' => __( 'Styling', 'woocommerce' ),
@ -280,11 +280,11 @@ $woocommerce_settings['general'] = apply_filters('woocommerce_general_settings',
array( 'type' => 'sectionend', 'id' => 'script_styling_options'),
array( 'name' => __( 'Digital Downloads', 'woocommerce' ), 'type' => 'title','desc' => __('The following options are specific to downloadable products.', 'woocommerce'), 'id' => 'digital_download_options' ),
array( 'name' => __( 'Digital Downloads', 'woocommerce' ), 'type' => 'title','desc' => __( 'The following options are specific to downloadable products.', 'woocommerce' ), 'id' => 'digital_download_options' ),
array(
'name' => __('File download method', 'woocommerce'),
'desc' => __('Forcing downloads will keep URLs hidden, but some servers may serve large files unreliably. If supported, <code>X-Accel-Redirect</code>/ <code>X-Sendfile</code> can be used to serve downloads instead (server requires <code>mod_xsendfile</code>).', 'woocommerce'),
'name' => __( 'File download method', 'woocommerce' ),
'desc' => __( 'Forcing downloads will keep URLs hidden, but some servers may serve large files unreliably. If supported, <code>X-Accel-Redirect</code>/ <code>X-Sendfile</code> can be used to serve downloads instead (server requires <code>mod_xsendfile</code>).', 'woocommerce' ),
'id' => 'woocommerce_file_download_method',
'type' => 'select',
'class' => 'chosen_select',
@ -299,26 +299,26 @@ $woocommerce_settings['general'] = apply_filters('woocommerce_general_settings',
),
array(
'name' => __('Access Restrictions', 'woocommerce'),
'desc' => __('Must be logged in to download files', 'woocommerce'),
'name' => __( 'Access Restrictions', 'woocommerce' ),
'desc' => __( 'Must be logged in to download files', 'woocommerce' ),
'id' => 'woocommerce_downloads_require_login',
'type' => 'checkbox',
'std' => 'no',
'desc_tip' => __('This setting does not apply to guest downloads.', 'woocommerce'),
'desc_tip' => __( 'This setting does not apply to guest downloads.', 'woocommerce' ),
'checkboxgroup' => 'start'
),
array(
'desc' => __('Grant access to downloadable products after payment', 'woocommerce'),
'desc' => __( 'Grant access to downloadable products after payment', 'woocommerce' ),
'id' => 'woocommerce_downloads_grant_access_after_payment',
'type' => 'checkbox',
'std' => 'yes',
'desc_tip' => __('Turn this option off to only grant access when an order is "complete", rather than "processing"', 'woocommerce'),
'desc_tip' => __( 'Turn this option off to only grant access when an order is "complete", rather than "processing"', 'woocommerce' ),
'checkboxgroup' => 'end'
),
array(
'name' => __('Limit quantity', 'woocommerce'),
'name' => __( 'Limit quantity', 'woocommerce' ),
'desc' => __( 'Limit the purchasable quantity of downloadable-virtual items to 1', 'woocommerce' ),
'id' => 'woocommerce_limit_downloadable_product_qty',
'std' => 'yes',
@ -337,7 +337,7 @@ $base_slug = ($shop_page_id > 0 && get_page( $shop_page_id )) ? get_page_uri( $s
$woocommerce_prepend_shop_page_to_products_warning = '';
if ( $shop_page_id > 0 && sizeof(get_pages("child_of=$shop_page_id")) > 0 )
$woocommerce_prepend_shop_page_to_products_warning = ' <mark class="notice">' . __('Note: The shop page has children - child pages will not work if you enable this option.', 'woocommerce') . '</mark>';
$woocommerce_prepend_shop_page_to_products_warning = ' <mark class="notice">' . __( 'Note: The shop page has children - child pages will not work if you enable this option.', 'woocommerce' ) . '</mark>';
$woocommerce_settings['pages'] = apply_filters('woocommerce_page_settings', array(
@ -426,7 +426,7 @@ $woocommerce_settings['pages'] = apply_filters('woocommerce_page_settings', arra
),
array(
'name' => __('Thanks Page', 'woocommerce'),
'name' => __( 'Thanks Page', 'woocommerce' ),
'desc' => __( 'Page contents: [woocommerce_thankyou] Parent: "Checkout"', 'woocommerce' ),
'id' => 'woocommerce_thanks_page_id',
'type' => 'single_select_page',
@ -560,7 +560,7 @@ $woocommerce_settings['catalog'] = apply_filters('woocommerce_catalog_settings',
array( 'type' => 'sectionend', 'id' => 'catalog_options' ),
array( 'name' => __( 'Product Data', 'woocommerce' ), 'type' => 'title', 'desc' => __('The following options affect the fields available on the edit product page.', 'woocommerce'), 'id' => 'product_data_options' ),
array( 'name' => __( 'Product Data', 'woocommerce' ), 'type' => 'title', 'desc' => __( 'The following options affect the fields available on the edit product page.', 'woocommerce' ), 'id' => 'product_data_options' ),
array(
'name' => __( 'Product fields', 'woocommerce' ),
@ -658,7 +658,7 @@ $woocommerce_settings['catalog'] = apply_filters('woocommerce_catalog_settings',
array( 'type' => 'sectionend', 'id' => 'product_review_options' ),
array( 'name' => __( 'Pricing Options', 'woocommerce' ), 'type' => 'title', 'desc' => __('The following options affect how prices are displayed on the frontend.', 'woocommerce'), 'id' => 'pricing_options' ),
array( 'name' => __( 'Pricing Options', 'woocommerce' ), 'type' => 'title', 'desc' => __( 'The following options affect how prices are displayed on the frontend.', 'woocommerce' ), 'id' => 'pricing_options' ),
array(
'name' => __( 'Currency Position', 'woocommerce' ),
@ -716,11 +716,11 @@ $woocommerce_settings['catalog'] = apply_filters('woocommerce_catalog_settings',
array( 'type' => 'sectionend', 'id' => 'pricing_options' ),
array( 'name' => __( 'Image Options', 'woocommerce' ), 'type' => 'title','desc' => sprintf(__('These settings affect the actual dimensions of images in your catalog - the display on the front-end will still be affected by CSS styles. After changing these settings you may need to <a href="%s">regenerate your thumbnails</a>.', 'woocommerce'), 'http://wordpress.org/extend/plugins/regenerate-thumbnails/'), 'id' => 'image_options' ),
array( 'name' => __( 'Image Options', 'woocommerce' ), 'type' => 'title','desc' => sprintf(__( 'These settings affect the actual dimensions of images in your catalog - the display on the front-end will still be affected by CSS styles. After changing these settings you may need to <a href="%s">regenerate your thumbnails</a>.', 'woocommerce' ), 'http://wordpress.org/extend/plugins/regenerate-thumbnails/'), 'id' => 'image_options' ),
array(
'name' => __( 'Catalog Images', 'woocommerce' ),
'desc' => __('This size is usually used in product listings', 'woocommerce'),
'desc' => __( 'This size is usually used in product listings', 'woocommerce' ),
'id' => 'woocommerce_catalog_image',
'css' => '',
'type' => 'image_width',
@ -730,7 +730,7 @@ $woocommerce_settings['catalog'] = apply_filters('woocommerce_catalog_settings',
array(
'name' => __( 'Single Product Image', 'woocommerce' ),
'desc' => __('This is the size used by the main image on the product page.', 'woocommerce'),
'desc' => __( 'This is the size used by the main image on the product page.', 'woocommerce' ),
'id' => 'woocommerce_single_image',
'css' => '',
'type' => 'image_width',
@ -740,7 +740,7 @@ $woocommerce_settings['catalog'] = apply_filters('woocommerce_catalog_settings',
array(
'name' => __( 'Product Thumbnails', 'woocommerce' ),
'desc' => __('This size is usually used for the gallery of images on the product page.', 'woocommerce'),
'desc' => __( 'This size is usually used for the gallery of images on the product page.', 'woocommerce' ),
'id' => 'woocommerce_thumbnail_image',
'css' => '',
'type' => 'image_width',
@ -802,7 +802,7 @@ $woocommerce_settings['inventory'] = apply_filters('woocommerce_inventory_settin
array(
'name' => __( 'Out of stock visibility', 'woocommerce' ),
'desc' => __('Hide out of stock items from the catalog', 'woocommerce'),
'desc' => __( 'Hide out of stock items from the catalog', 'woocommerce' ),
'id' => 'woocommerce_hide_out_of_stock_items',
'std' => 'no',
'type' => 'checkbox'
@ -907,7 +907,7 @@ $woocommerce_settings['shipping'] = apply_filters('woocommerce_shipping_settings
$woocommerce_settings['payment_gateways'] = apply_filters('woocommerce_payment_gateways_settings', array(
array( 'name' => __( 'Payment Gateways', 'woocommerce' ), 'desc' => __('Installed payment gateways are displayed below. Drag and drop payment gateways to control their display order on the checkout.', 'woocommerce'), 'type' => 'title', 'id' => 'payment_gateways_options' ),
array( 'name' => __( 'Payment Gateways', 'woocommerce' ), 'desc' => __( 'Installed payment gateways are displayed below. Drag and drop payment gateways to control their display order on the checkout.', 'woocommerce' ), 'type' => 'title', 'id' => 'payment_gateways_options' ),
array(
'type' => 'payment_gateways',
@ -1008,7 +1008,7 @@ $woocommerce_settings['email'] = apply_filters('woocommerce_email_settings', arr
array( 'type' => 'sectionend', 'id' => 'email_recipient_options' ),
array( 'name' => __( 'Email Sender Options', 'woocommerce' ), 'type' => 'title', 'desc' => __('The following options affect the sender (email address and name) used in WooCommerce emails.', 'woocommerce'), 'id' => 'email_options' ),
array( 'name' => __( 'Email Sender Options', 'woocommerce' ), 'type' => 'title', 'desc' => __( 'The following options affect the sender (email address and name) used in WooCommerce emails.', 'woocommerce' ), 'id' => 'email_options' ),
array(
'name' => __( '"From" name', 'woocommerce' ),
@ -1030,7 +1030,7 @@ $woocommerce_settings['email'] = apply_filters('woocommerce_email_settings', arr
array( 'type' => 'sectionend', 'id' => 'email_options' ),
array( 'name' => __( 'Email template', 'woocommerce' ), 'type' => 'title', 'desc' => sprintf(__('This section lets you customise the WooCommerce emails. <a href="%s" target="_blank">Click here to preview your email template</a>. For more advanced control copy <code>woocommerce/templates/emails/</code> to <code>yourtheme/woocommerce/emails/</code>.', 'woocommerce'), wp_nonce_url(admin_url('?preview_woocommerce_mail=true'), 'preview-mail')), 'id' => 'email_template_options' ),
array( 'name' => __( 'Email template', 'woocommerce' ), 'type' => 'title', 'desc' => sprintf(__( 'This section lets you customise the WooCommerce emails. <a href="%s" target="_blank">Click here to preview your email template</a>. For more advanced control copy <code>woocommerce/templates/emails/</code> to <code>yourtheme/woocommerce/emails/</code>.', 'woocommerce' ), wp_nonce_url(admin_url('?preview_woocommerce_mail=true'), 'preview-mail')), 'id' => 'email_template_options' ),
array(
'name' => __( 'Header image', 'woocommerce' ),
@ -1047,7 +1047,7 @@ $woocommerce_settings['email'] = apply_filters('woocommerce_email_settings', arr
'id' => 'woocommerce_email_footer_text',
'css' => 'width:100%; height: 75px;',
'type' => 'textarea',
'std' => get_bloginfo('name') . ' - ' . __('Powered by WooCommerce', 'woocommerce')
'std' => get_bloginfo('name') . ' - ' . __( 'Powered by WooCommerce', 'woocommerce' )
),
array(

View File

@ -24,9 +24,9 @@ function woocommerce_payment_gateways_setting() {
<table class="wc_gateways widefat" cellspacing="0">
<thead>
<tr>
<th width="1%"><?php _e('Default', 'woocommerce'); ?></th>
<th><?php _e('Gateway', 'woocommerce'); ?></th>
<th><?php _e('Status', 'woocommerce'); ?></th>
<th width="1%"><?php _e( 'Default', 'woocommerce' ); ?></th>
<th><?php _e( 'Gateway', 'woocommerce' ); ?></th>
<th><?php _e( 'Status', 'woocommerce' ); ?></th>
</tr>
</thead>
<tbody>
@ -42,7 +42,7 @@ function woocommerce_payment_gateways_setting() {
</td>
<td>
<p><strong>' . $gateway->get_title() . '</strong><br/>
<small>' . __('Gateway ID', 'woocommerce') . ': ' . $gateway->id . '</small></p>
<small>' . __( 'Gateway ID', 'woocommerce' ) . ': ' . $gateway->id . '</small></p>
</td>
<td>';

View File

@ -20,15 +20,15 @@ function woocommerce_shipping_methods_setting() {
global $woocommerce;
?>
<tr valign="top">
<th scope="row" class="titledesc"><?php _e('Shipping Methods', 'woocommerce') ?></th>
<th scope="row" class="titledesc"><?php _e( 'Shipping Methods', 'woocommerce' ) ?></th>
<td class="forminp">
<p class="description" style="margin-top: 0;"><?php _e('Drag and drop methods to control their display order.', 'woocommerce'); ?></p>
<p class="description" style="margin-top: 0;"><?php _e( 'Drag and drop methods to control their display order.', 'woocommerce' ); ?></p>
<table class="wc_shipping widefat" cellspacing="0">
<thead>
<tr>
<th><?php _e('Default', 'woocommerce'); ?></th>
<th><?php _e('Shipping Method', 'woocommerce'); ?></th>
<th><?php _e('Status', 'woocommerce'); ?></th>
<th><?php _e( 'Default', 'woocommerce' ); ?></th>
<th><?php _e( 'Shipping Method', 'woocommerce' ); ?></th>
<th><?php _e( 'Status', 'woocommerce' ); ?></th>
</tr>
</thead>
<tbody>
@ -43,7 +43,7 @@ function woocommerce_shipping_methods_setting() {
<input type="hidden" name="method_order[]" value="' . $method->id . '" />
<td>
<p><strong>' . $method->get_title() . '</strong><br/>
<small>' . __('Method ID', 'woocommerce') . ': ' . $method->id . '</small></p>
<small>' . __( 'Method ID', 'woocommerce' ) . ': ' . $method->id . '</small></p>
</td>
<td>';

View File

@ -29,33 +29,33 @@ function woocommerce_tax_rates_setting() {
<th scope="row" class="titledesc"><?php _e( 'Tax Rates', 'woocommerce' ) ?></th>
<td class="forminp">
<a class="button export_rates" href="<?php echo add_query_arg( 'wc_export_tax_rates', 1 ); ?>"><?php _e('Export rates', 'woocommerce'); ?></a>
<a class="button import_rates" href="<?php echo admin_url( 'admin.php?import=woocommerce_tax_rate_csv' ); ?>"><?php _e('Import rates', 'woocommerce'); ?></a>
<a class="button export_rates" href="<?php echo add_query_arg( 'wc_export_tax_rates', 1 ); ?>"><?php _e( 'Export rates', 'woocommerce' ); ?></a>
<a class="button import_rates" href="<?php echo admin_url( 'admin.php?import=woocommerce_tax_rate_csv' ); ?>"><?php _e( 'Import rates', 'woocommerce' ); ?></a>
<p style="margin-top:0;"><?php _e('Define tax rates for countries and states below. You can also export and import from CSV files.', 'woocommerce'); ?></p>
<p style="margin-top:0;"><?php _e( 'Define tax rates for countries and states below. You can also export and import from CSV files.', 'woocommerce' ); ?></p>
<table class="taxrows widefat" cellspacing="0">
<thead>
<tr>
<th class="check-column"><input type="checkbox"></th>
<th class="country"><?php _e('Countries/states', 'woocommerce'); ?></th>
<th><?php _e('Tax Class', 'woocommerce'); ?></th>
<th><?php _e('Label', 'woocommerce'); ?> <a class="tips" data-tip="<?php _e('Optionally, enter a label for this rate - this will appear in the totals table', 'woocommerce'); ?>">[?]</a></th>
<th><?php _e('Rate', 'woocommerce'); ?> <a class="tips" data-tip="<?php _e('Enter a tax rate (percentage) to 4 decimal places.', 'woocommerce'); ?>">[?]</a></th>
<th><?php _e('Compound', 'woocommerce'); ?>&nbsp;<a class="tips" data-tip="<?php _e('Choose whether or not this is a compound rate. Compound tax rates are applied on top of other tax rates.', 'woocommerce'); ?>">[?]</a></th>
<th><?php _e('Shipping', 'woocommerce'); ?>&nbsp;<a class="tips" data-tip="<?php _e('Choose whether or not this tax rate also gets applied to shipping.', 'woocommerce'); ?>">[?]</a></th>
<th class="country"><?php _e( 'Countries/states', 'woocommerce' ); ?></th>
<th><?php _e( 'Tax Class', 'woocommerce' ); ?></th>
<th><?php _e( 'Label', 'woocommerce' ); ?> <a class="tips" data-tip="<?php _e( 'Optionally, enter a label for this rate - this will appear in the totals table', 'woocommerce' ); ?>">[?]</a></th>
<th><?php _e( 'Rate', 'woocommerce' ); ?> <a class="tips" data-tip="<?php _e( 'Enter a tax rate (percentage) to 4 decimal places.', 'woocommerce' ); ?>">[?]</a></th>
<th><?php _e( 'Compound', 'woocommerce' ); ?>&nbsp;<a class="tips" data-tip="<?php _e( 'Choose whether or not this is a compound rate. Compound tax rates are applied on top of other tax rates.', 'woocommerce' ); ?>">[?]</a></th>
<th><?php _e( 'Shipping', 'woocommerce' ); ?>&nbsp;<a class="tips" data-tip="<?php _e( 'Choose whether or not this tax rate also gets applied to shipping.', 'woocommerce' ); ?>">[?]</a></th>
</tr>
</thead>
<tfoot>
<tr>
<th colspan="2">
<a href="#" class="add_tax_rate button"><?php _e('+ Add Tax Rate', 'woocommerce'); ?></a>
<a href="#" class="add_tax_rate button"><?php _e( '+ Add Tax Rate', 'woocommerce' ); ?></a>
</th>
<th colspan="6">
<small><?php _e('All matching rates will be applied, and non-compound rates will be summed.', 'woocommerce'); ?></small>
<small><?php _e( 'All matching rates will be applied, and non-compound rates will be summed.', 'woocommerce' ); ?></small>
<a href="#" class="dupe button"><?php _e('Duplicate selected', 'woocommerce'); ?></a>
<a href="#" class="remove button"><?php _e('Delete selected', 'woocommerce'); ?></a>
<a href="#" class="dupe button"><?php _e( 'Duplicate selected', 'woocommerce' ); ?></a>
<a href="#" class="remove button"><?php _e( 'Delete selected', 'woocommerce' ); ?></a>
</th>
</tr>
</tfoot>
@ -65,17 +65,17 @@ function woocommerce_tax_rates_setting() {
<tr class="tax_rate">
<td class="check-column"><input type="checkbox" name="select" /></td>
<td class="country">
<p class="edit"><button class="edit_options button"><?php _e('Edit', 'woocommerce') ?></button> <label><?php echo woocommerce_tax_row_label( $rate['countries'] ); ?></label></p>
<p class="edit"><button class="edit_options button"><?php _e( 'Edit', 'woocommerce' ) ?></button> <label><?php echo woocommerce_tax_row_label( $rate['countries'] ); ?></label></p>
<div class="options" style="display:none">
<select name="tax_country[<?php echo $i; ?>][]" data-placeholder="<?php _e('Select countries/states&hellip;', 'woocommerce'); ?>" class="tax_chosen_select select" size="10" multiple="multiple">
<select name="tax_country[<?php echo $i; ?>][]" data-placeholder="<?php _e( 'Select countries/states&hellip;', 'woocommerce' ); ?>" class="tax_chosen_select select" size="10" multiple="multiple">
<?php echo $woocommerce->countries->country_multiselect_options( $rate['countries'] ); ?>
</select>
<?php echo '<p><button class="select_all button">'.__('All', 'woocommerce').'</button><button class="select_none button">'.__('None', 'woocommerce').'</button><button class="button select_us_states">'.__('US States', 'woocommerce').'</button><button class="button select_europe">'.__('EU States', 'woocommerce').'</button></p>'; ?>
<?php echo '<p><button class="select_all button">'.__( 'All', 'woocommerce' ).'</button><button class="select_none button">'.__( 'None', 'woocommerce' ).'</button><button class="button select_us_states">'.__( 'US States', 'woocommerce' ).'</button><button class="button select_europe">'.__( 'EU States', 'woocommerce' ).'</button></p>'; ?>
</div>
</td>
<td class="tax_class">
<select name="tax_class[<?php echo $i; ?>]" title="Tax Class" class="select">
<option value=""><?php _e('Standard Rate', 'woocommerce'); ?></option>
<option value=""><?php _e( 'Standard Rate', 'woocommerce' ); ?></option>
<?php
if ($tax_classes) foreach ($tax_classes as $class) :
echo '<option value="'.sanitize_title($class).'"';
@ -86,10 +86,10 @@ function woocommerce_tax_rates_setting() {
</select>
</td>
<td class="label">
<input type="text" class="text" value="<?php if (isset($rate['label'])) echo esc_attr( $rate['label'] ); ?>" name="tax_label[<?php echo $i; ?>]" title="<?php _e('Label', 'woocommerce'); ?>" size="16" />
<input type="text" class="text" value="<?php if (isset($rate['label'])) echo esc_attr( $rate['label'] ); ?>" name="tax_label[<?php echo $i; ?>]" title="<?php _e( 'Label', 'woocommerce' ); ?>" size="16" />
</td>
<td class="rate">
<input type="text" class="text" value="<?php echo esc_attr( $rate['rate'] ); ?>" name="tax_rate[<?php echo $i; ?>]" title="<?php _e('Rate', 'woocommerce'); ?>" placeholder="<?php _e('Rate', 'woocommerce'); ?>" maxlength="8" size="4" />%
<input type="text" class="text" value="<?php echo esc_attr( $rate['rate'] ); ?>" name="tax_rate[<?php echo $i; ?>]" title="<?php _e( 'Rate', 'woocommerce' ); ?>" placeholder="<?php _e( 'Rate', 'woocommerce' ); ?>" maxlength="8" size="4" />%
</td>
<td class="compound">
<input type="checkbox" class="checkbox" name="tax_compound[<?php echo $i; ?>]" <?php if (isset($rate['compound'])) checked($rate['compound'], 'yes'); ?> />
@ -111,29 +111,29 @@ function woocommerce_tax_rates_setting() {
<tr valign="top" <?php if ( empty( $local_tax_rates ) ) : ?>style="display:none;"<?php endif; ?> class="local_tax_rates">
<th scope="row" class="titledesc"><?php _e( 'Local tax rates', 'woocommerce' ); ?></th>
<td class="forminp">
<a class="button export_rates" href="<?php echo add_query_arg( 'wc_export_tax_rates', 2 ); ?>"><?php _e('Export rates', 'woocommerce'); ?></a>
<a class="button import_rates" href="<?php echo admin_url( 'admin.php?import=woocommerce_tax_rate_csv' ); ?>"><?php _e('Import rates', 'woocommerce'); ?></a>
<a class="button export_rates" href="<?php echo add_query_arg( 'wc_export_tax_rates', 2 ); ?>"><?php _e( 'Export rates', 'woocommerce' ); ?></a>
<a class="button import_rates" href="<?php echo admin_url( 'admin.php?import=woocommerce_tax_rate_csv' ); ?>"><?php _e( 'Import rates', 'woocommerce' ); ?></a>
<p style="margin-top:0;"><?php _e('Define local tax rates for specific post/zip codes below. You can also export and import from CSV files.', 'woocommerce'); ?></p>
<p style="margin-top:0;"><?php _e( 'Define local tax rates for specific post/zip codes below. You can also export and import from CSV files.', 'woocommerce' ); ?></p>
<table class="taxrows widefat" cellspacing="0">
<thead>
<tr>
<th class="check-column"><input type="checkbox"></th>
<th class="country"><?php _e('Locations', 'woocommerce'); ?> <a class="tips" data-tip="<?php _e('List (1 per line) postcodes/zips/cities this rate applies to. You may also enter ranges for numeric zip codes. e.g. 12345-12349;23456;', 'woocommerce'); ?>">[?]</a></th>
<th><?php _e('Tax Class', 'woocommerce'); ?></th>
<th><?php _e('Label', 'woocommerce'); ?> <a class="tips" data-tip="<?php _e('Optionally, enter a label for this rate - this will appear in the totals table', 'woocommerce'); ?>">[?]</a></th>
<th><?php _e('Rate', 'woocommerce'); ?> <a class="tips" data-tip="<?php _e('Enter a tax rate (percentage) to 4 decimal places.', 'woocommerce'); ?>">[?]</a></th>
<th><?php _e('Compound', 'woocommerce'); ?>&nbsp;<a class="tips" data-tip="<?php _e('Choose whether or not this is a compound rate. Compound tax rates are applied on top of other tax rates.', 'woocommerce'); ?>">[?]</a></th>
<th><?php _e('Shipping', 'woocommerce'); ?>&nbsp;<a class="tips" data-tip="<?php _e('Choose whether or not this tax rate also gets applied to shipping.', 'woocommerce'); ?>">[?]</a></th>
<th class="country"><?php _e( 'Locations', 'woocommerce' ); ?> <a class="tips" data-tip="<?php _e( 'List (1 per line) postcodes/zips/cities this rate applies to. You may also enter ranges for numeric zip codes. e.g. 12345-12349;23456;', 'woocommerce' ); ?>">[?]</a></th>
<th><?php _e( 'Tax Class', 'woocommerce' ); ?></th>
<th><?php _e( 'Label', 'woocommerce' ); ?> <a class="tips" data-tip="<?php _e( 'Optionally, enter a label for this rate - this will appear in the totals table', 'woocommerce' ); ?>">[?]</a></th>
<th><?php _e( 'Rate', 'woocommerce' ); ?> <a class="tips" data-tip="<?php _e( 'Enter a tax rate (percentage) to 4 decimal places.', 'woocommerce' ); ?>">[?]</a></th>
<th><?php _e( 'Compound', 'woocommerce' ); ?>&nbsp;<a class="tips" data-tip="<?php _e( 'Choose whether or not this is a compound rate. Compound tax rates are applied on top of other tax rates.', 'woocommerce' ); ?>">[?]</a></th>
<th><?php _e( 'Shipping', 'woocommerce' ); ?>&nbsp;<a class="tips" data-tip="<?php _e( 'Choose whether or not this tax rate also gets applied to shipping.', 'woocommerce' ); ?>">[?]</a></th>
</tr>
</thead>
<tfoot>
<tr>
<th colspan="2"><a href="#" class="add_local_tax_rate button"><?php _e('+ Add Tax Rate', 'woocommerce'); ?></a></th>
<th colspan="2"><a href="#" class="add_local_tax_rate button"><?php _e( '+ Add Tax Rate', 'woocommerce' ); ?></a></th>
<th colspan="5">
<small><?php _e('All matching rates will be applied, and non-compound rates will be summed.', 'woocommerce'); ?></small>
<a href="#" class="dupe button"><?php _e('Duplicate selected rows', 'woocommerce'); ?></a> <a href="#" class="remove button"><?php _e('Delete selected rows', 'woocommerce'); ?></a>
<small><?php _e( 'All matching rates will be applied, and non-compound rates will be summed.', 'woocommerce' ); ?></small>
<a href="#" class="dupe button"><?php _e( 'Duplicate selected rows', 'woocommerce' ); ?></a> <a href="#" class="remove button"><?php _e( 'Delete selected rows', 'woocommerce' ); ?></a>
</th>
</tr>
</tfoot>
@ -150,18 +150,18 @@ function woocommerce_tax_rates_setting() {
<td class="check-column"><input type="checkbox" name="select" /></td>
<td class="local_country">
<select name="local_tax_country[<?php echo $i; ?>]" class="select">
<option value=""><?php _e('Select a country/state&hellip;', 'woocommerce'); ?></option>
<option value=""><?php _e( 'Select a country/state&hellip;', 'woocommerce' ); ?></option>
<?php echo $woocommerce->countries->country_dropdown_options( $rate['country'], $rate['state'] ); ?>
</select>
<select name="local_tax_location_type[<?php echo $i; ?>]" class="select type">
<option value="postcode" <?php selected( $rate['location_type'], 'postcode' ); ?>><?php _e('Postcodes/zips', 'woocommerce'); ?></option>
<option value="city" <?php selected( $rate['location_type'], 'city' ); ?>><?php _e('Cities', 'woocommerce'); ?></option>
<option value="postcode" <?php selected( $rate['location_type'], 'postcode' ); ?>><?php _e( 'Postcodes/zips', 'woocommerce' ); ?></option>
<option value="city" <?php selected( $rate['location_type'], 'city' ); ?>><?php _e( 'Cities', 'woocommerce' ); ?></option>
</select>
<textarea type="text" placeholder="<?php _e('List 1 per line', 'woocommerce'); ?>" class="text" name="local_tax_location[<?php echo $i; ?>]"><?php if ( isset( $rate['locations'] ) ) echo implode( "\n", $rate['locations'] ); ?></textarea>
<textarea type="text" placeholder="<?php _e( 'List 1 per line', 'woocommerce' ); ?>" class="text" name="local_tax_location[<?php echo $i; ?>]"><?php if ( isset( $rate['locations'] ) ) echo implode( "\n", $rate['locations'] ); ?></textarea>
</td>
<td class="tax_class">
<select name="local_tax_class[<?php echo $i; ?>]" title="Tax Class" class="select">
<option value=""><?php _e('Standard Rate', 'woocommerce'); ?></option>
<option value=""><?php _e( 'Standard Rate', 'woocommerce' ); ?></option>
<?php
if ($tax_classes) foreach ($tax_classes as $class) :
echo '<option value="'.sanitize_title($class).'"';
@ -172,10 +172,10 @@ function woocommerce_tax_rates_setting() {
</select>
</td>
<td class="label">
<input type="text" class="text" value="<?php if (isset($rate['label'])) echo esc_attr( $rate['label'] ); ?>" name="local_tax_label[<?php echo $i; ?>]" title="<?php _e('Label', 'woocommerce'); ?>" size="16" />
<input type="text" class="text" value="<?php if (isset($rate['label'])) echo esc_attr( $rate['label'] ); ?>" name="local_tax_label[<?php echo $i; ?>]" title="<?php _e( 'Label', 'woocommerce' ); ?>" size="16" />
</td>
<td class="rate">
<input type="text" class="text" value="<?php echo esc_attr( $rate['rate'] ); ?>" name="local_tax_rate[<?php echo $i; ?>]" title="<?php _e('Rate', 'woocommerce'); ?>" placeholder="<?php _e('Rate', 'woocommerce'); ?>" maxlength="8" size="4" />%
<input type="text" class="text" value="<?php echo esc_attr( $rate['rate'] ); ?>" name="local_tax_rate[<?php echo $i; ?>]" title="<?php _e( 'Rate', 'woocommerce' ); ?>" placeholder="<?php _e( 'Rate', 'woocommerce' ); ?>" maxlength="8" size="4" />%
</td>
<td class="compound">
<input type="checkbox" class="checkbox" name="local_tax_compound[<?php echo $i; ?>]" <?php if (isset($rate['compound'])) checked($rate['compound'], 'yes'); ?> />
@ -196,14 +196,14 @@ function woocommerce_tax_rates_setting() {
jQuery('tr.tax_rate .edit_options').live('click', function(){
jQuery(this).closest('td').find('.options').slideToggle();
if (jQuery(this).text()=='<?php _e('Edit', 'woocommerce'); ?>') {
if (jQuery(this).text()=='<?php _e( 'Edit', 'woocommerce' ); ?>') {
jQuery(this).closest('tr').find("select.tax_chosen_select").chosen();
jQuery(this).text('<?php _e('Done', 'woocommerce'); ?>');
jQuery(this).text('<?php _e( 'Done', 'woocommerce' ); ?>');
} else {
jQuery(this).text('<?php _e('Edit', 'woocommerce'); ?>');
jQuery(this).text('<?php _e( 'Edit', 'woocommerce' ); ?>');
}
return false;
});
@ -228,7 +228,7 @@ function woocommerce_tax_rates_setting() {
jQuery('tr.tax_rate .options select').live('change', function(){
jQuery(this).trigger("liszt:updated");
jQuery(this).closest('td').find('label').text( jQuery(":selected", this).length + ' ' + '<?php _e('countries/states selected', 'woocommerce') ?>' );
jQuery(this).closest('td').find('label').text( jQuery(":selected", this).length + ' ' + '<?php _e( 'countries/states selected', 'woocommerce' ) ?>' );
});
jQuery('tr.tax_rate .select_europe').live('click', function(){
@ -244,17 +244,17 @@ function woocommerce_tax_rates_setting() {
jQuery('<tr class="tax_rate new_rate">\
<td class="check-column"><input type="checkbox" name="select" /></td>\
<td class="country">\
<p class="edit"><button class="edit_options button"><?php _e('Edit', 'woocommerce') ?></button> <label><?php _e('No countries selected', 'woocommerce'); ?></label></p>\
<p class="edit"><button class="edit_options button"><?php _e( 'Edit', 'woocommerce' ) ?></button> <label><?php _e( 'No countries selected', 'woocommerce' ); ?></label></p>\
<div class="options" style="display:none">\
<select name="tax_country[' + size + '][]" data-placeholder="<?php _e('Select countries/states&hellip;', 'woocommerce'); ?>" class="tax_chosen_select select" size="10" multiple="multiple">\
<select name="tax_country[' + size + '][]" data-placeholder="<?php _e( 'Select countries/states&hellip;', 'woocommerce' ); ?>" class="tax_chosen_select select" size="10" multiple="multiple">\
<?php echo $woocommerce->countries->country_multiselect_options(); ?>\
</select>\
<?php echo '<p><button class="select_all button">'.__('All', 'woocommerce').'</button><button class="select_none button">'.__('None', 'woocommerce').'</button><button class="button select_us_states">'.__('US States', 'woocommerce').'</button><button class="button select_europe">'.__('EU States', 'woocommerce').'</button></p>'; ?>\
<?php echo '<p><button class="select_all button">'.__( 'All', 'woocommerce' ).'</button><button class="select_none button">'.__( 'None', 'woocommerce' ).'</button><button class="button select_us_states">'.__( 'US States', 'woocommerce' ).'</button><button class="button select_europe">'.__( 'EU States', 'woocommerce' ).'</button></p>'; ?>\
</div>\
</td>\
<td class="tax_class">\
<select name="tax_class[' + size + ']" title="Tax Class" class="select">\
<option value=""><?php _e('Standard Rate', 'woocommerce'); ?></option>\
<option value=""><?php _e( 'Standard Rate', 'woocommerce' ); ?></option>\
<?php
if ($tax_classes) foreach ($tax_classes as $class) :
echo '<option value="'.sanitize_title($class).'">'.$class.'</option>';
@ -263,10 +263,10 @@ function woocommerce_tax_rates_setting() {
</select>\
</td>\
<td class="label">\
<input type="text" class="text" name="tax_label[' + size + ']" title="<?php _e('Label', 'woocommerce'); ?>" size="16" />\
<input type="text" class="text" name="tax_label[' + size + ']" title="<?php _e( 'Label', 'woocommerce' ); ?>" size="16" />\
</td>\
<td class="rate">\
<input type="text" class="text" name="tax_rate[' + size + ']" title="<?php _e('Rate', 'woocommerce'); ?>" placeholder="<?php _e('Rate', 'woocommerce'); ?>" maxlength="8" size="4" />%\
<input type="text" class="text" name="tax_rate[' + size + ']" title="<?php _e( 'Rate', 'woocommerce' ); ?>" placeholder="<?php _e( 'Rate', 'woocommerce' ); ?>" maxlength="8" size="4" />%\
</td>\
<td class="compound">\
<input type="checkbox" class="checkbox" name="tax_compound[' + size + ']" />\
@ -290,18 +290,18 @@ function woocommerce_tax_rates_setting() {
<td class="check-column"><input type="checkbox" name="select" /></td>\
<td class="local_country">\
<select name="local_tax_country[' + size + ']" class="select">\
<option value=""><?php _e('Select a country/state&hellip;', 'woocommerce'); ?></option>\
<option value=""><?php _e( 'Select a country/state&hellip;', 'woocommerce' ); ?></option>\
<?php echo $woocommerce->countries->country_dropdown_options( '', '', true ); ?>\
</select>\
<select name="local_tax_location_type[' + size + ']" class="select type">\
<option value="postcode"><?php _e('Postcodes/zips', 'woocommerce'); ?></option>\
<option value="city"><?php _e('Cities', 'woocommerce'); ?></option>\
<option value="postcode"><?php _e( 'Postcodes/zips', 'woocommerce' ); ?></option>\
<option value="city"><?php _e( 'Cities', 'woocommerce' ); ?></option>\
</select>\
<textarea type="text" placeholder="<?php _e('List 1 per line', 'woocommerce'); ?>" class="text" name="local_tax_location[' + size + ']"></textarea>\
<textarea type="text" placeholder="<?php _e( 'List 1 per line', 'woocommerce' ); ?>" class="text" name="local_tax_location[' + size + ']"></textarea>\
</td>\
<td class="tax_class">\
<select name="local_tax_class[' + size + ']" title="Tax Class" class="select">\
<option value=""><?php _e('Standard Rate', 'woocommerce'); ?></option>\
<option value=""><?php _e( 'Standard Rate', 'woocommerce' ); ?></option>\
<?php
if ($tax_classes) foreach ($tax_classes as $class) :
echo '<option value="'.sanitize_title($class).'">'.$class.'</option>';
@ -310,10 +310,10 @@ function woocommerce_tax_rates_setting() {
</select>\
</td>\
<td class="label">\
<input type="text" class="text" name="local_tax_label[' + size + ']" title="<?php _e('Label', 'woocommerce'); ?>" size="16" />\
<input type="text" class="text" name="local_tax_label[' + size + ']" title="<?php _e( 'Label', 'woocommerce' ); ?>" size="16" />\
</td>\
<td class="rate">\
<input type="text" class="text" name="local_tax_rate[' + size + ']" title="<?php _e('Rate', 'woocommerce'); ?>" placeholder="<?php _e('Rate', 'woocommerce'); ?>" maxlength="8" size="4" />%\
<input type="text" class="text" name="local_tax_rate[' + size + ']" title="<?php _e( 'Rate', 'woocommerce' ); ?>" placeholder="<?php _e( 'Rate', 'woocommerce' ); ?>" maxlength="8" size="4" />%\
</td>\
<td class="compound">\
<input type="checkbox" class="checkbox" name="local_tax_compound[' + size + ']" />\
@ -330,7 +330,7 @@ function woocommerce_tax_rates_setting() {
// Remove row
jQuery('.taxrows a.remove').live('click', function(){
var answer = confirm("<?php _e('Delete the selected rates?', 'woocommerce'); ?>")
var answer = confirm("<?php _e( 'Delete the selected rates?', 'woocommerce' ); ?>")
if (answer) {
var $rates = jQuery(this).closest('.taxrows').find('tbody');
@ -344,7 +344,7 @@ function woocommerce_tax_rates_setting() {
// Dupe row
jQuery('.taxrows a.dupe').live('click', function(){
var answer = confirm("<?php _e('Duplicate the selected rates?', 'woocommerce'); ?>")
var answer = confirm("<?php _e( 'Duplicate the selected rates?', 'woocommerce' ); ?>")
if (answer) {
var $rates = jQuery(this).closest('.taxrows').find('tbody');
@ -424,7 +424,7 @@ function woocommerce_tax_row_label( $selected ) {
// Show label
if (sizeof($counties_array)==0) :
$return .= __('No countries selected', 'woocommerce');
$return .= __( 'No countries selected', 'woocommerce' );
elseif ( sizeof($counties_array) < 6 ) :

View File

@ -199,43 +199,43 @@ function woocommerce_edit_attribute() {
?>
<div class="wrap woocommerce">
<div class="icon32 icon32-attributes" id="icon-woocommerce"><br/></div>
<h2><?php _e('Edit Attribute', 'woocommerce') ?></h2>
<h2><?php _e( 'Edit Attribute', 'woocommerce' ) ?></h2>
<form action="admin.php?page=woocommerce_attributes&amp;edit=<?php echo absint( $edit ); ?>" method="post">
<table class="form-table">
<tbody>
<tr class="form-field form-required">
<th scope="row" valign="top">
<label for="attribute_label"><?php _e('Name', 'woocommerce'); ?></label>
<label for="attribute_label"><?php _e( 'Name', 'woocommerce' ); ?></label>
</th>
<td>
<input name="attribute_label" id="attribute_label" type="text" value="<?php echo esc_attr( $att_label ); ?>" />
<p class="description"><?php _e('Name for the attribute (shown on the front-end).', 'woocommerce'); ?></p>
<p class="description"><?php _e( 'Name for the attribute (shown on the front-end).', 'woocommerce' ); ?></p>
</td>
</tr>
<tr class="form-field form-required">
<th scope="row" valign="top">
<label for="attribute_name"><?php _e('Slug', 'woocommerce'); ?></label>
<label for="attribute_name"><?php _e( 'Slug', 'woocommerce' ); ?></label>
</th>
<td>
<input name="attribute_name" id="attribute_name" type="text" value="<?php echo esc_attr( $att_name ); ?>" maxlength="28" />
<p class="description"><?php _e('Unique slug/reference for the attribute; must be shorter than 28 characters.', 'woocommerce'); ?></p>
<p class="description"><?php _e( 'Unique slug/reference for the attribute; must be shorter than 28 characters.', 'woocommerce' ); ?></p>
</td>
</tr>
<tr class="form-field form-required">
<th scope="row" valign="top">
<label for="attribute_type"><?php _e('Type', 'woocommerce'); ?></label>
<label for="attribute_type"><?php _e( 'Type', 'woocommerce' ); ?></label>
</th>
<td>
<select name="attribute_type" id="attribute_type">
<option value="select" <?php selected( $att_type, 'select' ); ?>><?php _e('Select', 'woocommerce') ?></option>
<option value="text" <?php selected( $att_type, 'text' ); ?>><?php _e('Text', 'woocommerce') ?></option>
<option value="select" <?php selected( $att_type, 'select' ); ?>><?php _e( 'Select', 'woocommerce' ) ?></option>
<option value="text" <?php selected( $att_type, 'text' ); ?>><?php _e( 'Text', 'woocommerce' ) ?></option>
</select>
<p class="description"><?php _e('Determines how you select attributes for products. <strong>Text</strong> allows manual entry via the product page, whereas <strong>select</strong> attribute terms can be defined from this section. If you plan on using an attribute for variations use <strong>select</strong>.', 'woocommerce'); ?></p>
<p class="description"><?php _e( 'Determines how you select attributes for products. <strong>Text</strong> allows manual entry via the product page, whereas <strong>select</strong> attribute terms can be defined from this section. If you plan on using an attribute for variations use <strong>select</strong>.', 'woocommerce' ); ?></p>
</td>
</tr>
<tr class="form-field form-required">
<th scope="row" valign="top">
<label for="attribute_orderby"><?php _e('Default sort order', 'woocommerce'); ?></label>
<label for="attribute_orderby"><?php _e( 'Default sort order', 'woocommerce' ); ?></label>
</th>
<td>
<select name="attribute_orderby" id="attribute_orderby">
@ -248,7 +248,7 @@ function woocommerce_edit_attribute() {
</tr>
</tbody>
</table>
<p class="submit"><input type="submit" name="save_attribute" id="submit" class="button-primary" value="<?php _e('Update', 'woocommerce'); ?>"></p>
<p class="submit"><input type="submit" name="save_attribute" id="submit" class="button-primary" value="<?php _e( 'Update', 'woocommerce' ); ?>"></p>
<?php wp_nonce_field( 'woocommerce-save-attribute_' . $edit ); ?>
</form>
</div>
@ -270,7 +270,7 @@ function woocommerce_add_attribute() {
?>
<div class="wrap woocommerce">
<div class="icon32 icon32-attributes" id="icon-woocommerce"><br/></div>
<h2><?php _e('Attributes', 'woocommerce') ?></h2>
<h2><?php _e( 'Attributes', 'woocommerce' ) ?></h2>
<br class="clear" />
<div id="col-container">
<div id="col-right">
@ -278,11 +278,11 @@ function woocommerce_add_attribute() {
<table class="widefat fixed" style="width:100%">
<thead>
<tr>
<th scope="col"><?php _e('Name', 'woocommerce') ?></th>
<th scope="col"><?php _e('Slug', 'woocommerce') ?></th>
<th scope="col"><?php _e('Type', 'woocommerce') ?></th>
<th scope="col"><?php _e('Order by', 'woocommerce') ?></th>
<th scope="col" colspan="2"><?php _e('Terms', 'woocommerce') ?></th>
<th scope="col"><?php _e( 'Name', 'woocommerce' ) ?></th>
<th scope="col"><?php _e( 'Slug', 'woocommerce' ) ?></th>
<th scope="col"><?php _e( 'Type', 'woocommerce' ) ?></th>
<th scope="col"><?php _e( 'Order by', 'woocommerce' ) ?></th>
<th scope="col" colspan="2"><?php _e( 'Terms', 'woocommerce' ) ?></th>
</tr>
</thead>
<tbody>
@ -294,7 +294,7 @@ function woocommerce_add_attribute() {
<td><a href="edit-tags.php?taxonomy=<?php echo esc_html($woocommerce->attribute_taxonomy_name($tax->attribute_name)); ?>&amp;post_type=product"><?php echo esc_html( $tax->attribute_label ); ?></a>
<div class="row-actions"><span class="edit"><a href="<?php echo esc_url( add_query_arg('edit', $tax->attribute_id, 'admin.php?page=woocommerce_attributes') ); ?>"><?php _e('Edit', 'woocommerce'); ?></a> | </span><span class="delete"><a class="delete" href="<?php echo esc_url( wp_nonce_url( add_query_arg('delete', $tax->attribute_id, 'admin.php?page=woocommerce_attributes'), 'woocommerce-delete-attribute_' . $tax->attribute_id ) ); ?>"><?php _e('Delete', 'woocommerce'); ?></a></span></div>
<div class="row-actions"><span class="edit"><a href="<?php echo esc_url( add_query_arg('edit', $tax->attribute_id, 'admin.php?page=woocommerce_attributes') ); ?>"><?php _e( 'Edit', 'woocommerce' ); ?></a> | </span><span class="delete"><a class="delete" href="<?php echo esc_url( wp_nonce_url( add_query_arg('delete', $tax->attribute_id, 'admin.php?page=woocommerce_attributes'), 'woocommerce-delete-attribute_' . $tax->attribute_id ) ); ?>"><?php _e( 'Delete', 'woocommerce' ); ?></a></span></div>
</td>
<td><?php echo esc_html( $tax->attribute_name ); ?></td>
<td><?php echo esc_html( ucwords( $tax->attribute_type ) ); ?></td>
@ -327,11 +327,11 @@ function woocommerce_add_attribute() {
echo '<span class="na">&ndash;</span>';
endif;
?></td>
<td><a href="edit-tags.php?taxonomy=<?php echo esc_html($woocommerce->attribute_taxonomy_name($tax->attribute_name)); ?>&amp;post_type=product" class="button alignright"><?php _e('Configure&nbsp;terms', 'woocommerce'); ?></a></td>
<td><a href="edit-tags.php?taxonomy=<?php echo esc_html($woocommerce->attribute_taxonomy_name($tax->attribute_name)); ?>&amp;post_type=product" class="button alignright"><?php _e( 'Configure&nbsp;terms', 'woocommerce' ); ?></a></td>
</tr><?php
endforeach;
else :
?><tr><td colspan="6"><?php _e('No attributes currently exist.', 'woocommerce') ?></td></tr><?php
?><tr><td colspan="6"><?php _e( 'No attributes currently exist.', 'woocommerce' ) ?></td></tr><?php
endif;
?>
</tbody>
@ -341,28 +341,28 @@ function woocommerce_add_attribute() {
<div id="col-left">
<div class="col-wrap">
<div class="form-wrap">
<h3><?php _e('Add New Attribute', 'woocommerce') ?></h3>
<p><?php _e('Attributes let you define extra product data, such as size or colour. You can use these attributes in the shop sidebar using the "layered nav" widgets. Please note: you cannot rename an attribute later on.', 'woocommerce') ?></p>
<h3><?php _e( 'Add New Attribute', 'woocommerce' ) ?></h3>
<p><?php _e( 'Attributes let you define extra product data, such as size or colour. You can use these attributes in the shop sidebar using the "layered nav" widgets. Please note: you cannot rename an attribute later on.', 'woocommerce' ) ?></p>
<form action="admin.php?page=woocommerce_attributes" method="post">
<div class="form-field">
<label for="attribute_label"><?php _e('Name', 'woocommerce'); ?></label>
<label for="attribute_label"><?php _e( 'Name', 'woocommerce' ); ?></label>
<input name="attribute_label" id="attribute_label" type="text" value="" />
<p class="description"><?php _e('Name for the attribute (shown on the front-end).', 'woocommerce'); ?></p>
<p class="description"><?php _e( 'Name for the attribute (shown on the front-end).', 'woocommerce' ); ?></p>
</div>
<div class="form-field">
<label for="attribute_name"><?php _e('Slug', 'woocommerce'); ?></label>
<label for="attribute_name"><?php _e( 'Slug', 'woocommerce' ); ?></label>
<input name="attribute_name" id="attribute_name" type="text" value="" maxlength="28" />
<p class="description"><?php _e('Unique slug/reference for the attribute; must be shorter than 28 characters.', 'woocommerce'); ?></p>
<p class="description"><?php _e( 'Unique slug/reference for the attribute; must be shorter than 28 characters.', 'woocommerce' ); ?></p>
</div>
<div class="form-field">
<label for="attribute_type"><?php _e('Type', 'woocommerce'); ?></label>
<label for="attribute_type"><?php _e( 'Type', 'woocommerce' ); ?></label>
<select name="attribute_type" id="attribute_type">
<option value="select"><?php _e('Select', 'woocommerce') ?></option>
<option value="text"><?php _e('Text', 'woocommerce') ?></option>
<option value="select"><?php _e( 'Select', 'woocommerce' ) ?></option>
<option value="text"><?php _e( 'Text', 'woocommerce' ) ?></option>
</select>
<p class="description"><?php _e('Determines how you select attributes for products. <strong>Text</strong> allows manual entry via the product page, whereas <strong>select</strong> attribute terms can be defined from this section. If you plan on using an attribute for variations use <strong>select</strong>.', 'woocommerce'); ?></p>
<p class="description"><?php _e( 'Determines how you select attributes for products. <strong>Text</strong> allows manual entry via the product page, whereas <strong>select</strong> attribute terms can be defined from this section. If you plan on using an attribute for variations use <strong>select</strong>.', 'woocommerce' ); ?></p>
</div>
<div class="form-field">
@ -375,7 +375,7 @@ function woocommerce_add_attribute() {
<p class="description"><?php _e( 'Determines the sort order on the frontend for this attribute. If using custom ordering, you can drag and drop the terms in this attribute', 'woocommerce' ); ?></p>
</div>
<p class="submit"><input type="submit" name="add_new_attribute" id="submit" class="button" value="<?php _e('Add Attribute', 'woocommerce'); ?>"></p>
<p class="submit"><input type="submit" name="add_new_attribute" id="submit" class="button" value="<?php _e( 'Add Attribute', 'woocommerce' ); ?>"></p>
<?php wp_nonce_field( 'woocommerce-add-new_attribute' ); ?>
</form>
</div>
@ -386,7 +386,7 @@ function woocommerce_add_attribute() {
/* <![CDATA[ */
jQuery('a.delete').click(function(){
var answer = confirm ("<?php _e('Are you sure you want to delete this attribute?', 'woocommerce'); ?>");
var answer = confirm ("<?php _e( 'Are you sure you want to delete this attribute?', 'woocommerce' ); ?>");
if (answer) return true;
return false;
});

View File

@ -23,7 +23,7 @@ function woocommerce_admin_help_tab_content() {
$screen->add_help_tab( array(
'id' => 'woocommerce_overview_tab',
'title' => __('Overview', 'woocommerce'),
'title' => __( 'Overview', 'woocommerce' ),
'content' =>
'<p>' . sprintf(__( 'Thank you for using WooCommerce :) Should you need help using or extending WooCommerce please <a href="%s">read the documentation</a>. For further assistance you can use the <a href="%s">community forum</a> or if you have access, <a href="%s">the members forum</a>.', 'woocommerce' ), 'http://www.woothemes.com/woocommerce-docs/', 'http://www.woothemes.com/support-forum/?viewforum=150', 'http://www.woothemes.com/support-forum/') . '</p>' .
@ -38,7 +38,7 @@ function woocommerce_admin_help_tab_content() {
$screen->add_help_tab( array(
'id' => 'woocommerce_settings_tab',
'title' => __('Settings', 'woocommerce'),
'title' => __( 'Settings', 'woocommerce' ),
'content' =>
'<p>' . __( 'Here you can set up your store and customise it to fit your needs. The sections available from the settings page include:', 'woocommerce' ) . '</p>' .
'<p><strong>' . __( 'General', 'woocommerce' ) . '</strong> - ' . __( 'General settings such as your shop base, currency, and script/styling options which affect features used in your store.', 'woocommerce' ) . '</p>' .
@ -54,7 +54,7 @@ function woocommerce_admin_help_tab_content() {
$screen->add_help_tab( array(
'id' => 'woocommerce_overview_tab_2',
'title' => __('Reports', 'woocommerce'),
'title' => __( 'Reports', 'woocommerce' ),
'content' =>
'<p>' . __( 'The reports section can be accessed from the left-hand navigation menu. Here you can generate reports for sales and customers.', 'woocommerce' ) . '</p>' .
'<p><strong>' . __( 'Sales', 'woocommerce' ) . '</strong> - ' . __( 'Reports for sales based on date, top sellers and top earners.', 'woocommerce' ) . '</p>' .
@ -64,7 +64,7 @@ function woocommerce_admin_help_tab_content() {
$screen->add_help_tab( array(
'id' => 'woocommerce_overview_tab_3',
'title' => __('Orders', 'woocommerce'),
'title' => __( 'Orders', 'woocommerce' ),
'content' =>
'<p>' . __( 'The orders section can be accessed from the left-hand navigation menu. Here you can view and manage customer orders.', 'woocommerce' ) . '</p>' .
'<p>' . __( 'Orders can also be added from this section if you want to set them up for a customer manually.', 'woocommerce' ) . '</p>'
@ -72,18 +72,18 @@ function woocommerce_admin_help_tab_content() {
$screen->add_help_tab( array(
'id' => 'woocommerce_overview_tab_4',
'title' => __('Coupons', 'woocommerce'),
'title' => __( 'Coupons', 'woocommerce' ),
'content' =>
'<p>' . __( 'Coupons can be managed from this section. Once added, customers will be able to enter coupon codes on the cart/checkout page. If a customer uses a coupon code they will be viewable when viewing orders.', 'woocommerce' ) . '</p>'
) );
$screen->set_help_sidebar(
'<p><strong>' . __('For more information:', 'woocommerce') . '</strong></p>' .
'<p>' . __('<a href="http://www.woothemes.com/woocommerce/" target="_blank">WooCommerce</a>', 'woocommerce') . '</p>' .
'<p>' . __('<a href="http://wordpress.org/extend/plugins/woocommerce/" target="_blank">Project on WordPress.org</a>', 'woocommerce') . '</p>' .
'<p>' . __('<a href="https://github.com/woothemes/woocommerce" target="_blank">Project on Github</a>', 'woocommerce') . '</p>' .
'<p>' . __('<a href="http://www.woothemes.com/woocommerce-docs/" target="_blank">WooCommerce Docs</a>', 'woocommerce') . '</p>' .
'<p>' . __('<a href="http://www.woothemes.com/extensions/woocommerce-extensions/" target="_blank">Official Extensions</a>', 'woocommerce') . '</p>' .
'<p>' . __('<a href="http://www.woothemes.com/themes/woocommerce-themes/" target="_blank">Official Themes</a>', 'woocommerce') . '</p>'
'<p><strong>' . __( 'For more information:', 'woocommerce' ) . '</strong></p>' .
'<p>' . __( '<a href="http://www.woothemes.com/woocommerce/" target="_blank">WooCommerce</a>', 'woocommerce' ) . '</p>' .
'<p>' . __( '<a href="http://wordpress.org/extend/plugins/woocommerce/" target="_blank">Project on WordPress.org</a>', 'woocommerce' ) . '</p>' .
'<p>' . __( '<a href="https://github.com/woothemes/woocommerce" target="_blank">Project on Github</a>', 'woocommerce' ) . '</p>' .
'<p>' . __( '<a href="http://www.woothemes.com/woocommerce-docs/" target="_blank">WooCommerce Docs</a>', 'woocommerce' ) . '</p>' .
'<p>' . __( '<a href="http://www.woothemes.com/extensions/woocommerce-extensions/" target="_blank">Official Extensions</a>', 'woocommerce' ) . '</p>' .
'<p>' . __( '<a href="http://www.woothemes.com/themes/woocommerce-themes/" target="_blank">Official Themes</a>', 'woocommerce' ) . '</p>'
);
}

View File

@ -37,7 +37,7 @@ function woocommerce_init_dashboard_widgets() {
$sales_heading .= '<a href="index.php?wc_sales_month='.($current_month_offset+1).'" class="next">'.date_i18n('F', strtotime('01-'.($the_month_num+1).'-2011')).' &rarr;</a>';
endif;
$sales_heading .= '<a href="index.php?wc_sales_month='.($current_month_offset-1).'" class="previous">&larr; '.date_i18n('F', strtotime('01-'.($the_month_num-1).'-2011')).'</a><span>'.__('Monthly Sales', 'woocommerce').'</span>';
$sales_heading .= '<a href="index.php?wc_sales_month='.($current_month_offset-1).'" class="previous">&larr; '.date_i18n('F', strtotime('01-'.($the_month_num-1).'-2011')).'</a><span>'.__( 'Monthly Sales', 'woocommerce' ).'</span>';
if ( current_user_can( 'publish_shop_orders' ) ) {
wp_add_dashboard_widget( 'woocommerce_dashboard_right_now', __( 'WooCommerce Right Now', 'woocommerce' ), 'woocommerce_dashboard_widget_right_now' );
@ -235,8 +235,8 @@ function woocommerce_dashboard_recent_orders() {
echo '
<li>
<span class="order-status '.sanitize_title($this_order->status).'">'.ucwords(__($this_order->status, 'woocommerce')).'</span> <a href="'.admin_url('post.php?post='.$order->ID).'&action=edit">' . get_the_time( __('l jS \of F Y h:i:s A', 'woocommerce' ), $order->ID ) . '</a><br />
<small>'.sizeof($this_order->get_items()).' '._n('item', 'items', sizeof($this_order->get_items()), 'woocommerce').' <span class="order-cost">'.__('Total:', 'woocommerce') . ' ' . woocommerce_price($this_order->order_total).'</span></small>
<span class="order-status '.sanitize_title($this_order->status).'">'.ucwords(__($this_order->status, 'woocommerce')).'</span> <a href="'.admin_url('post.php?post='.$order->ID).'&action=edit">' . get_the_time( __( 'l jS \of F Y h:i:s A', 'woocommerce' ), $order->ID ) . '</a><br />
<small>'.sizeof($this_order->get_items()).' '._n('item', 'items', sizeof($this_order->get_items()), 'woocommerce').' <span class="order-cost">'.__('Total:', 'woocommerce' ) . ' ' . woocommerce_price($this_order->order_total).'</span></small>
</li>';
endforeach;
@ -276,7 +276,7 @@ function woocommerce_dashboard_recent_reviews() {
$rating = get_comment_meta( $comment->comment_ID, 'rating', true );
echo '<div class="star-rating" title="'.$rating.'">
<span style="width:'.($rating*10).'px">'.$rating.' '.__('out of 5', 'woocommerce').'</span></div>';
<span style="width:'.($rating*10).'px">'.$rating.' '.__( 'out of 5', 'woocommerce' ).'</span></div>';
echo '<h4 class="meta"><a href="'.get_permalink($comment->ID).'#comment-'.$comment->comment_ID .'">'. __( $comment->post_title ) .'</a> reviewed by ' .strip_tags($comment->comment_author) .'</h4>';
echo '<blockquote>'.strip_tags($comment->comment_excerpt).' [...]</blockquote></li>';
@ -284,7 +284,7 @@ function woocommerce_dashboard_recent_reviews() {
endforeach;
echo '</ul>';
else :
echo '<p>'.__('There are no product reviews yet.', 'woocommerce').'</p>';
echo '<p>'.__( 'There are no product reviews yet.', 'woocommerce' ).'</p>';
endif;
}

View File

@ -124,19 +124,19 @@ function woocommerce_preview_emails() {
$mailer = $woocommerce->mailer();
$email_heading = __('Order Received', 'woocommerce');
$email_heading = __( 'Order Received', 'woocommerce' );
$message = wpautop( __("Thank you, we are now processing your order. Your order's details are below.", 'woocommerce') );
$message .= '<h2>' . __('Order:', 'woocommerce') . ' ' . '#1000</h2>';
$message .= '<h2>' . __( 'Order:', 'woocommerce' ) . ' ' . '#1000</h2>';
$message .= '
<table cellspacing="0" cellpadding="6" style="width: 100%; border: 1px solid #eee; margin: 0 0 20px" border="1" bordercolor="#eee">
<thead>
<tr>
<th scope="col" style="text-align:left; border: 1px solid #eee;">' . __('Product', 'woocommerce') . '</th>
<th scope="col" style="text-align:left; border: 1px solid #eee;">' . __('Quantity', 'woocommerce') . '</th>
<th scope="col" style="text-align:left; border: 1px solid #eee;">' . __('Price', 'woocommerce') . '</th>
<th scope="col" style="text-align:left; border: 1px solid #eee;">' . __( 'Product', 'woocommerce' ) . '</th>
<th scope="col" style="text-align:left; border: 1px solid #eee;">' . __( 'Quantity', 'woocommerce' ) . '</th>
<th scope="col" style="text-align:left; border: 1px solid #eee;">' . __( 'Price', 'woocommerce' ) . '</th>
</tr>
</thead>
<tbody>
@ -154,20 +154,20 @@ function woocommerce_preview_emails() {
</tfoot>
</table>';
$message .= '<h2>' . __('Customer details', 'woocommerce') . '</h2>';
$message .= '<h2>' . __( 'Customer details', 'woocommerce' ) . '</h2>';
$message .= '
<table cellspacing="0" cellpadding="0" style="width: 100%; vertical-align: top;" border="0">
<tr>
<td valign="top" width="50%">
<h3>' . __('Billing address', 'woocommerce') . '</h3>
<h3>' . __( 'Billing address', 'woocommerce' ) . '</h3>
<p>Some Guy
1 infinite loop
Cupertino
CA 95014</p>
</td>
<td valign="top" width="50%">
<h3>' . __('Shipping address', 'woocommerce') . '</h3>
<h3>' . __( 'Shipping address', 'woocommerce' ) . '</h3>
<p>Some Guy
1 infinite loop
Cupertino
@ -415,7 +415,7 @@ function woocommerce_compile_less_styles() {
file_put_contents( $css_file, $compiled_css );
} catch ( exception $ex ) {
wp_die( __('Could not compile woocommerce.less:', 'woocommerce') . ' ' . $ex->getMessage() );
wp_die( __( 'Could not compile woocommerce.less:', 'woocommerce' ) . ' ' . $ex->getMessage() );
}
}
}

View File

@ -54,11 +54,11 @@ function woocommerce_admin_menu() {
if ( current_user_can( 'manage_woocommerce' ) )
$menu[] = array( '', 'read', 'separator-woocommerce', '', 'wp-menu-separator woocommerce' );
$main_page = add_menu_page(__('WooCommerce', 'woocommerce'), __('WooCommerce', 'woocommerce'), 'manage_woocommerce', 'woocommerce' , 'woocommerce_settings_page', null, '55.5' );
$main_page = add_menu_page(__( 'WooCommerce', 'woocommerce' ), __( 'WooCommerce', 'woocommerce' ), 'manage_woocommerce', 'woocommerce' , 'woocommerce_settings_page', null, '55.5' );
$reports_page = add_submenu_page('woocommerce', __('Reports', 'woocommerce'), __('Reports', 'woocommerce') , 'view_woocommerce_reports', 'woocommerce_reports', 'woocommerce_reports_page');
$reports_page = add_submenu_page('woocommerce', __( 'Reports', 'woocommerce' ), __( 'Reports', 'woocommerce' ) , 'view_woocommerce_reports', 'woocommerce_reports', 'woocommerce_reports_page');
add_submenu_page('edit.php?post_type=product', __('Attributes', 'woocommerce'), __('Attributes', 'woocommerce'), 'manage_product_terms', 'woocommerce_attributes', 'woocommerce_attributes_page');
add_submenu_page('edit.php?post_type=product', __( 'Attributes', 'woocommerce' ), __( 'Attributes', 'woocommerce' ), 'manage_product_terms', 'woocommerce_attributes', 'woocommerce_attributes_page');
add_action('load-' . $main_page, 'woocommerce_admin_help_tab');
add_action('load-' . $reports_page, 'woocommerce_admin_help_tab');
@ -78,8 +78,8 @@ add_action('admin_menu', 'woocommerce_admin_menu', 9);
* @return void
*/
function woocommerce_admin_menu_after() {
add_submenu_page( 'woocommerce', __('WooCommerce Settings', 'woocommerce'), __('Settings', 'woocommerce') , 'manage_woocommerce', 'woocommerce_settings', 'woocommerce_settings_page');
add_submenu_page( 'woocommerce', __('WooCommerce Status', 'woocommerce'), __('System Status', 'woocommerce') , 'manage_woocommerce', 'woocommerce_status', 'woocommerce_status_page');
add_submenu_page( 'woocommerce', __( 'WooCommerce Settings', 'woocommerce' ), __( 'Settings', 'woocommerce' ) , 'manage_woocommerce', 'woocommerce_settings', 'woocommerce_settings_page');
add_submenu_page( 'woocommerce', __( 'WooCommerce Status', 'woocommerce' ), __( 'System Status', 'woocommerce' ) , 'manage_woocommerce', 'woocommerce_status', 'woocommerce_status_page');
}
add_action('admin_menu', 'woocommerce_admin_menu_after', 50);
@ -150,7 +150,7 @@ function woocommerce_admin_install_notice() {
<div id="message" class="updated woocommerce-message wc-connect">
<div class="squeezer">
<h4><?php _e( '<strong>Welcome to WooCommerce</strong> &#8211; You\'re almost ready to start selling :)', 'woocommerce' ); ?></h4>
<p class="submit"><a href="<?php echo add_query_arg('install_woocommerce_pages', 'true', admin_url('admin.php?page=woocommerce_settings')); ?>" class="button-primary"><?php _e( 'Install WooCommerce Pages', 'woocommerce' ); ?></a> <a class="skip button-primary" href="<?php echo add_query_arg('skip_install_woocommerce_pages', 'true', admin_url('admin.php?page=woocommerce_settings')); ?>"><?php _e('Skip setup', 'woocommerce'); ?></a></p>
<p class="submit"><a href="<?php echo add_query_arg('install_woocommerce_pages', 'true', admin_url('admin.php?page=woocommerce_settings')); ?>" class="button-primary"><?php _e( 'Install WooCommerce Pages', 'woocommerce' ); ?></a> <a class="skip button-primary" href="<?php echo add_query_arg('skip_install_woocommerce_pages', 'true', admin_url('admin.php?page=woocommerce_settings')); ?>"><?php _e( 'Skip setup', 'woocommerce' ); ?></a></p>
</div>
</div>
<?php
@ -161,7 +161,7 @@ function woocommerce_admin_installed_notice() {
<div class="squeezer">
<h4><?php _e( '<strong>WooCommerce has been installed</strong> &#8211; You\'re ready to start selling :)', 'woocommerce' ); ?></h4>
<p class="submit"><a href="<?php echo admin_url('admin.php?page=woocommerce_settings'); ?>" class="button-primary"><?php _e( 'Settings', 'woocommerce' ); ?></a> <a class="docs button-primary" href="http://www.woothemes.com/woocommerce-docs/"><?php _e('Documentation', 'woocommerce'); ?></a></p>
<p class="submit"><a href="<?php echo admin_url('admin.php?page=woocommerce_settings'); ?>" class="button-primary"><?php _e( 'Settings', 'woocommerce' ); ?></a> <a class="docs button-primary" href="http://www.woothemes.com/woocommerce-docs/"><?php _e( 'Documentation', 'woocommerce' ); ?></a></p>
<p><a href="https://twitter.com/share" class="twitter-share-button" data-url="http://www.woothemes.com/woocommerce/" data-text="A open-source (free) #ecommerce plugin for #WordPress that helps you sell anything. Beautifully." data-via="WooThemes" data-size="large" data-hashtags="WooCommerce">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></p>
@ -374,31 +374,31 @@ function woocommerce_admin_scripts() {
$woocommerce_witepanel_params = array(
'remove_item_notice' => __("Remove this item? If you have previously reduced this item's stock, or this order was submitted by a customer, will need to manually restore the item's stock.", 'woocommerce'),
'remove_attribute' => __('Remove this attribute?', 'woocommerce'),
'name_label' => __('Name', 'woocommerce'),
'remove_label' => __('Remove', 'woocommerce'),
'click_to_toggle' => __('Click to toggle', 'woocommerce'),
'values_label' => __('Value(s)', 'woocommerce'),
'text_attribute_tip' => __('Enter some text, or some attributes by pipe (|) separating values.', 'woocommerce'),
'visible_label' => __('Visible on the product page', 'woocommerce'),
'used_for_variations_label' => __('Used for variations', 'woocommerce'),
'new_attribute_prompt' => __('Enter a name for the new attribute term:', 'woocommerce'),
'remove_attribute' => __( 'Remove this attribute?', 'woocommerce' ),
'name_label' => __( 'Name', 'woocommerce' ),
'remove_label' => __( 'Remove', 'woocommerce' ),
'click_to_toggle' => __( 'Click to toggle', 'woocommerce' ),
'values_label' => __( 'Value(s)', 'woocommerce' ),
'text_attribute_tip' => __( 'Enter some text, or some attributes by pipe (|) separating values.', 'woocommerce' ),
'visible_label' => __( 'Visible on the product page', 'woocommerce' ),
'used_for_variations_label' => __( 'Used for variations', 'woocommerce' ),
'new_attribute_prompt' => __( 'Enter a name for the new attribute term:', 'woocommerce' ),
'calc_totals' => __("Calculate totals based on order items, discount amount, and shipping? Note, you will need to (optionally) calculate tax rows and cart discounts manually.", 'woocommerce'),
'calc_line_taxes' => __("Calculate line taxes? This will calculate taxes based on the customers country. If no billing/shipping is set it will use the store base country.", 'woocommerce'),
'copy_billing' => __("Copy billing information to shipping information? This will remove any currently entered shipping information.", 'woocommerce'),
'load_billing' => __("Load the customer's billing information? This will remove any currently entered billing information.", 'woocommerce'),
'load_shipping' => __("Load the customer's shipping information? This will remove any currently entered shipping information.", 'woocommerce'),
'featured_label' => __('Featured', 'woocommerce'),
'featured_label' => __( 'Featured', 'woocommerce' ),
'tax_or_vat' => $woocommerce->countries->tax_or_vat(),
'prices_include_tax' => get_option('woocommerce_prices_include_tax'),
'round_at_subtotal' => get_option( 'woocommerce_tax_round_at_subtotal' ),
'meta_name' => __('Meta Name', 'woocommerce'),
'meta_value' => __('Meta Value', 'woocommerce'),
'no_customer_selected' => __('No customer selected', 'woocommerce'),
'tax_label' => __('Tax Label:', 'woocommerce'),
'compound_label' => __('Compound:', 'woocommerce'),
'cart_tax_label' => __('Cart Tax:', 'woocommerce'),
'shipping_tax_label' => __('Shipping Tax:', 'woocommerce'),
'meta_name' => __( 'Meta Name', 'woocommerce' ),
'meta_value' => __( 'Meta Value', 'woocommerce' ),
'no_customer_selected' => __( 'No customer selected', 'woocommerce' ),
'tax_label' => __( 'Tax Label:', 'woocommerce' ),
'compound_label' => __( 'Compound:', 'woocommerce' ),
'cart_tax_label' => __( 'Cart Tax:', 'woocommerce' ),
'shipping_tax_label' => __( 'Shipping Tax:', 'woocommerce' ),
'plugin_url' => $woocommerce->plugin_url(),
'ajax_url' => admin_url('admin-ajax.php'),
'add_order_item_nonce' => wp_create_nonce("add-order-item"),
@ -596,7 +596,7 @@ function woocommerce_exclude_image_from_product_page_field( $fields, $object ) {
$exclude_image = (int) get_post_meta($object->ID, '_woocommerce_exclude_image', true);
$label = __('Exclude image', 'woocommerce');
$label = __( 'Exclude image', 'woocommerce' );
$html = '<input type="checkbox" '.checked($exclude_image, 1, false).' name="attachments['.$object->ID.'][woocommerce_exclude_image]" id="attachments['.$object->ID.'][woocommerce_exclude_image" />';
@ -605,7 +605,7 @@ function woocommerce_exclude_image_from_product_page_field( $fields, $object ) {
'input' => 'html',
'html' => $html,
'value' => '',
'helps' => __('Enabling this option will hide it from the product page image gallery.', 'woocommerce')
'helps' => __( 'Enabling this option will hide it from the product page image gallery.', 'woocommerce' )
);
return $fields;
@ -676,47 +676,47 @@ function woocommerce_product_updated_messages( $messages ) {
$messages['product'] = array(
0 => '', // Unused. Messages start at index 1.
1 => sprintf( __('Product updated. <a href="%s">View Product</a>', 'woocommerce'), esc_url( get_permalink($post_ID) ) ),
2 => __('Custom field updated.', 'woocommerce'),
3 => __('Custom field deleted.', 'woocommerce'),
4 => __('Product updated.', 'woocommerce'),
5 => isset($_GET['revision']) ? sprintf( __('Product restored to revision from %s', 'woocommerce'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
6 => sprintf( __('Product published. <a href="%s">View Product</a>', 'woocommerce'), esc_url( get_permalink($post_ID) ) ),
7 => __('Product saved.', 'woocommerce'),
8 => sprintf( __('Product submitted. <a target="_blank" href="%s">Preview Product</a>', 'woocommerce'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
9 => sprintf( __('Product scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview Product</a>', 'woocommerce'),
1 => sprintf( __( 'Product updated. <a href="%s">View Product</a>', 'woocommerce' ), esc_url( get_permalink($post_ID) ) ),
2 => __( 'Custom field updated.', 'woocommerce' ),
3 => __( 'Custom field deleted.', 'woocommerce' ),
4 => __( 'Product updated.', 'woocommerce' ),
5 => isset($_GET['revision']) ? sprintf( __( 'Product restored to revision from %s', 'woocommerce' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
6 => sprintf( __( 'Product published. <a href="%s">View Product</a>', 'woocommerce' ), esc_url( get_permalink($post_ID) ) ),
7 => __( 'Product saved.', 'woocommerce' ),
8 => sprintf( __( 'Product submitted. <a target="_blank" href="%s">Preview Product</a>', 'woocommerce' ), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
9 => sprintf( __( 'Product scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview Product</a>', 'woocommerce' ),
date_i18n( __( 'M j, Y @ G:i', 'woocommerce' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
10 => sprintf( __('Product draft updated. <a target="_blank" href="%s">Preview Product</a>', 'woocommerce'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
10 => sprintf( __( 'Product draft updated. <a target="_blank" href="%s">Preview Product</a>', 'woocommerce' ), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
);
$messages['shop_order'] = array(
0 => '', // Unused. Messages start at index 1.
1 => __('Order updated.', 'woocommerce'),
2 => __('Custom field updated.', 'woocommerce'),
3 => __('Custom field deleted.', 'woocommerce'),
4 => __('Order updated.', 'woocommerce'),
5 => isset($_GET['revision']) ? sprintf( __('Order restored to revision from %s', 'woocommerce'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
6 => __('Order updated.', 'woocommerce'),
7 => __('Order saved.', 'woocommerce'),
8 => __('Order submitted.', 'woocommerce'),
9 => sprintf( __('Order scheduled for: <strong>%1$s</strong>.', 'woocommerce'),
1 => __( 'Order updated.', 'woocommerce' ),
2 => __( 'Custom field updated.', 'woocommerce' ),
3 => __( 'Custom field deleted.', 'woocommerce' ),
4 => __( 'Order updated.', 'woocommerce' ),
5 => isset($_GET['revision']) ? sprintf( __( 'Order restored to revision from %s', 'woocommerce' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
6 => __( 'Order updated.', 'woocommerce' ),
7 => __( 'Order saved.', 'woocommerce' ),
8 => __( 'Order submitted.', 'woocommerce' ),
9 => sprintf( __( 'Order scheduled for: <strong>%1$s</strong>.', 'woocommerce' ),
date_i18n( __( 'M j, Y @ G:i', 'woocommerce' ), strtotime( $post->post_date ) ) ),
10 => __('Order draft updated.', 'woocommerce')
10 => __( 'Order draft updated.', 'woocommerce' )
);
$messages['shop_coupon'] = array(
0 => '', // Unused. Messages start at index 1.
1 => __('Coupon updated.', 'woocommerce'),
2 => __('Custom field updated.', 'woocommerce'),
3 => __('Custom field deleted.', 'woocommerce'),
4 => __('Coupon updated.', 'woocommerce'),
5 => isset($_GET['revision']) ? sprintf( __('Coupon restored to revision from %s', 'woocommerce'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
6 => __('Coupon updated.', 'woocommerce'),
7 => __('Coupon saved.', 'woocommerce'),
8 => __('Coupon submitted.', 'woocommerce'),
9 => sprintf( __('Coupon scheduled for: <strong>%1$s</strong>.', 'woocommerce'),
1 => __( 'Coupon updated.', 'woocommerce' ),
2 => __( 'Custom field updated.', 'woocommerce' ),
3 => __( 'Custom field deleted.', 'woocommerce' ),
4 => __( 'Coupon updated.', 'woocommerce' ),
5 => isset($_GET['revision']) ? sprintf( __( 'Coupon restored to revision from %s', 'woocommerce' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
6 => __( 'Coupon updated.', 'woocommerce' ),
7 => __( 'Coupon saved.', 'woocommerce' ),
8 => __( 'Coupon submitted.', 'woocommerce' ),
9 => sprintf( __( 'Coupon scheduled for: <strong>%1$s</strong>.', 'woocommerce' ),
date_i18n( __( 'M j, Y @ G:i', 'woocommerce' ), strtotime( $post->post_date ) ) ),
10 => __('Coupon draft updated.', 'woocommerce')
10 => __( 'Coupon draft updated.', 'woocommerce' )
);
return $messages;

View File

@ -30,48 +30,48 @@ function woocommerce_reports() {
'title' => __( 'Sales', 'woocommerce' ),
'charts' => array(
array(
'title' => __('Overview', 'woocommerce'),
'title' => __( 'Overview', 'woocommerce' ),
'description' => '',
'hide_title' => true,
'function' => 'woocommerce_sales_overview'
),
array(
'title' => __('Sales by day', 'woocommerce'),
'title' => __( 'Sales by day', 'woocommerce' ),
'description' => '',
'function' => 'woocommerce_daily_sales'
),
array(
'title' => __('Sales by month', 'woocommerce'),
'title' => __( 'Sales by month', 'woocommerce' ),
'description' => '',
'function' => 'woocommerce_monthly_sales'
),
array(
'title' => __('Taxes by month', 'woocommerce'),
'title' => __( 'Taxes by month', 'woocommerce' ),
'description' => '',
'function' => 'woocommerce_monthly_taxes'
),
array(
'title' => __('Product Sales', 'woocommerce'),
'title' => __( 'Product Sales', 'woocommerce' ),
'description' => '',
'function' => 'woocommerce_product_sales'
),
array(
'title' => __('Top sellers', 'woocommerce'),
'title' => __( 'Top sellers', 'woocommerce' ),
'description' => '',
'function' => 'woocommerce_top_sellers'
),
array(
'title' => __('Top earners', 'woocommerce'),
'title' => __( 'Top earners', 'woocommerce' ),
'description' => '',
'function' => 'woocommerce_top_earners'
),
array(
'title' => __('Sales by category', 'woocommerce'),
'title' => __( 'Sales by category', 'woocommerce' ),
'description' => '',
'function' => 'woocommerce_category_sales'
),
array(
'title' => __('Sales by coupon', 'woocommerce'),
'title' => __( 'Sales by coupon', 'woocommerce' ),
'description' => '',
'function' => 'woocommerce_coupon_sales'
)
@ -81,7 +81,7 @@ function woocommerce_reports() {
'title' => __( 'Customers', 'woocommerce' ),
'charts' => array(
array(
'title' => __('Overview', 'woocommerce'),
'title' => __( 'Overview', 'woocommerce' ),
'description' => '',
'hide_title' => true,
'function' => 'woocommerce_customer_overview'
@ -92,7 +92,7 @@ function woocommerce_reports() {
'title' => __( 'Stock', 'woocommerce' ),
'charts' => array(
array(
'title' => __('Overview', 'woocommerce'),
'title' => __( 'Overview', 'woocommerce' ),
'description' => '',
'hide_title' => true,
'function' => 'woocommerce_stock_overview'
@ -364,45 +364,45 @@ function woocommerce_sales_overview() {
<div id="poststuff" class="woocommerce-reports-wrap">
<div class="woocommerce-reports-sidebar">
<div class="postbox">
<h3><span><?php _e('Total sales', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Total sales', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php if ($total_sales>0) echo woocommerce_price($total_sales); else _e('n/a', 'woocommerce'); ?></p>
<p class="stat"><?php if ($total_sales>0) echo woocommerce_price($total_sales); else _e( 'n/a', 'woocommerce' ); ?></p>
</div>
</div>
<div class="postbox">
<h3><span><?php _e('Total orders', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Total orders', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php if ( $total_orders > 0 ) echo $total_orders . ' (' . $order_items . ' ' . __( 'items', 'woocommerce' ) . ')'; else _e('n/a', 'woocommerce'); ?></p>
<p class="stat"><?php if ( $total_orders > 0 ) echo $total_orders . ' (' . $order_items . ' ' . __( 'items', 'woocommerce' ) . ')'; else _e( 'n/a', 'woocommerce' ); ?></p>
</div>
</div>
<div class="postbox">
<h3><span><?php _e('Average order total', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Average order total', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php if ($total_orders>0) echo woocommerce_price($total_sales/$total_orders); else _e('n/a', 'woocommerce'); ?></p>
<p class="stat"><?php if ($total_orders>0) echo woocommerce_price($total_sales/$total_orders); else _e( 'n/a', 'woocommerce' ); ?></p>
</div>
</div>
<div class="postbox">
<h3><span><?php _e('Average order items', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Average order items', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php if ($total_orders>0) echo number_format($order_items/$total_orders, 2); else _e('n/a', 'woocommerce'); ?></p>
<p class="stat"><?php if ($total_orders>0) echo number_format($order_items/$total_orders, 2); else _e( 'n/a', 'woocommerce' ); ?></p>
</div>
</div>
<div class="postbox">
<h3><span><?php _e('Discounts used', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Discounts used', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php if ($discount_total>0) echo woocommerce_price($discount_total); else _e('n/a', 'woocommerce'); ?></p>
<p class="stat"><?php if ($discount_total>0) echo woocommerce_price($discount_total); else _e( 'n/a', 'woocommerce' ); ?></p>
</div>
</div>
<div class="postbox">
<h3><span><?php _e('Total shipping costs', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Total shipping costs', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php if ($shipping_total>0) echo woocommerce_price($shipping_total); else _e('n/a', 'woocommerce'); ?></p>
<p class="stat"><?php if ($shipping_total>0) echo woocommerce_price($shipping_total); else _e( 'n/a', 'woocommerce' ); ?></p>
</div>
</div>
</div>
<div class="woocommerce-reports-main">
<div class="postbox">
<h3><span><?php _e('This month\'s sales', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'This month\'s sales', 'woocommerce' ); ?></span></h3>
<div class="inside chart">
<div id="placeholder" style="width:100%; overflow:hidden; height:568px; position:relative;"></div>
</div>
@ -611,39 +611,39 @@ function woocommerce_daily_sales() {
}
?>
<form method="post" action="">
<p><label for="from"><?php _e('From:', 'woocommerce'); ?></label> <input type="text" name="start_date" id="from" readonly="readonly" value="<?php echo esc_attr( date('Y-m-d', $start_date) ); ?>" /> <label for="to"><?php _e('To:', 'woocommerce'); ?></label> <input type="text" name="end_date" id="to" readonly="readonly" value="<?php echo esc_attr( date('Y-m-d', $end_date) ); ?>" /> <input type="submit" class="button" value="<?php _e('Show', 'woocommerce'); ?>" /></p>
<p><label for="from"><?php _e( 'From:', 'woocommerce' ); ?></label> <input type="text" name="start_date" id="from" readonly="readonly" value="<?php echo esc_attr( date('Y-m-d', $start_date) ); ?>" /> <label for="to"><?php _e( 'To:', 'woocommerce' ); ?></label> <input type="text" name="end_date" id="to" readonly="readonly" value="<?php echo esc_attr( date('Y-m-d', $end_date) ); ?>" /> <input type="submit" class="button" value="<?php _e( 'Show', 'woocommerce' ); ?>" /></p>
</form>
<div id="poststuff" class="woocommerce-reports-wrap">
<div class="woocommerce-reports-sidebar">
<div class="postbox">
<h3><span><?php _e('Total sales in range', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Total sales in range', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php if ($total_sales>0) echo woocommerce_price($total_sales); else _e('n/a', 'woocommerce'); ?></p>
<p class="stat"><?php if ($total_sales>0) echo woocommerce_price($total_sales); else _e( 'n/a', 'woocommerce' ); ?></p>
</div>
</div>
<div class="postbox">
<h3><span><?php _e('Total orders in range', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Total orders in range', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php if ( $total_orders > 0 ) echo $total_orders . ' (' . $order_items . ' ' . __( 'items', 'woocommerce' ) . ')'; else _e('n/a', 'woocommerce'); ?></p>
<p class="stat"><?php if ( $total_orders > 0 ) echo $total_orders . ' (' . $order_items . ' ' . __( 'items', 'woocommerce' ) . ')'; else _e( 'n/a', 'woocommerce' ); ?></p>
</div>
</div>
<div class="postbox">
<h3><span><?php _e('Average order total in range', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Average order total in range', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php if ($total_orders>0) echo woocommerce_price($total_sales/$total_orders); else _e('n/a', 'woocommerce'); ?></p>
<p class="stat"><?php if ($total_orders>0) echo woocommerce_price($total_sales/$total_orders); else _e( 'n/a', 'woocommerce' ); ?></p>
</div>
</div>
<div class="postbox">
<h3><span><?php _e('Average order items in range', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Average order items in range', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php if ($total_orders>0) echo number_format($order_items/$total_orders, 2); else _e('n/a', 'woocommerce'); ?></p>
<p class="stat"><?php if ($total_orders>0) echo number_format($order_items/$total_orders, 2); else _e( 'n/a', 'woocommerce' ); ?></p>
</div>
</div>
</div>
<div class="woocommerce-reports-main">
<div class="postbox">
<h3><span><?php _e('Sales in range', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Sales in range', 'woocommerce' ); ?></span></h3>
<div class="inside chart">
<div id="placeholder" style="width:100%; overflow:hidden; height:568px; position:relative;"></div>
</div>
@ -793,44 +793,44 @@ function woocommerce_monthly_sales() {
}
?>
<form method="post" action="">
<p><label for="show_year"><?php _e('Year:', 'woocommerce'); ?></label>
<p><label for="show_year"><?php _e( 'Year:', 'woocommerce' ); ?></label>
<select name="show_year" id="show_year">
<?php
for ( $i = $first_year; $i <= date( 'Y' ); $i++ )
printf('<option value="%s" %s>%s</option>', $i, selected( $current_year, $i, false ), $i );
?>
</select> <input type="submit" class="button" value="<?php _e('Show', 'woocommerce'); ?>" /></p>
</select> <input type="submit" class="button" value="<?php _e( 'Show', 'woocommerce' ); ?>" /></p>
</form>
<div id="poststuff" class="woocommerce-reports-wrap">
<div class="woocommerce-reports-sidebar">
<div class="postbox">
<h3><span><?php _e('Total sales for year', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Total sales for year', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php if ($total_sales>0) echo woocommerce_price($total_sales); else _e('n/a', 'woocommerce'); ?></p>
<p class="stat"><?php if ($total_sales>0) echo woocommerce_price($total_sales); else _e( 'n/a', 'woocommerce' ); ?></p>
</div>
</div>
<div class="postbox">
<h3><span><?php _e('Total orders for year', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Total orders for year', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php if ( $total_orders > 0 ) echo $total_orders . ' (' . $order_items . ' ' . __( 'items', 'woocommerce' ) . ')'; else _e('n/a', 'woocommerce'); ?></p>
<p class="stat"><?php if ( $total_orders > 0 ) echo $total_orders . ' (' . $order_items . ' ' . __( 'items', 'woocommerce' ) . ')'; else _e( 'n/a', 'woocommerce' ); ?></p>
</div>
</div>
<div class="postbox">
<h3><span><?php _e('Average order total for year', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Average order total for year', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php if ($total_orders>0) echo woocommerce_price($total_sales/$total_orders); else _e('n/a', 'woocommerce'); ?></p>
<p class="stat"><?php if ($total_orders>0) echo woocommerce_price($total_sales/$total_orders); else _e( 'n/a', 'woocommerce' ); ?></p>
</div>
</div>
<div class="postbox">
<h3><span><?php _e('Average order items for year', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Average order items for year', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php if ($total_orders>0) echo number_format($order_items/$total_orders, 2); else _e('n/a', 'woocommerce'); ?></p>
<p class="stat"><?php if ($total_orders>0) echo number_format($order_items/$total_orders, 2); else _e( 'n/a', 'woocommerce' ); ?></p>
</div>
</div>
</div>
<div class="woocommerce-reports-main">
<div class="postbox">
<h3><span><?php _e('Monthly sales for year', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Monthly sales for year', 'woocommerce' ); ?></span></h3>
<div class="inside chart">
<div id="placeholder" style="width:100%; overflow:hidden; height:568px; position:relative;"></div>
</div>
@ -949,13 +949,13 @@ function woocommerce_top_sellers() {
reset( $found_products );
?>
<form method="post" action="">
<p><label for="from"><?php _e('From:', 'woocommerce'); ?></label> <input type="text" name="start_date" id="from" readonly="readonly" value="<?php echo esc_attr( date('Y-m-d', $start_date) ); ?>" /> <label for="to"><?php _e('To:', 'woocommerce'); ?></label> <input type="text" name="end_date" id="to" readonly="readonly" value="<?php echo esc_attr( date('Y-m-d', $end_date) ); ?>" /> <input type="submit" class="button" value="<?php _e('Show', 'woocommerce'); ?>" /></p>
<p><label for="from"><?php _e( 'From:', 'woocommerce' ); ?></label> <input type="text" name="start_date" id="from" readonly="readonly" value="<?php echo esc_attr( date('Y-m-d', $start_date) ); ?>" /> <label for="to"><?php _e( 'To:', 'woocommerce' ); ?></label> <input type="text" name="end_date" id="to" readonly="readonly" value="<?php echo esc_attr( date('Y-m-d', $end_date) ); ?>" /> <input type="submit" class="button" value="<?php _e( 'Show', 'woocommerce' ); ?>" /></p>
</form>
<table class="bar_chart">
<thead>
<tr>
<th><?php _e('Product', 'woocommerce'); ?></th>
<th><?php _e('Sales', 'woocommerce'); ?></th>
<th><?php _e( 'Product', 'woocommerce' ); ?></th>
<th><?php _e( 'Sales', 'woocommerce' ); ?></th>
</tr>
</thead>
<tbody>
@ -1046,13 +1046,13 @@ function woocommerce_top_earners() {
reset( $found_products );
?>
<form method="post" action="">
<p><label for="from"><?php _e('From:', 'woocommerce'); ?></label> <input type="text" name="start_date" id="from" readonly="readonly" value="<?php echo esc_attr( date('Y-m-d', $start_date) ); ?>" /> <label for="to"><?php _e('To:', 'woocommerce'); ?></label> <input type="text" name="end_date" id="to" readonly="readonly" value="<?php echo esc_attr( date('Y-m-d', $end_date) ); ?>" /> <input type="submit" class="button" value="<?php _e('Show', 'woocommerce'); ?>" /></p>
<p><label for="from"><?php _e( 'From:', 'woocommerce' ); ?></label> <input type="text" name="start_date" id="from" readonly="readonly" value="<?php echo esc_attr( date('Y-m-d', $start_date) ); ?>" /> <label for="to"><?php _e( 'To:', 'woocommerce' ); ?></label> <input type="text" name="end_date" id="to" readonly="readonly" value="<?php echo esc_attr( date('Y-m-d', $end_date) ); ?>" /> <input type="submit" class="button" value="<?php _e( 'Show', 'woocommerce' ); ?>" /></p>
</form>
<table class="bar_chart">
<thead>
<tr>
<th><?php _e('Product', 'woocommerce'); ?></th>
<th colspan="2"><?php _e('Sales', 'woocommerce'); ?></th>
<th><?php _e( 'Product', 'woocommerce' ); ?></th>
<th colspan="2"><?php _e( 'Sales', 'woocommerce' ); ?></th>
</tr>
</thead>
<tbody>
@ -1165,8 +1165,8 @@ function woocommerce_product_sales() {
<table class="bar_chart">
<thead>
<tr>
<th><?php _e('Month', 'woocommerce'); ?></th>
<th colspan="2"><?php _e('Sales', 'woocommerce'); ?></th>
<th><?php _e( 'Month', 'woocommerce' ); ?></th>
<th colspan="2"><?php _e( 'Sales', 'woocommerce' ); ?></th>
</tr>
</thead>
<tbody>
@ -1183,7 +1183,7 @@ function woocommerce_product_sales() {
<span style="width:'.$width.'%">&nbsp;</span>
<span class="alt" style="width:'.$width2.'%">&nbsp;</span>
</td></tr>';
endforeach; else echo '<tr><td colspan="3">'.__('No sales :(', 'woocommerce').'</td></tr>';
endforeach; else echo '<tr><td colspan="3">'.__( 'No sales :(', 'woocommerce' ).'</td></tr>';
?>
</tbody>
</table>
@ -1192,7 +1192,7 @@ function woocommerce_product_sales() {
} else {
?>
<form method="post" action="">
<p><select id="product_ids" name="product_ids[]" class="ajax_chosen_select_products" multiple="multiple" data-placeholder="<?php _e('Search for a product&hellip;', 'woocommerce'); ?>" style="width: 400px;"></select> <input type="submit" style="vertical-align: top;" class="button" value="<?php _e('Show', 'woocommerce'); ?>" /></p>
<p><select id="product_ids" name="product_ids[]" class="ajax_chosen_select_products" multiple="multiple" data-placeholder="<?php _e( 'Search for a product&hellip;', 'woocommerce' ); ?>" style="width: 400px;"></select> <input type="submit" style="vertical-align: top;" class="button" value="<?php _e( 'Show', 'woocommerce' ); ?>" /></p>
<script type="text/javascript">
jQuery(function(){
// Ajax Chosen Product Selectors
@ -1295,45 +1295,45 @@ function woocommerce_customer_overview() {
<div id="poststuff" class="woocommerce-reports-wrap">
<div class="woocommerce-reports-sidebar">
<div class="postbox">
<h3><span><?php _e('Total customers', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Total customers', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php if ($total_customers>0) echo $total_customers; else _e('n/a', 'woocommerce'); ?></p>
<p class="stat"><?php if ($total_customers>0) echo $total_customers; else _e( 'n/a', 'woocommerce' ); ?></p>
</div>
</div>
<div class="postbox">
<h3><span><?php _e('Total customer sales', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Total customer sales', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php if ($total_customer_sales>0) echo woocommerce_price($total_customer_sales); else _e('n/a', 'woocommerce'); ?></p>
<p class="stat"><?php if ($total_customer_sales>0) echo woocommerce_price($total_customer_sales); else _e( 'n/a', 'woocommerce' ); ?></p>
</div>
</div>
<div class="postbox">
<h3><span><?php _e('Total guest sales', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Total guest sales', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php if ($total_guest_sales>0) echo woocommerce_price($total_guest_sales); else _e('n/a', 'woocommerce'); ?></p>
<p class="stat"><?php if ($total_guest_sales>0) echo woocommerce_price($total_guest_sales); else _e( 'n/a', 'woocommerce' ); ?></p>
</div>
</div>
<div class="postbox">
<h3><span><?php _e('Total customer orders', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Total customer orders', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php if ($total_customer_orders>0) echo $total_customer_orders; else _e('n/a', 'woocommerce'); ?></p>
<p class="stat"><?php if ($total_customer_orders>0) echo $total_customer_orders; else _e( 'n/a', 'woocommerce' ); ?></p>
</div>
</div>
<div class="postbox">
<h3><span><?php _e('Total guest orders', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Total guest orders', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php if ($total_guest_orders>0) echo $total_guest_orders; else _e('n/a', 'woocommerce'); ?></p>
<p class="stat"><?php if ($total_guest_orders>0) echo $total_guest_orders; else _e( 'n/a', 'woocommerce' ); ?></p>
</div>
</div>
<div class="postbox">
<h3><span><?php _e('Average orders per customer', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Average orders per customer', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php if ($total_customer_orders>0 && $total_customers>0) echo number_format($total_customer_orders/$total_customers, 2); else _e('n/a', 'woocommerce'); ?></p>
<p class="stat"><?php if ($total_customer_orders>0 && $total_customers>0) echo number_format($total_customer_orders/$total_customers, 2); else _e( 'n/a', 'woocommerce' ); ?></p>
</div>
</div>
</div>
<div class="woocommerce-reports-main">
<div class="postbox">
<h3><span><?php _e('Signups per day', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Signups per day', 'woocommerce' ); ?></span></h3>
<div class="inside chart">
<div id="placeholder" style="width:100%; overflow:hidden; height:568px; position:relative;"></div>
</div>
@ -1530,7 +1530,7 @@ function woocommerce_stock_overview() {
<div id="poststuff" class="woocommerce-reports-wrap halved">
<div class="woocommerce-reports-left">
<div class="postbox">
<h3><span><?php _e('Low stock', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Low stock', 'woocommerce' ); ?></span></h3>
<div class="inside">
<?php
if ( $low_in_stock ) {
@ -1545,7 +1545,7 @@ function woocommerce_stock_overview() {
$title = __( $product->post_title );
if ( $sku )
$title .= ' (' . __('SKU', 'woocommerce') . ': ' . $sku . ')';
$title .= ' (' . __( 'SKU', 'woocommerce' ) . ': ' . $sku . ')';
if ( $product->post_type=='product' )
$product_url = admin_url( 'post.php?post=' . $product->ID . '&action=edit' );
@ -1557,7 +1557,7 @@ function woocommerce_stock_overview() {
}
echo '</ul>';
} else {
echo '<p>'.__('No products are low in stock.', 'woocommerce').'</p>';
echo '<p>'.__( 'No products are low in stock.', 'woocommerce' ).'</p>';
}
?>
</div>
@ -1565,7 +1565,7 @@ function woocommerce_stock_overview() {
</div>
<div class="woocommerce-reports-right">
<div class="postbox">
<h3><span><?php _e('Out of stock', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Out of stock', 'woocommerce' ); ?></span></h3>
<div class="inside">
<?php
if ( $low_in_stock ) {
@ -1580,7 +1580,7 @@ function woocommerce_stock_overview() {
$title = __( $product->post_title );
if ( $sku )
$title .= ' (' . __('SKU', 'woocommerce') . ': ' . $sku . ')';
$title .= ' (' . __( 'SKU', 'woocommerce' ) . ': ' . $sku . ')';
if ( $product->post_type=='product' )
$product_url = admin_url( 'post.php?post=' . $product->ID . '&action=edit' );
@ -1592,7 +1592,7 @@ function woocommerce_stock_overview() {
}
echo '</ul>';
} else {
echo '<p>'.__('No products are out in stock.', 'woocommerce').'</p>';
echo '<p>'.__( 'No products are out in stock.', 'woocommerce' ).'</p>';
}
?>
</div>
@ -1741,18 +1741,18 @@ function woocommerce_monthly_taxes() {
$total_tax = $total_sales_tax + $total_shipping_tax;
?>
<form method="post" action="">
<p><label for="show_year"><?php _e('Year:', 'woocommerce'); ?></label>
<p><label for="show_year"><?php _e( 'Year:', 'woocommerce' ); ?></label>
<select name="show_year" id="show_year">
<?php
for ( $i = $first_year; $i <= date('Y'); $i++ )
printf( '<option value="%s" %s>%s</option>', $i, selected( $current_year, $i, false ), $i );
?>
</select> <input type="submit" class="button" value="<?php _e('Show', 'woocommerce'); ?>" /></p>
</select> <input type="submit" class="button" value="<?php _e( 'Show', 'woocommerce' ); ?>" /></p>
</form>
<div id="poststuff" class="woocommerce-reports-wrap">
<div class="woocommerce-reports-sidebar">
<div class="postbox">
<h3><span><?php _e('Total taxes for year', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Total taxes for year', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php
if ( $total_tax > 0 )
@ -1763,7 +1763,7 @@ function woocommerce_monthly_taxes() {
</div>
</div>
<div class="postbox">
<h3><span><?php _e('Total product taxes for year', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Total product taxes for year', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php
if ( $total_sales_tax > 0 )
@ -1774,7 +1774,7 @@ function woocommerce_monthly_taxes() {
</div>
</div>
<div class="postbox">
<h3><span><?php _e('Total shipping tax for year', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Total shipping tax for year', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php
if ( $total_shipping_tax > 0 )
@ -1789,13 +1789,13 @@ function woocommerce_monthly_taxes() {
<table class="widefat">
<thead>
<tr>
<th><?php _e('Month', 'woocommerce'); ?></th>
<th class="total_row"><?php _e('Total Sales', 'woocommerce'); ?> <a class="tips" data-tip="<?php _e("This is the sum of the 'Order Total' field within your orders.", 'woocommerce'); ?>" href="#">[?]</a></th>
<th class="total_row"><?php _e('Total Shipping', 'woocommerce'); ?> <a class="tips" data-tip="<?php _e("This is the sum of the 'Shipping Total' field within your orders.", 'woocommerce'); ?>" href="#">[?]</a></th>
<th class="total_row"><?php _e('Total Product Taxes', 'woocommerce'); ?> <a class="tips" data-tip="<?php _e("This is the sum of the 'Cart Tax' field within your orders.", 'woocommerce'); ?>" href="#">[?]</a></th>
<th class="total_row"><?php _e('Total Shipping Taxes', 'woocommerce'); ?> <a class="tips" data-tip="<?php _e("This is the sum of the 'Shipping Tax' field within your orders.", 'woocommerce'); ?>" href="#">[?]</a></th>
<th class="total_row"><?php _e('Total Taxes', 'woocommerce'); ?> <a class="tips" data-tip="<?php _e("This is the sum of the 'Cart Tax' and 'Shipping Tax' fields within your orders.", 'woocommerce'); ?>" href="#">[?]</a></th>
<th class="total_row"><?php _e('Net profit', 'woocommerce'); ?> <a class="tips" data-tip="<?php _e("Total sales minus shipping and tax.", 'woocommerce'); ?>" href="#">[?]</a></th>
<th><?php _e( 'Month', 'woocommerce' ); ?></th>
<th class="total_row"><?php _e( 'Total Sales', 'woocommerce' ); ?> <a class="tips" data-tip="<?php _e("This is the sum of the 'Order Total' field within your orders.", 'woocommerce'); ?>" href="#">[?]</a></th>
<th class="total_row"><?php _e( 'Total Shipping', 'woocommerce' ); ?> <a class="tips" data-tip="<?php _e("This is the sum of the 'Shipping Total' field within your orders.", 'woocommerce'); ?>" href="#">[?]</a></th>
<th class="total_row"><?php _e( 'Total Product Taxes', 'woocommerce' ); ?> <a class="tips" data-tip="<?php _e("This is the sum of the 'Cart Tax' field within your orders.", 'woocommerce'); ?>" href="#">[?]</a></th>
<th class="total_row"><?php _e( 'Total Shipping Taxes', 'woocommerce' ); ?> <a class="tips" data-tip="<?php _e("This is the sum of the 'Shipping Tax' field within your orders.", 'woocommerce'); ?>" href="#">[?]</a></th>
<th class="total_row"><?php _e( 'Total Taxes', 'woocommerce' ); ?> <a class="tips" data-tip="<?php _e("This is the sum of the 'Cart Tax' and 'Shipping Tax' fields within your orders.", 'woocommerce'); ?>" href="#">[?]</a></th>
<th class="total_row"><?php _e( 'Net profit', 'woocommerce' ); ?> <a class="tips" data-tip="<?php _e("Total sales minus shipping and tax.", 'woocommerce'); ?>" href="#">[?]</a></th>
<?php
$tax_row_labels = array_filter( array_unique( $tax_row_labels ) );
foreach ( $tax_row_labels as $label )
@ -1822,7 +1822,7 @@ function woocommerce_monthly_taxes() {
}
echo '
<td>' . __('Total', 'woocommerce') . '</td>
<td>' . __( 'Total', 'woocommerce' ) . '</td>
<td class="total_row">' . woocommerce_price( $total['gross'] ) . '</td>
<td class="total_row">' . woocommerce_price( $total['shipping'] ) . '</td>
<td class="total_row">' . woocommerce_price( $total['order_tax'] ) . '</td>
@ -1897,7 +1897,7 @@ function woocommerce_category_sales() {
?>
<form method="post" action="" class="report_filters">
<p>
<label for="show_year"><?php _e('Show:', 'woocommerce'); ?></label>
<label for="show_year"><?php _e( 'Show:', 'woocommerce' ); ?></label>
<select name="show_year" id="show_year">
<?php
for ( $i = $first_year; $i <= date( 'Y' ); $i++ )
@ -1918,7 +1918,7 @@ function woocommerce_category_sales() {
?>
</select>
<input type="submit" class="button" value="<?php _e('Show', 'woocommerce'); ?>" />
<input type="submit" class="button" value="<?php _e( 'Show', 'woocommerce' ); ?>" />
</p>
</form>
<?php
@ -1996,7 +1996,7 @@ function woocommerce_category_sales() {
<!--<tfoot>
<tr>
<th colspan="<?php echo $column_count + 2; ?>">
<a class="button export-data" href="<?php echo add_query_arg( 'export', 'true' ); ?>"><?php _e('Export data', 'woocommerce'); ?></a>
<a class="button export-data" href="<?php echo add_query_arg( 'export', 'true' ); ?>"><?php _e( 'Export data', 'woocommerce' ); ?></a>
</th>
</tr>
</tfoot>-->
@ -2089,7 +2089,7 @@ function woocommerce_category_sales() {
<div id="poststuff" class="woocommerce-reports-wrap">
<div class="woocommerce-reports-sidebar">
<div class="postbox">
<h3><span><?php _e('Top category', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Top category', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php
echo $top_cat_name . ' (' . woocommerce_price( $top_cat ) . ')';
@ -2098,7 +2098,7 @@ function woocommerce_category_sales() {
</div>
<?php if ( sizeof( $category_totals ) > 1 ) : ?>
<div class="postbox">
<h3><span><?php _e('Worst category', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Worst category', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php
echo $bottom_cat_name . ' (' . woocommerce_price( $bottom_cat ) . ')';
@ -2106,7 +2106,7 @@ function woocommerce_category_sales() {
</div>
</div>
<div class="postbox">
<h3><span><?php _e('Category sales average', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Category sales average', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php
if ( sizeof( $category_totals ) > 0 )
@ -2117,7 +2117,7 @@ function woocommerce_category_sales() {
</div>
</div>
<div class="postbox">
<h3><span><?php _e('Category sales median', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Category sales median', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php
if ( sizeof( $category_totals ) == 0 )
@ -2137,7 +2137,7 @@ function woocommerce_category_sales() {
</div>
<div class="woocommerce-reports-main">
<div class="postbox">
<h3><span><?php _e('Monthly sales by category', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Monthly sales by category', 'woocommerce' ); ?></span></h3>
<div class="inside chart">
<div id="placeholder" style="width:100%; overflow:hidden; height:568px; position:relative;"></div>
</div>
@ -2246,7 +2246,7 @@ function woocommerce_coupon_sales() {
<form method="post" action="" class="report_filters">
<p>
<label for="show_year"><?php _e('Show:', 'woocommerce'); ?></label>
<label for="show_year"><?php _e( 'Show:', 'woocommerce' ); ?></label>
<select name="show_year" id="show_year">
<?php
for ( $i = $first_year; $i <= date( 'Y' ); $i++ )
@ -2263,7 +2263,7 @@ function woocommerce_coupon_sales() {
?>
</select>
<input type="submit" class="button" value="<?php _e('Show', 'woocommerce'); ?>" />
<input type="submit" class="button" value="<?php _e( 'Show', 'woocommerce' ); ?>" />
</p>
</form>
@ -2389,7 +2389,7 @@ function woocommerce_coupon_sales() {
<div id="poststuff" class="woocommerce-reports-wrap">
<div class="woocommerce-reports-sidebar">
<div class="postbox">
<h3><span><?php _e('Top coupon', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Top coupon', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php
echo $top_coupon_name . ' (' . woocommerce_price( $top_coupon_sales ) . ')';
@ -2398,7 +2398,7 @@ function woocommerce_coupon_sales() {
</div>
<?php if ( sizeof( $coupon_totals ) > 1 ) : ?>
<div class="postbox">
<h3><span><?php _e('Worst coupon', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Worst coupon', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php
echo $worst_coupon_name . ' (' . woocommerce_price( $worst_coupon_sales ) . ')';
@ -2406,7 +2406,7 @@ function woocommerce_coupon_sales() {
</div>
</div>
<div class="postbox">
<h3><span><?php _e('Coupon sales average', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Coupon sales average', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php
echo woocommerce_price( array_sum( $coupon_totals ) / count( $coupon_totals ) );
@ -2414,7 +2414,7 @@ function woocommerce_coupon_sales() {
</div>
</div>
<div class="postbox">
<h3><span><?php _e('Coupon sales median', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Coupon sales median', 'woocommerce' ); ?></span></h3>
<div class="inside">
<p class="stat"><?php
if ( count( $median_coupon_sales ) == 2 )
@ -2435,7 +2435,7 @@ function woocommerce_coupon_sales() {
</div>
<div class="woocommerce-reports-main">
<div class="postbox">
<h3><span><?php _e('Monthly sales by coupon', 'woocommerce'); ?></span></h3>
<h3><span><?php _e( 'Monthly sales by coupon', 'woocommerce' ); ?></span></h3>
<div class="inside chart">
<div id="placeholder" style="width:100%; overflow:hidden; height:568px; position:relative;"></div>
</div>

View File

@ -227,7 +227,7 @@ if ( ! function_exists( 'woocommerce_settings' ) ) {
<?php wp_nonce_field( 'woocommerce-settings', '_wpnonce', true, true ); ?>
<?php if ( ! get_option('hide-wc-extensions-message') ) : ?>
<div id="woocommerce_extensions"><a href="<?php echo add_query_arg('hide-wc-extensions-message', 'true') ?>" class="hide">&times;</a><?php printf(__('More functionality and gateway options available via <a href="%s" target="_blank">WC official extensions</a>.', 'woocommerce'), 'http://www.woothemes.com/extensions/woocommerce-extensions/'); ?></div>
<div id="woocommerce_extensions"><a href="<?php echo add_query_arg('hide-wc-extensions-message', 'true') ?>" class="hide">&times;</a><?php printf(__( 'More functionality and gateway options available via <a href="%s" target="_blank">WC official extensions</a>.', 'woocommerce' ), 'http://www.woothemes.com/extensions/woocommerce-extensions/'); ?></div>
<?php endif; ?>
<?php
@ -286,7 +286,7 @@ if ( ! function_exists( 'woocommerce_settings' ) ) {
$current = $current_section ? '' : 'class="current"';
$links = array( '<a href="' . admin_url('admin.php?page=woocommerce_settings&tab=shipping') . '" ' . $current . '>' . __('Shipping Options', 'woocommerce') . '</a>' );
$links = array( '<a href="' . admin_url('admin.php?page=woocommerce_settings&tab=shipping') . '" ' . $current . '>' . __( 'Shipping Options', 'woocommerce' ) . '</a>' );
// Load shipping methods so we can show any global options they may have
$shipping_methods = $woocommerce->shipping->load_shipping_methods();
@ -321,7 +321,7 @@ if ( ! function_exists( 'woocommerce_settings' ) ) {
case "payment_gateways" :
include('settings/settings-payment-gateways.php');
$links = array( '<a href="#payment-gateways">'.__('Payment Gateways', 'woocommerce').'</a>' );
$links = array( '<a href="#payment-gateways">'.__( 'Payment Gateways', 'woocommerce' ).'</a>' );
foreach ( $woocommerce->payment_gateways->payment_gateways() as $gateway ) :
$title = empty( $gateway->method_title ) ? ucwords( $gateway->id ) : ucwords( $gateway->method_title );
@ -550,11 +550,11 @@ function woocommerce_admin_fields( $options ) {
<th scope="row" class="titledesc"><?php echo $value['name'] ?></th>
<td class="forminp">
<?php _e('Width', 'woocommerce'); ?> <input name="<?php echo esc_attr( $value['id'] ); ?>_width" id="<?php echo esc_attr( $value['id'] ); ?>_width" type="text" size="3" value="<?php if ( $size = get_option( $value['id'].'_width') ) echo stripslashes($size); else echo $value['std']; ?>" />
<?php _e( 'Width', 'woocommerce' ); ?> <input name="<?php echo esc_attr( $value['id'] ); ?>_width" id="<?php echo esc_attr( $value['id'] ); ?>_width" type="text" size="3" value="<?php if ( $size = get_option( $value['id'].'_width') ) echo stripslashes($size); else echo $value['std']; ?>" />
<?php _e('Height', 'woocommerce'); ?> <input name="<?php echo esc_attr( $value['id'] ); ?>_height" id="<?php echo esc_attr( $value['id'] ); ?>_height" type="text" size="3" value="<?php if ( $size = get_option( $value['id'].'_height') ) echo stripslashes($size); else echo $value['std']; ?>" />
<?php _e( 'Height', 'woocommerce' ); ?> <input name="<?php echo esc_attr( $value['id'] ); ?>_height" id="<?php echo esc_attr( $value['id'] ); ?>_height" type="text" size="3" value="<?php if ( $size = get_option( $value['id'].'_height') ) echo stripslashes($size); else echo $value['std']; ?>" />
<label><?php _e('Hard Crop', 'woocommerce'); ?> <input name="<?php echo esc_attr( $value['id'] ); ?>_crop" id="<?php echo esc_attr( $value['id'] ); ?>_crop" type="checkbox" <?php if (get_option( $value['id'].'_crop')!='') checked(get_option( $value['id'].'_crop'), 1); else checked(1); ?> /></label>
<label><?php _e( 'Hard Crop', 'woocommerce' ); ?> <input name="<?php echo esc_attr( $value['id'] ); ?>_crop" id="<?php echo esc_attr( $value['id'] ); ?>_crop" type="checkbox" <?php if (get_option( $value['id'].'_crop')!='') checked(get_option( $value['id'].'_crop'), 1); else checked(1); ?> /></label>
<?php echo $description; ?></td>
</tr><?php
@ -655,7 +655,7 @@ function woocommerce_admin_fields( $options ) {
?><tr valign="top" class="single_select_page">
<th scope="row" class="titledesc"><?php echo $value['name'] ?></th>
<td class="forminp">
<?php echo str_replace(' id=', " data-placeholder='".__('Select a page&hellip;', 'woocommerce')."' style='".$value['css']."' class='".$value['class']."' id=", wp_dropdown_pages($args)); ?> <?php echo $description; ?>
<?php echo str_replace(' id=', " data-placeholder='".__( 'Select a page&hellip;', 'woocommerce' )."' style='".$value['css']."' class='".$value['class']."' id=", wp_dropdown_pages($args)); ?> <?php echo $description; ?>
</td>
</tr><?php
break;
@ -673,7 +673,7 @@ function woocommerce_admin_fields( $options ) {
<th scope="row" class="titledesc">
<label for="<?php echo esc_attr( $value['id'] ); ?>"><?php echo $value['name']; ?></label>
</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="Country" class="chosen_select">
<?php echo $woocommerce->countries->country_dropdown_options($country, $state); ?>
</select> <?php echo $description; ?>
</td>
@ -688,7 +688,7 @@ function woocommerce_admin_fields( $options ) {
<label for="<?php echo esc_attr( $value['id'] ); ?>"><?php echo $value['name']; ?></label>
</th>
<td class="forminp">
<select multiple="multiple" name="<?php echo esc_attr( $value['id'] ); ?>[]" style="width:450px;" 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:450px;" data-placeholder="<?php _e( 'Choose countries&hellip;', 'woocommerce' ); ?>" title="Country" class="chosen_select">
<?php
if ($countries) foreach ($countries as $key=>$val) :
echo '<option value="'.$key.'" '.selected( in_array($key, $selections), true, false ).'>'.$val.'</option>';

View File

@ -19,7 +19,7 @@ function woocommerce_status() {
$tools = apply_filters( 'wc_debug_tools', array(
'clear_transients' => array(
'name' => __('Transients','woocommerce'),
'name' => __( 'Transients','woocommerce'),
'button' => __('Clear Transients','woocommerce'),
'desc' => __( 'This tool will clear the product/shop transients cache.', 'woocommerce' ),
),
@ -33,7 +33,7 @@ function woocommerce_status() {
?>
<div class="wrap woocommerce">
<div class="icon32 icon32-woocommerce-status" id="icon-woocommerce"><br /></div>
<h2><?php _e( 'System Status', 'woocommerce' ); ?> <a href="#" class="add-new-h2 debug-report"><?php _e('Generate report', 'woocommerce'); ?></a></h2>
<h2><?php _e( 'System Status', 'woocommerce' ); ?> <a href="#" class="add-new-h2 debug-report"><?php _e('Generate report', 'woocommerce' ); ?></a></h2>
<?php
if ( ! empty( $_GET['action'] ) && ! empty( $_REQUEST['_wpnonce'] ) && wp_verify_nonce( $_REQUEST['_wpnonce'], 'debug_action' ) ) {
@ -42,14 +42,14 @@ function woocommerce_status() {
case "clear_transients" :
$woocommerce->clear_product_transients();
echo '<div class="updated"><p>' . __('Product Transients Cleared', 'woocommerce') . '</p></div>';
echo '<div class="updated"><p>' . __( 'Product Transients Cleared', 'woocommerce' ) . '</p></div>';
break;
case "reset_roles" :
// Remove then re-add caps and roles
woocommerce_remove_roles();
woocommerce_init_roles();
echo '<div class="updated"><p>' . __('Roles successfully reset', 'woocommerce') . '</p></div>';
echo '<div class="updated"><p>' . __( 'Roles successfully reset', 'woocommerce' ) . '</p></div>';
break;
default:
$action = esc_attr( $_GET['action'] );
@ -58,10 +58,10 @@ function woocommerce_status() {
$return = call_user_func( $callback );
if( $return === false ) {
if( is_array( $callback ) ) {
echo '<div class="error"><p>' . sprintf( __('There was an error calling %s::%s', 'woocommerce'), get_class( $callback[0] ), $callback[1] ) . '</p></div>';
echo '<div class="error"><p>' . sprintf( __( 'There was an error calling %s::%s', 'woocommerce' ), get_class( $callback[0] ), $callback[1] ) . '</p></div>';
} else {
echo '<div class="error"><p>' . sprintf( __('There was an error calling %s', 'woocommerce'), $callback ) . '</p></div>';
echo '<div class="error"><p>' . sprintf( __( 'There was an error calling %s', 'woocommerce' ), $callback ) . '</p></div>';
}
}
}
@ -103,7 +103,7 @@ function woocommerce_status() {
if ( ! empty( $plugin_data['Name'] ) ) {
$wc_plugins[] = $plugin_data['Name'] . ' ' . __('by', 'woocommerce') . ' ' . $plugin_data['Author'] . ' ' . __('version', 'woocommerce') . ' ' . $plugin_data['Version'];
$wc_plugins[] = $plugin_data['Name'] . ' ' . __( 'by', 'woocommerce' ) . ' ' . $plugin_data['Author'] . ' ' . __( 'version', 'woocommerce' ) . ' ' . $plugin_data['Version'];
}
}
@ -144,39 +144,39 @@ function woocommerce_status() {
<tbody>
<?php
$check_pages = array(
__('Shop base page', 'woocommerce') => array(
__( 'Shop base page', 'woocommerce' ) => array(
'option' => 'woocommerce_shop_page_id',
'shortcode' => ''
),
__('Cart Page', 'woocommerce') => array(
__( 'Cart Page', 'woocommerce' ) => array(
'option' => 'woocommerce_cart_page_id',
'shortcode' => '[woocommerce_cart]'
),
__('Checkout Page', 'woocommerce') => array(
__( 'Checkout Page', 'woocommerce' ) => array(
'option' => 'woocommerce_checkout_page_id',
'shortcode' => '[woocommerce_checkout]'
),
__('Pay Page', 'woocommerce') => array(
__( 'Pay Page', 'woocommerce' ) => array(
'option' => 'woocommerce_pay_page_id',
'shortcode' => '[woocommerce_pay]'
),
__('Thanks Page', 'woocommerce') => array(
__( 'Thanks Page', 'woocommerce' ) => array(
'option' => 'woocommerce_thanks_page_id',
'shortcode' => '[woocommerce_thankyou]'
),
__('My Account Page', 'woocommerce') => array(
__( 'My Account Page', 'woocommerce' ) => array(
'option' => 'woocommerce_myaccount_page_id',
'shortcode' => '[woocommerce_my_account]'
),
__('Edit Address Page', 'woocommerce') => array(
__( 'Edit Address Page', 'woocommerce' ) => array(
'option' => 'woocommerce_edit_address_page_id',
'shortcode' => '[woocommerce_edit_address]'
),
__('View Order Page', 'woocommerce') => array(
__( 'View Order Page', 'woocommerce' ) => array(
'option' => 'woocommerce_view_order_page_id',
'shortcode' => '[woocommerce_view_order]'
),
__('Change Password Page', 'woocommerce') => array(
__( 'Change Password Page', 'woocommerce' ) => array(
'option' => 'woocommerce_change_password_page_id',
'shortcode' => '[woocommerce_change_password]'
)
@ -196,7 +196,7 @@ function woocommerce_status() {
// Page ID check
if ( ! $page_id ) {
echo '<mark class="error">' . __('Page not set', 'woocommerce') . '</mark>';
echo '<mark class="error">' . __( 'Page not set', 'woocommerce' ) . '</mark>';
$error = true;
} else {
@ -206,7 +206,7 @@ function woocommerce_status() {
if ( ! strstr( $page->post_content, $values['shortcode'] ) ) {
echo '<mark class="error">' . sprintf(__('Page does not contain the shortcode: %s', 'woocommerce'), $values['shortcode'] ) . '</mark>';
echo '<mark class="error">' . sprintf(__( 'Page does not contain the shortcode: %s', 'woocommerce' ), $values['shortcode'] ) . '</mark>';
$error = true;
}
@ -284,7 +284,7 @@ function woocommerce_status() {
$memory = woocommerce_let_to_num( WP_MEMORY_LIMIT );
if ( $memory < 67108864 ) {
echo '<mark class="error">' . sprintf( __('%s - We recommend setting memory to at least 64MB. See: <a href="%s">Increasing memory allocated to PHP</a>', 'woocommerce'), wp_convert_bytes_to_hr( $memory ), 'http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP' ) . '</mark>';
echo '<mark class="error">' . sprintf( __( '%s - We recommend setting memory to at least 64MB. See: <a href="%s">Increasing memory allocated to PHP</a>', 'woocommerce' ), wp_convert_bytes_to_hr( $memory ), 'http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP' ) . '</mark>';
} else {
echo '<mark class="yes">' . wp_convert_bytes_to_hr( $memory ) . '</mark>';
}
@ -292,15 +292,15 @@ function woocommerce_status() {
</tr>
<tr>
<td><?php _e('WP Debug Mode','woocommerce')?></td>
<td><?php if ( defined('WP_DEBUG') && WP_DEBUG ) echo '<mark class="yes">' . __('Yes', 'woocommerce') . '</mark>'; else echo '<mark class="no">' . __('No', 'woocommerce') . '</mark>'; ?></td>
<td><?php if ( defined('WP_DEBUG') && WP_DEBUG ) echo '<mark class="yes">' . __( 'Yes', 'woocommerce' ) . '</mark>'; else echo '<mark class="no">' . __( 'No', 'woocommerce' ) . '</mark>'; ?></td>
</tr>
<tr>
<td><?php _e('WC Logging','woocommerce')?></td>
<td><?php
if ( @fopen( $woocommerce->plugin_path() . '/logs/paypal.txt', 'a' ) )
echo '<mark class="yes">' . __('Log directory is writable.', 'woocommerce') . '</mark>';
echo '<mark class="yes">' . __( 'Log directory is writable.', 'woocommerce' ) . '</mark>';
else
echo '<mark class="error">' . __('Log directory (<code>woocommerce/logs/</code>) is not writable. Logging will not be possible.', 'woocommerce') . '</mark>';
echo '<mark class="error">' . __( 'Log directory (<code>woocommerce/logs/</code>) is not writable. Logging will not be possible.', 'woocommerce' ) . '</mark>';
?></td>
</tr>
</tbody>
@ -315,23 +315,23 @@ function woocommerce_status() {
$posting = array();
// fsockopen/cURL
$posting['fsockopen_curl']['name'] = __('fsockopen/cURL','woocommerce');
$posting['fsockopen_curl']['name'] = __( 'fsockopen/cURL','woocommerce');
if ( function_exists( 'fsockopen' ) || function_exists( 'curl_init' ) ) {
if ( function_exists( 'fsockopen' ) && function_exists( 'curl_init' )) {
$posting['fsockopen_curl']['note'] = __('Your server has fsockopen and cURL enabled.', 'woocommerce');
$posting['fsockopen_curl']['note'] = __('Your server has fsockopen and cURL enabled.', 'woocommerce' );
} elseif ( function_exists( 'fsockopen' )) {
$posting['fsockopen_curl']['note'] = __('Your server has fsockopen enabled, cURL is disabled.', 'woocommerce');
$posting['fsockopen_curl']['note'] = __( 'Your server has fsockopen enabled, cURL is disabled.', 'woocommerce' );
} else {
$posting['fsockopen_curl']['note'] = __('Your server has cURL enabled, fsockopen is disabled.', 'woocommerce');
$posting['fsockopen_curl']['note'] = __( 'Your server has cURL enabled, fsockopen is disabled.', 'woocommerce' );
}
$posting['fsockopen_curl']['success'] = true;
} else {
$posting['fsockopen_curl']['note'] = __('Your server does not have fsockopen or cURL enabled - PayPal IPN and other scripts which communicate with other servers will not work. Contact your hosting provider.', 'woocommerce'). '</mark>';
$posting['fsockopen_curl']['note'] = __( 'Your server does not have fsockopen or cURL enabled - PayPal IPN and other scripts which communicate with other servers will not work. Contact your hosting provider.', 'woocommerce' ). '</mark>';
$posting['fsockopen_curl']['success'] = false;
}
// WP Remote Post Check
$posting['wp_remote_post']['name'] = __('WP Remote Post Check','woocommerce');
$posting['wp_remote_post']['name'] = __( 'WP Remote Post Check','woocommerce');
$request['cmd'] = '_notify-validate';
$params = array(
'sslverify' => false,
@ -342,13 +342,13 @@ function woocommerce_status() {
$response = wp_remote_post( 'https://www.paypal.com/cgi-bin/webscr', $params );
if ( ! is_wp_error( $response ) && $response['response']['code'] >= 200 && $response['response']['code'] < 300 ) {
$posting['wp_remote_post']['note'] = __('wp_remote_post() was successful - PayPal IPN is working.', 'woocommerce');
$posting['wp_remote_post']['note'] = __('wp_remote_post() was successful - PayPal IPN is working.', 'woocommerce' );
$posting['wp_remote_post']['success'] = true;
} elseif ( is_wp_error( $response ) ) {
$posting['wp_remote_post']['note'] = __('wp_remote_post() failed. PayPal IPN won\'t work with your server. Contact your hosting provider. Error:', 'woocommerce') . ' ' . $response->get_error_message();
$posting['wp_remote_post']['note'] = __( 'wp_remote_post() failed. PayPal IPN won\'t work with your server. Contact your hosting provider. Error:', 'woocommerce' ) . ' ' . $response->get_error_message();
$posting['wp_remote_post']['success'] = false;
} else {
$posting['wp_remote_post']['note'] = __('wp_remote_post() failed. PayPal IPN may not work with your server.', 'woocommerce');
$posting['wp_remote_post']['note'] = __( 'wp_remote_post() failed. PayPal IPN may not work with your server.', 'woocommerce' );
$posting['wp_remote_post']['success'] = false;
}

View File

@ -22,12 +22,12 @@ function woocommerce_add_category_thumbnail_field() {
global $woocommerce;
?>
<div class="form-field">
<label><?php _e('Thumbnail', 'woocommerce'); ?></label>
<label><?php _e( 'Thumbnail', 'woocommerce' ); ?></label>
<div id="product_cat_thumbnail" style="float:left;margin-right:10px;"><img src="<?php echo woocommerce_placeholder_img_src(); ?>" width="60px" height="60px" /></div>
<div style="line-height:60px;">
<input type="hidden" id="product_cat_thumbnail_id" name="product_cat_thumbnail_id" />
<button type="submit" class="upload_image_button button"><?php _e('Upload/Add image', 'woocommerce'); ?></button>
<button type="submit" class="remove_image_button button"><?php _e('Remove image', 'woocommerce'); ?></button>
<button type="submit" class="upload_image_button button"><?php _e( 'Upload/Add image', 'woocommerce' ); ?></button>
<button type="submit" class="remove_image_button button"><?php _e( 'Remove image', 'woocommerce' ); ?></button>
</div>
<script type="text/javascript">
@ -103,13 +103,13 @@ function woocommerce_edit_category_thumbnail_field( $term, $taxonomy ) {
endif;
?>
<tr class="form-field">
<th scope="row" valign="top"><label><?php _e('Thumbnail', 'woocommerce'); ?></label></th>
<th scope="row" valign="top"><label><?php _e( 'Thumbnail', 'woocommerce' ); ?></label></th>
<td>
<div id="product_cat_thumbnail" style="float:left;margin-right:10px;"><img src="<?php echo $image; ?>" width="60px" height="60px" /></div>
<div style="line-height:60px;">
<input type="hidden" id="product_cat_thumbnail_id" name="product_cat_thumbnail_id" value="<?php echo $thumbnail_id; ?>" />
<button type="submit" class="upload_image_button button"><?php _e('Upload/Add image', 'woocommerce'); ?></button>
<button type="submit" class="remove_image_button button"><?php _e('Remove image', 'woocommerce'); ?></button>
<button type="submit" class="upload_image_button button"><?php _e( 'Upload/Add image', 'woocommerce' ); ?></button>
<button type="submit" class="remove_image_button button"><?php _e( 'Remove image', 'woocommerce' ); ?></button>
</div>
<script type="text/javascript">
@ -193,7 +193,7 @@ add_action( 'product_cat_pre_add_form', 'woocommerce_product_cat_description' );
*/
function woocommerce_shipping_class_description() {
echo wpautop(__('Shipping classes can be used to group products of similar type. These groups can then be used by certain shipping methods to provide different rates to different products.', 'woocommerce'));
echo wpautop(__( 'Shipping classes can be used to group products of similar type. These groups can then be used by certain shipping methods to provide different rates to different products.', 'woocommerce' ));
}
@ -253,7 +253,7 @@ add_filter( 'edit_posts_per_page', 'woocommerce_fix_edit_posts_per_page', 1, 2 )
function woocommerce_product_cat_columns( $columns ) {
$new_columns = array();
$new_columns['cb'] = $columns['cb'];
$new_columns['thumb'] = __('Image', 'woocommerce');
$new_columns['thumb'] = __( 'Image', 'woocommerce' );
unset( $columns['cb'] );
@ -321,7 +321,7 @@ add_filter( 'manage_edit-product_shipping_class_columns', 'woocommerce_shipping_
*/
function woocommerce_shipping_class_column( $columns, $column, $id ) {
if ( $column == 'configure' )
$columns .= '<a href="'. admin_url( 'edit-tags.php?action=edit&taxonomy=product_shipping_class&tag_ID='. $id .'&post_type=product' ) .'" class="button alignright">'.__('Configure shipping class', 'woocommerce').'</a>';
$columns .= '<a href="'. admin_url( 'edit-tags.php?action=edit&taxonomy=product_shipping_class&tag_ID='. $id .'&post_type=product' ) .'" class="button alignright">'.__( 'Configure shipping class', 'woocommerce' ).'</a>';
return $columns;
}

View File

@ -23,10 +23,10 @@ function woocommerce_user_columns( $columns ) {
if ( ! current_user_can( 'manage_woocommerce' ) )
return $columns;
$columns['woocommerce_billing_address'] = __('Billing Address', 'woocommerce');
$columns['woocommerce_shipping_address'] = __('Shipping Address', 'woocommerce');
$columns['woocommerce_paying_customer'] = __('Paying Customer?', 'woocommerce');
$columns['woocommerce_order_count'] = __('Orders', 'woocommerce');
$columns['woocommerce_billing_address'] = __( 'Billing Address', 'woocommerce' );
$columns['woocommerce_shipping_address'] = __( 'Shipping Address', 'woocommerce' );
$columns['woocommerce_paying_customer'] = __( 'Paying Customer?', 'woocommerce' );
$columns['woocommerce_order_count'] = __( 'Orders', 'woocommerce' );
return $columns;
}
@ -73,7 +73,7 @@ function woocommerce_user_column_values( $value, $column_name, $user_id ) {
$formatted_address = $woocommerce->countries->get_formatted_address( $address );
if (!$formatted_address) $value = __('N/A', 'woocommerce'); else $value = $formatted_address;
if (!$formatted_address) $value = __( 'N/A', 'woocommerce' ); else $value = $formatted_address;
$value = wpautop($value);
break;
@ -92,7 +92,7 @@ function woocommerce_user_column_values( $value, $column_name, $user_id ) {
$formatted_address = $woocommerce->countries->get_formatted_address( $address );
if (!$formatted_address) $value = __('N/A', 'woocommerce'); else $value = $formatted_address;
if (!$formatted_address) $value = __( 'N/A', 'woocommerce' ); else $value = $formatted_address;
$value = wpautop($value);
break;
@ -120,92 +120,92 @@ add_action( 'manage_users_custom_column', 'woocommerce_user_column_values', 10,
function woocommerce_get_customer_meta_fields() {
$show_fields = apply_filters('woocommerce_customer_meta_fields', array(
'billing' => array(
'title' => __('Customer Billing Address', 'woocommerce'),
'title' => __( 'Customer Billing Address', 'woocommerce' ),
'fields' => array(
'billing_first_name' => array(
'label' => __('First name', 'woocommerce'),
'label' => __( 'First name', 'woocommerce' ),
'description' => ''
),
'billing_last_name' => array(
'label' => __('Last name', 'woocommerce'),
'label' => __( 'Last name', 'woocommerce' ),
'description' => ''
),
'billing_company' => array(
'label' => __('Company', 'woocommerce'),
'label' => __( 'Company', 'woocommerce' ),
'description' => ''
),
'billing_address_1' => array(
'label' => __('Address 1', 'woocommerce'),
'label' => __( 'Address 1', 'woocommerce' ),
'description' => ''
),
'billing_address_2' => array(
'label' => __('Address 2', 'woocommerce'),
'label' => __( 'Address 2', 'woocommerce' ),
'description' => ''
),
'billing_city' => array(
'label' => __('City', 'woocommerce'),
'label' => __( 'City', 'woocommerce' ),
'description' => ''
),
'billing_postcode' => array(
'label' => __('Postcode', 'woocommerce'),
'label' => __( 'Postcode', 'woocommerce' ),
'description' => ''
),
'billing_state' => array(
'label' => __('State/County', 'woocommerce'),
'description' => __('Country or state code', 'woocommerce'),
'label' => __( 'State/County', 'woocommerce' ),
'description' => __( 'Country or state code', 'woocommerce' ),
),
'billing_country' => array(
'label' => __('Country', 'woocommerce'),
'description' => __('2 letter Country code', 'woocommerce'),
'label' => __( 'Country', 'woocommerce' ),
'description' => __( '2 letter Country code', 'woocommerce' ),
),
'billing_phone' => array(
'label' => __('Telephone', 'woocommerce'),
'label' => __( 'Telephone', 'woocommerce' ),
'description' => ''
),
'billing_email' => array(
'label' => __('Email', 'woocommerce'),
'label' => __( 'Email', 'woocommerce' ),
'description' => ''
)
)
),
'shipping' => array(
'title' => __('Customer Shipping Address', 'woocommerce'),
'title' => __( 'Customer Shipping Address', 'woocommerce' ),
'fields' => array(
'shipping_first_name' => array(
'label' => __('First name', 'woocommerce'),
'label' => __( 'First name', 'woocommerce' ),
'description' => ''
),
'shipping_last_name' => array(
'label' => __('Last name', 'woocommerce'),
'label' => __( 'Last name', 'woocommerce' ),
'description' => ''
),
'shipping_company' => array(
'label' => __('Company', 'woocommerce'),
'label' => __( 'Company', 'woocommerce' ),
'description' => ''
),
'shipping_address_1' => array(
'label' => __('Address 1', 'woocommerce'),
'label' => __( 'Address 1', 'woocommerce' ),
'description' => ''
),
'shipping_address_2' => array(
'label' => __('Address 2', 'woocommerce'),
'label' => __( 'Address 2', 'woocommerce' ),
'description' => ''
),
'shipping_city' => array(
'label' => __('City', 'woocommerce'),
'label' => __( 'City', 'woocommerce' ),
'description' => ''
),
'shipping_postcode' => array(
'label' => __('Postcode', 'woocommerce'),
'label' => __( 'Postcode', 'woocommerce' ),
'description' => ''
),
'shipping_state' => array(
'label' => __('State/County', 'woocommerce'),
'description' => __('State/County or state code', 'woocommerce')
'label' => __( 'State/County', 'woocommerce' ),
'description' => __( 'State/County or state code', 'woocommerce' )
),
'shipping_country' => array(
'label' => __('Country', 'woocommerce'),
'description' => __('2 letter Country code', 'woocommerce')
'label' => __( 'Country', 'woocommerce' ),
'description' => __( '2 letter Country code', 'woocommerce' )
)
)
)

View File

@ -432,7 +432,7 @@ class WC_Cart {
* Check the stock for this item individually
*/
if ( ! $_product->is_in_stock() || ! $_product->has_enough_stock( $values['quantity'] ) ) {
$error->add( 'out-of-stock', sprintf(__('Sorry, we do not have enough "%s" in stock to fulfill your order (%s in stock). Please edit your cart and try again. We apologise for any inconvenience caused.', 'woocommerce'), $_product->get_title(), $_product->stock ) );
$error->add( 'out-of-stock', sprintf(__( 'Sorry, we do not have enough "%s" in stock to fulfill your order (%s in stock). Please edit your cart and try again. We apologise for any inconvenience caused.', 'woocommerce' ), $_product->get_title(), $_product->stock ) );
return $error;
}
@ -442,14 +442,14 @@ class WC_Cart {
if ( $values['variation_id'] && $_product->variation_has_stock && isset( $product_qty_in_cart[$values['variation_id']] ) ) {
if ( ! $_product->has_enough_stock( $product_qty_in_cart[$values['variation_id']] ) ) {
$error->add( 'out-of-stock', sprintf(__('Sorry, we do not have enough "%s" in stock to fulfill your order (%s in stock). Please edit your cart and try again. We apologise for any inconvenience caused.', 'woocommerce'), $_product->get_title(), $_product->stock ) );
$error->add( 'out-of-stock', sprintf(__( 'Sorry, we do not have enough "%s" in stock to fulfill your order (%s in stock). Please edit your cart and try again. We apologise for any inconvenience caused.', 'woocommerce' ), $_product->get_title(), $_product->stock ) );
return $error;
}
} elseif ( isset( $product_qty_in_cart[$values['product_id']] ) ) {
if ( ! $_product->has_enough_stock( $product_qty_in_cart[$values['product_id']] ) ) {
$error->add( 'out-of-stock', sprintf(__('Sorry, we do not have enough "%s" in stock to fulfill your order (%s in stock). Please edit your cart and try again. We apologise for any inconvenience caused.', 'woocommerce'), $_product->get_title(), $_product->stock ) );
$error->add( 'out-of-stock', sprintf(__( 'Sorry, we do not have enough "%s" in stock to fulfill your order (%s in stock). Please edit your cart and try again. We apologise for any inconvenience caused.', 'woocommerce' ), $_product->get_title(), $_product->stock ) );
return $error;
}
@ -460,7 +460,7 @@ class WC_Cart {
*/
} else {
if ( ! $_product->is_in_stock() ) {
$error->add( 'out-of-stock', sprintf(__('Sorry, we do not have enough "%s" in stock to fulfill your order. Please edit your cart and try again. We apologise for any inconvenience caused.', 'woocommerce'), $_product->get_title() ) );
$error->add( 'out-of-stock', sprintf(__( 'Sorry, we do not have enough "%s" in stock to fulfill your order. Please edit your cart and try again. We apologise for any inconvenience caused.', 'woocommerce' ), $_product->get_title() ) );
return $error;
}
}
@ -741,19 +741,19 @@ class WC_Cart {
// Check product is_purchasable
if ( ! $product_data->is_purchasable() ) {
$woocommerce->add_error( __('Sorry, this product cannot be purchased.', 'woocommerce') );
$woocommerce->add_error( __( 'Sorry, this product cannot be purchased.', 'woocommerce' ) );
return false;
}
// Stock check - only check if we're managing stock and backorders are not allowed
if ( ! $product_data->is_in_stock() ) {
$woocommerce->add_error( sprintf( __('You cannot add &quot;%s&quot; to the cart because the product is out of stock.', 'woocommerce'), $product_data->get_title() ) );
$woocommerce->add_error( sprintf( __( 'You cannot add &quot;%s&quot; to the cart because the product is out of stock.', 'woocommerce' ), $product_data->get_title() ) );
return false;
} elseif ( ! $product_data->has_enough_stock( $quantity ) ) {
$woocommerce->add_error( sprintf(__('You cannot add that amount of &quot;%s&quot; to the cart because there is not enough stock (%s remaining).', 'woocommerce'), $product_data->get_title(), $product_data->get_stock_quantity() ));
$woocommerce->add_error( sprintf(__( 'You cannot add that amount of &quot;%s&quot; to the cart because there is not enough stock (%s remaining).', 'woocommerce' ), $product_data->get_title(), $product_data->get_stock_quantity() ));
return false;
@ -765,7 +765,7 @@ class WC_Cart {
// If its greater than 1, its already in the cart
if ( $in_cart_quantity > 1 ) {
$woocommerce->add_error( sprintf('<a href="%s" class="button">%s</a> %s', get_permalink(woocommerce_get_page_id('cart')), __('View Cart &rarr;', 'woocommerce'), __('You already have this item in your cart.', 'woocommerce') ) );
$woocommerce->add_error( sprintf('<a href="%s" class="button">%s</a> %s', get_permalink(woocommerce_get_page_id('cart')), __( 'View Cart &rarr;', 'woocommerce' ), __( 'You already have this item in your cart.', 'woocommerce' ) ) );
return false;
}
}
@ -779,7 +779,7 @@ class WC_Cart {
if ( $variation_id && $product_data->variation_has_stock ) {
if ( isset( $product_qty_in_cart[ $variation_id ] ) && ! $product_data->has_enough_stock( $product_qty_in_cart[ $variation_id ] + $quantity ) ) {
$woocommerce->add_error( sprintf(__('<a href="%s" class="button">%s</a> You cannot add that amount to the cart &mdash; we have %s in stock and you already have %s in your cart.', 'woocommerce'), get_permalink(woocommerce_get_page_id('cart')), __('View Cart &rarr;', 'woocommerce'), $product_data->get_stock_quantity(), $product_qty_in_cart[ $variation_id ] ));
$woocommerce->add_error( sprintf(__( '<a href="%s" class="button">%s</a> You cannot add that amount to the cart &mdash; we have %s in stock and you already have %s in your cart.', 'woocommerce' ), get_permalink(woocommerce_get_page_id('cart')), __( 'View Cart &rarr;', 'woocommerce' ), $product_data->get_stock_quantity(), $product_qty_in_cart[ $variation_id ] ));
return false;
}
@ -787,7 +787,7 @@ class WC_Cart {
} else {
if ( isset( $product_qty_in_cart[ $product_id ] ) && ! $product_data->has_enough_stock( $product_qty_in_cart[ $product_id ] + $quantity ) ) {
$woocommerce->add_error( sprintf(__('<a href="%s" class="button">%s</a> You cannot add that amount to the cart &mdash; we have %s in stock and you already have %s in your cart.', 'woocommerce'), get_permalink(woocommerce_get_page_id('cart')), __('View Cart &rarr;', 'woocommerce'), $product_data->get_stock_quantity(), $product_qty_in_cart[ $product_id ] ));
$woocommerce->add_error( sprintf(__( '<a href="%s" class="button">%s</a> You cannot add that amount to the cart &mdash; we have %s in stock and you already have %s in your cart.', 'woocommerce' ), get_permalink(woocommerce_get_page_id('cart')), __( 'View Cart &rarr;', 'woocommerce' ), $product_data->get_stock_quantity(), $product_qty_in_cart[ $product_id ] ));
return false;
}
@ -1579,7 +1579,7 @@ class WC_Cart {
}
} else {
return __('Free!', 'woocommerce');
return __( 'Free!', 'woocommerce' );
}
}
}
@ -1591,7 +1591,7 @@ class WC_Cart {
*/
function get_cart_shipping_title() {
if ( isset( $this->shipping_label ) ) {
return __('via', 'woocommerce') . ' ' . $this->shipping_label;
return __( 'via', 'woocommerce' ) . ' ' . $this->shipping_label;
}
return false;
}
@ -1629,13 +1629,13 @@ class WC_Cart {
// Check it can be used with cart
$return = $the_coupon->is_valid();
if ( ! $return || is_wp_error( $return ) ) {
$woocommerce->add_error( is_wp_error( $return ) ? $return->get_error_message() : __('Invalid coupon.', 'woocommerce') );
$woocommerce->add_error( is_wp_error( $return ) ? $return->get_error_message() : __( 'Invalid coupon.', 'woocommerce' ) );
return false;
}
// Check if applied
if ( $woocommerce->cart->has_discount( $coupon_code ) ) {
$woocommerce->add_error( __('Discount code already applied!', 'woocommerce') );
$woocommerce->add_error( __( 'Discount code already applied!', 'woocommerce' ) );
return false;
}
@ -1655,14 +1655,14 @@ class WC_Cart {
$this->set_session();
$woocommerce->add_message( __('Discount code applied successfully.', 'woocommerce') );
$woocommerce->add_message( __( 'Discount code applied successfully.', 'woocommerce' ) );
do_action( 'woocommerce_applied_coupon', $coupon_code );
return true;
} else {
$woocommerce->add_error( __('Coupon does not exist!', 'woocommerce') );
$woocommerce->add_error( __( 'Coupon does not exist!', 'woocommerce' ) );
return false;
}
return false;

View File

@ -71,7 +71,7 @@ class WC_Checkout {
'order_comments' => array(
'type' => 'textarea',
'class' => array('notes'),
'label' => __('Order Notes', 'woocommerce'),
'label' => __( 'Order Notes', 'woocommerce' ),
'placeholder' => _x('Notes about your order, e.g. special notes for delivery.', 'placeholder', 'woocommerce')
)
);
@ -182,7 +182,7 @@ class WC_Checkout {
$this->posted[ $key ] = apply_filters( 'woocommerce_process_checkout_field_' . $key, $this->posted[$key] );
// Validation: Required fields
if ( isset( $field['required'] ) && $field['required'] && empty( $this->posted[$key] ) ) $woocommerce->add_error( '<strong>' . $field['label'] . '</strong> ' . __('is a required field.', 'woocommerce') );
if ( isset( $field['required'] ) && $field['required'] && empty( $this->posted[$key] ) ) $woocommerce->add_error( '<strong>' . $field['label'] . '</strong> ' . __( 'is a required field.', 'woocommerce' ) );
if ( ! empty( $this->posted[ $key ] ) ) {
@ -195,7 +195,7 @@ class WC_Checkout {
$this->posted[ $key ] = strtoupper( str_replace( ' ', '', $this->posted[ $key ] ) );
if ( ! $validation->is_postcode( $this->posted[ $key ], $_POST[ $validate_against ] ) )
$woocommerce->add_error( '<strong>' . $field['label'] . '</strong> ' . sprintf( __('(%s) is not a valid postcode/ZIP.', 'woocommerce'), $this->posted[ $key ] ) );
$woocommerce->add_error( '<strong>' . $field['label'] . '</strong> ' . sprintf( __( '(%s) is not a valid postcode/ZIP.', 'woocommerce' ), $this->posted[ $key ] ) );
else
$this->posted[ $key ] = $validation->format_postcode( $this->posted[$key], $_POST[ $validate_against ] );
@ -216,7 +216,7 @@ class WC_Checkout {
// Only validate if the country has specific state options
if ( $valid_states && sizeof( $valid_states ) > 0 )
if ( ! in_array( $this->posted[ $key ], array_keys( $valid_states ) ) )
$woocommerce->add_error( '<strong>' . $field['label'] . '</strong> ' . __('is not valid. Please enter one of the following:', 'woocommerce') . ' ' . implode( ', ', $valid_states ) );
$woocommerce->add_error( '<strong>' . $field['label'] . '</strong> ' . __( 'is not valid. Please enter one of the following:', 'woocommerce' ) . ' ' . implode( ', ', $valid_states ) );
break;
case "billing_phone" :
@ -224,14 +224,14 @@ class WC_Checkout {
$this->posted[ $key ] = $validation->format_phone( $this->posted[ $key ] );
if ( ! $validation->is_phone( $this->posted[ $key ] ) )
$woocommerce->add_error( '<strong>' . $field['label'] . '</strong> ' . __('is not a valid number.', 'woocommerce') );
$woocommerce->add_error( '<strong>' . $field['label'] . '</strong> ' . __( 'is not a valid number.', 'woocommerce' ) );
break;
case "billing_email" :
$this->posted[ $key ] = strtolower( $this->posted[$key] );
if ( ! $validation->is_email( $this->posted[$key] ) )
$woocommerce->add_error( '<strong>' . $field['label'] . '</strong> ' . __('is not a valid email address.', 'woocommerce') );
$woocommerce->add_error( '<strong>' . $field['label'] . '</strong> ' . __( 'is not a valid email address.', 'woocommerce' ) );
break;
}
}
@ -291,10 +291,10 @@ class WC_Checkout {
// Check the username
if ( ! validate_username( $this->posted['account_username'] ) )
$woocommerce->add_error( __('Invalid email/username.', 'woocommerce') );
$woocommerce->add_error( __( 'Invalid email/username.', 'woocommerce' ) );
elseif ( username_exists( $this->posted['account_username'] ) )
$woocommerce->add_error( __('An account is already registered with that username. Please choose another.', 'woocommerce') );
$woocommerce->add_error( __( 'An account is already registered with that username. Please choose another.', 'woocommerce' ) );
} else {
@ -304,10 +304,10 @@ class WC_Checkout {
// Validate passwords
if ( empty($this->posted['account_password']) )
$woocommerce->add_error( __('Please enter an account password.', 'woocommerce') );
$woocommerce->add_error( __( 'Please enter an account password.', 'woocommerce' ) );
if ( $this->posted['account_password-2'] !== $this->posted['account_password'] )
$woocommerce->add_error( __('Passwords do not match.', 'woocommerce') );
$woocommerce->add_error( __( 'Passwords do not match.', 'woocommerce' ) );
// Check the e-mail address
if ( email_exists( $this->posted['billing_email'] ) )
@ -365,7 +365,7 @@ class WC_Checkout {
$user_id = wp_create_user( $this->posted['account_username'], $user_pass, $this->posted['billing_email'] );
if ( ! $user_id )
throw new MyException( '<strong>' . __('ERROR', 'woocommerce') . '</strong>: ' . __('Couldn&#8217;t register you&hellip; please contact us if you continue to have problems.', 'woocommerce') );
throw new MyException( '<strong>' . __( 'ERROR', 'woocommerce' ) . '</strong>: ' . __( 'Couldn&#8217;t register you&hellip; please contact us if you continue to have problems.', 'woocommerce' ) );
// Change role
wp_update_user( array('ID' => $user_id, 'role' => 'customer') ) ;

File diff suppressed because it is too large Load Diff

View File

@ -777,12 +777,12 @@ class WC_Order {
endif;
$shipping .= sprintf( __('&nbsp;<small>%svia %s</small>', 'woocommerce'), $tax_text, $this->get_shipping_method() );
$shipping .= sprintf( __( '&nbsp;<small>%svia %s</small>', 'woocommerce' ), $tax_text, $this->get_shipping_method() );
elseif ( $this->get_shipping_method() ) :
$shipping = $this->get_shipping_method();
else :
$shipping = __('Free!', 'woocommerce');
$shipping = __( 'Free!', 'woocommerce' );
endif;
return apply_filters( 'woocommerce_order_shipping_to_display', $shipping, $this );
@ -1128,8 +1128,8 @@ class WC_Order {
function add_order_note( $note, $is_customer_note = 0 ) {
$comment_post_ID = $this->id;
$comment_author = __('WooCommerce', 'woocommerce');
$comment_author_email = strtolower( __('WooCommerce', 'woocommerce') ) . '@' . str_replace('www.', '', $_SERVER['HTTP_HOST']);
$comment_author = __( 'WooCommerce', 'woocommerce' );
$comment_author_email = strtolower( __( 'WooCommerce', 'woocommerce' ) ) . '@' . str_replace('www.', '', $_SERVER['HTTP_HOST']);
$comment_author_url = '';
$comment_content = $note;
$comment_agent = 'WooCommerce';
@ -1175,7 +1175,7 @@ class WC_Order {
do_action( 'woocommerce_order_status_' . $this->status . '_to_' . $new_status->slug, $this->id );
do_action( 'woocommerce_order_status_changed', $this->id, $this->status, $new_status->slug );
$this->add_order_note( $note . sprintf( __('Order status changed from %s to %s.', 'woocommerce'), __( $old_status->name, 'woocommerce' ), __( $new_status->name, 'woocommerce' ) ) );
$this->add_order_note( $note . sprintf( __( 'Order status changed from %s to %s.', 'woocommerce' ), __( $old_status->name, 'woocommerce' ), __( $new_status->name, 'woocommerce' ) ) );
// Record the completed date of the order
if ( $new_status->slug == 'completed' )
@ -1394,7 +1394,7 @@ class WC_Order {
$new_quantity = $_product->reduce_stock( $item['qty'] );
$this->add_order_note( sprintf( __('Item #%s stock reduced from %s to %s.', 'woocommerce'), $item['id'], $old_stock, $new_quantity) );
$this->add_order_note( sprintf( __( 'Item #%s stock reduced from %s to %s.', 'woocommerce' ), $item['id'], $old_stock, $new_quantity) );
$this->send_stock_notifications( $_product, $new_quantity, $item['qty'] );
@ -1406,7 +1406,7 @@ class WC_Order {
do_action( 'woocommerce_reduce_order_stock', $this );
$this->add_order_note( __('Order item stock reduced successfully.', 'woocommerce') );
$this->add_order_note( __( 'Order item stock reduced successfully.', 'woocommerce' ) );
}
}

View File

@ -668,7 +668,7 @@ class WC_Product {
if (!$this->managing_stock()) :
if (!$this->is_in_stock()) :
$availability = __('Out of stock', 'woocommerce');
$availability = __( 'Out of stock', 'woocommerce' );
$class = 'out-of-stock';
endif;
else :
@ -679,45 +679,45 @@ class WC_Product {
switch ( $format_option ) {
case 'no_amount' :
$format = __('In stock', 'woocommerce');
$format = __( 'In stock', 'woocommerce' );
break;
case 'low_amount' :
$low_amount = get_option( 'woocommerce_notify_low_stock_amount' );
$format = ( $this->get_total_stock() <= $low_amount ) ? __('Only %s left in stock', 'woocommerce') : __('In stock', 'woocommerce');
$format = ( $this->get_total_stock() <= $low_amount ) ? __( 'Only %s left in stock', 'woocommerce' ) : __( 'In stock', 'woocommerce' );
break;
default :
$format = __('%s in stock', 'woocommerce');
$format = __( '%s in stock', 'woocommerce' );
break;
}
$availability = sprintf( $format, $this->stock );
if ($this->backorders_allowed() && $this->backorders_require_notification()) :
$availability .= ' ' . __('(backorders allowed)', 'woocommerce');
$availability .= ' ' . __( '(backorders allowed)', 'woocommerce' );
endif;
else :
if ($this->backorders_allowed()) :
if ($this->backorders_require_notification()) :
$availability = __('Available on backorder', 'woocommerce');
$availability = __( 'Available on backorder', 'woocommerce' );
$class = 'available-on-backorder';
else :
$availability = __('In stock', 'woocommerce');
$availability = __( 'In stock', 'woocommerce' );
endif;
else :
$availability = __('Out of stock', 'woocommerce');
$availability = __( 'Out of stock', 'woocommerce' );
$class = 'out-of-stock';
endif;
endif;
else :
if ($this->backorders_allowed()) :
$availability = __('Available on backorder', 'woocommerce');
$availability = __( 'Available on backorder', 'woocommerce' );
$class = 'available-on-backorder';
else :
$availability = __('Out of stock', 'woocommerce');
$availability = __( 'Out of stock', 'woocommerce' );
$class = 'out-of-stock';
endif;
endif;
@ -977,7 +977,7 @@ class WC_Product {
if ( !$this->min_variation_price || $this->min_variation_price !== $this->max_variation_price )
$price .= $this->get_price_html_from_text();
$price .= $this->get_price_html_from_to( $this->min_variation_regular_price, __('Free!', 'woocommerce') );
$price .= $this->get_price_html_from_to( $this->min_variation_regular_price, __( 'Free!', 'woocommerce' ) );
$price = apply_filters('woocommerce_variable_free_sale_price_html', $price, $this);
@ -986,7 +986,7 @@ class WC_Product {
if ( ! $this->min_variation_price || $this->min_variation_price !== $this->max_variation_price )
$price .= $this->get_price_html_from_text();
$price .= __('Free!', 'woocommerce');
$price .= __( 'Free!', 'woocommerce' );
$price = apply_filters('woocommerce_variable_free_price_html', $price, $this);
@ -1017,13 +1017,13 @@ class WC_Product {
if ($this->is_on_sale() && isset($this->regular_price)) :
$price .= $this->get_price_html_from_to( $this->regular_price, __('Free!', 'woocommerce') );
$price .= $this->get_price_html_from_to( $this->regular_price, __( 'Free!', 'woocommerce' ) );
$price = apply_filters('woocommerce_free_sale_price_html', $price, $this);
else :
$price = __('Free!', 'woocommerce');
$price = __( 'Free!', 'woocommerce' );
$price = apply_filters('woocommerce_free_price_html', $price, $this);
@ -1102,7 +1102,7 @@ class WC_Product {
endif;
if ( $average_rating>0 ) :
return '<div class="star-rating" title="'.sprintf(__('Rated %s out of 5', 'woocommerce'), $average_rating).'"><span style="width:'.($average_rating*$star_size).'px"><span class="rating">'.$average_rating.'</span> '.__('out of 5', 'woocommerce').'</span></div>';
return '<div class="star-rating" title="'.sprintf(__( 'Rated %s out of 5', 'woocommerce' ), $average_rating).'"><span style="width:'.($average_rating*$star_size).'px"><span class="rating">'.$average_rating.'</span> '.__( 'out of 5', 'woocommerce' ).'</span></div>';
else :
return '';
endif;

View File

@ -536,7 +536,7 @@ class WC_Email extends WC_Settings_API {
} );
jQuery('a.delete_template').click(function(){
var answer = confirm('" . __('Are you sure you want to delete this template file?', 'woocommerce') . "');
var answer = confirm('" . __( 'Are you sure you want to delete this template file?', 'woocommerce' ) . "');
if (answer)
return true;

View File

@ -282,11 +282,11 @@ class WC_Emails {
$sku = ($product->sku) ? '(' . $product->sku . ') ' : '';
if ( ! empty( $product->variation_id ) )
$title = sprintf(__('Variation #%s of %s', 'woocommerce'), $product->variation_id, get_the_title($product->id)) . ' ' . $sku;
$title = sprintf(__( 'Variation #%s of %s', 'woocommerce' ), $product->variation_id, get_the_title($product->id)) . ' ' . $sku;
else
$title = sprintf(__('Product #%s - %s', 'woocommerce'), $product->id, get_the_title($product->id)) . ' ' . $sku;
$title = sprintf(__( 'Product #%s - %s', 'woocommerce' ), $product->id, get_the_title($product->id)) . ' ' . $sku;
$message = $title . __('is low in stock.', 'woocommerce');
$message = $title . __( 'is low in stock.', 'woocommerce' );
// CC, BCC, additional headers
$headers = apply_filters('woocommerce_email_headers', '', 'low_stock', $product);
@ -314,11 +314,11 @@ class WC_Emails {
$sku = ($product->sku) ? '(' . $product->sku . ') ' : '';
if ( ! empty( $product->variation_id ) )
$title = sprintf(__('Variation #%s of %s', 'woocommerce'), $product->variation_id, get_the_title($product->id)) . ' ' . $sku;
$title = sprintf(__( 'Variation #%s of %s', 'woocommerce' ), $product->variation_id, get_the_title($product->id)) . ' ' . $sku;
else
$title = sprintf(__('Product #%s - %s', 'woocommerce'), $product->id, get_the_title($product->id)) . ' ' . $sku;
$title = sprintf(__( 'Product #%s - %s', 'woocommerce' ), $product->id, get_the_title($product->id)) . ' ' . $sku;
$message = $title . __('is out of stock.', 'woocommerce');
$message = $title . __( 'is out of stock.', 'woocommerce' );
// CC, BCC, additional headers
$headers = apply_filters('woocommerce_email_headers', '', 'no_stock', $product);
@ -358,11 +358,11 @@ class WC_Emails {
$sku = ($product->sku) ? ' (' . $product->sku . ')' : '';
if ( ! empty( $product->variation_id ) )
$title = sprintf(__('Variation #%s of %s', 'woocommerce'), $product->variation_id, get_the_title($product->id)) . $sku;
$title = sprintf(__( 'Variation #%s of %s', 'woocommerce' ), $product->variation_id, get_the_title($product->id)) . $sku;
else
$title = sprintf(__('Product #%s - %s', 'woocommerce'), $product->id, get_the_title($product->id)) . $sku;
$title = sprintf(__( 'Product #%s - %s', 'woocommerce' ), $product->id, get_the_title($product->id)) . $sku;
$message = sprintf(__('%s units of %s have been backordered in order #%s.', 'woocommerce'), $quantity, $title, $order_id );
$message = sprintf(__( '%s units of %s have been backordered in order #%s.', 'woocommerce' ), $quantity, $title, $order_id );
// CC, BCC, additional headers
$headers = apply_filters('woocommerce_email_headers', '', 'backorder', $args);

View File

@ -76,7 +76,7 @@ class WC_BACS extends WC_Payment_Gateway {
'title' => __( 'Customer Message', 'woocommerce' ),
'type' => 'textarea',
'description' => __( 'Give the customer instructions for paying via BACS, and let them know that their order won\'t be shipping until the money is received.', 'woocommerce' ),
'default' => __('Make your payment directly into our bank account. Please use your Order ID as the payment reference. Your order wont be shipped until the funds have cleared in our account.', 'woocommerce')
'default' => __( 'Make your payment directly into our bank account. Please use your Order ID as the payment reference. Your order wont be shipped until the funds have cleared in our account.', 'woocommerce' )
),
'account_details' => array(
'title' => __( 'Account Details', 'woocommerce' ),
@ -111,7 +111,7 @@ class WC_BACS extends WC_Payment_Gateway {
'iban' => array(
'title' => __( 'IBAN', 'woocommerce' ),
'type' => 'text',
'description' => __('Your bank may require this for international payments','woocommerce'),
'description' => __( 'Your bank may require this for international payments','woocommerce'),
'default' => ''
),
'bic' => array(
@ -135,8 +135,8 @@ class WC_BACS extends WC_Payment_Gateway {
*/
public function admin_options() {
?>
<h3><?php _e('BACS Payment', 'woocommerce'); ?></h3>
<p><?php _e('Allows payments by BACS (Bank Account Clearing System), more commonly known as direct bank/wire transfer.', 'woocommerce'); ?></p>
<h3><?php _e( 'BACS Payment', 'woocommerce' ); ?></h3>
<p><?php _e('Allows payments by BACS (Bank Account Clearing System), more commonly known as direct bank/wire transfer.', 'woocommerce' ); ?></p>
<table class="form-table">
<?php
// Generate the HTML For the settings form.
@ -157,15 +157,15 @@ class WC_BACS extends WC_Payment_Gateway {
if ( $description = $this->get_description() )
echo wpautop( wptexturize( $description ) );
?><h2><?php _e('Our Details', 'woocommerce') ?></h2><ul class="order_details bacs_details"><?php
?><h2><?php _e( 'Our Details', 'woocommerce' ) ?></h2><ul class="order_details bacs_details"><?php
$fields = apply_filters('woocommerce_bacs_fields', array(
'account_name' => __('Account Name', 'woocommerce'),
'account_number'=> __('Account Number', 'woocommerce'),
'sort_code' => __('Sort Code', 'woocommerce'),
'bank_name' => __('Bank Name', 'woocommerce'),
'iban' => __('IBAN', 'woocommerce'),
'bic' => __('BIC', 'woocommerce')
'account_name' => __( 'Account Name', 'woocommerce' ),
'account_number'=> __( 'Account Number', 'woocommerce' ),
'sort_code' => __( 'Sort Code', 'woocommerce' ),
'bank_name' => __( 'Bank Name', 'woocommerce' ),
'iban' => __( 'IBAN', 'woocommerce' ),
'bic' => __( 'BIC', 'woocommerce' )
));
foreach ($fields as $key=>$value) :
@ -197,15 +197,15 @@ class WC_BACS extends WC_Payment_Gateway {
if ( $description = $this->get_description() )
echo wpautop( wptexturize( $description ) );
?><h2><?php _e('Our Details', 'woocommerce') ?></h2><ul class="order_details bacs_details"><?php
?><h2><?php _e( 'Our Details', 'woocommerce' ) ?></h2><ul class="order_details bacs_details"><?php
$fields = apply_filters('woocommerce_bacs_fields', array(
'account_name' => __('Account Name', 'woocommerce'),
'account_number'=> __('Account Number', 'woocommerce'),
'sort_code' => __('Sort Code', 'woocommerce'),
'bank_name' => __('Bank Name', 'woocommerce'),
'iban' => __('IBAN', 'woocommerce'),
'bic' => __('BIC', 'woocommerce')
'account_name' => __( 'Account Name', 'woocommerce' ),
'account_number'=> __( 'Account Number', 'woocommerce' ),
'sort_code' => __( 'Sort Code', 'woocommerce' ),
'bank_name' => __( 'Bank Name', 'woocommerce' ),
'iban' => __( 'IBAN', 'woocommerce' ),
'bic' => __( 'BIC', 'woocommerce' )
));
foreach ($fields as $key=>$value) :
@ -231,7 +231,7 @@ class WC_BACS extends WC_Payment_Gateway {
$order = new WC_Order( $order_id );
// Mark as on-hold (we're awaiting the payment)
$order->update_status('on-hold', __('Awaiting BACS payment', 'woocommerce'));
$order->update_status('on-hold', __( 'Awaiting BACS payment', 'woocommerce' ));
// Reduce stock levels
$order->reduce_order_stock();

View File

@ -88,8 +88,8 @@ class WC_Cheque extends WC_Payment_Gateway {
public function admin_options() {
?>
<h3><?php _e('Cheque Payment', 'woocommerce'); ?></h3>
<p><?php _e('Allows cheque payments. Why would you take cheques in this day and age? Well you probably wouldn\'t but it does allow you to make test purchases for testing order emails and the \'success\' pages etc.', 'woocommerce'); ?></p>
<h3><?php _e( 'Cheque Payment', 'woocommerce' ); ?></h3>
<p><?php _e( 'Allows cheque payments. Why would you take cheques in this day and age? Well you probably wouldn\'t but it does allow you to make test purchases for testing order emails and the \'success\' pages etc.', 'woocommerce' ); ?></p>
<table class="form-table">
<?php
// Generate the HTML For the settings form.
@ -145,7 +145,7 @@ class WC_Cheque extends WC_Payment_Gateway {
$order = new WC_Order( $order_id );
// Mark as on-hold (we're awaiting the cheque)
$order->update_status('on-hold', __('Awaiting cheque payment', 'woocommerce'));
$order->update_status('on-hold', __( 'Awaiting cheque payment', 'woocommerce' ));
// Reduce stock levels
$order->reduce_order_stock();

View File

@ -23,7 +23,7 @@ class WC_COD extends WC_Payment_Gateway {
*/
function __construct() {
$this->id = 'cod';
$this->method_title = __('Cash on Delivery', 'woocommerce');
$this->method_title = __( 'Cash on Delivery', 'woocommerce' );
$this->has_fields = false;
// Load the form fields.
@ -171,7 +171,7 @@ class WC_COD extends WC_Payment_Gateway {
$order = new WC_Order( $order_id );
// Mark as on-hold (we're awaiting the cheque)
$order->update_status('on-hold', __('Payment to be made upon delivery.', 'woocommerce'));
$order->update_status('on-hold', __( 'Payment to be made upon delivery.', 'woocommerce' ));
// Reduce stock levels
$order->reduce_order_stock();

View File

@ -163,9 +163,9 @@ class WC_Mijireh_Checkout extends WC_Payment_Gateway {
'default' => 'no'
),
'access_key' => array(
'title' => __('Access Key', 'woocommerce'),
'title' => __( 'Access Key', 'woocommerce' ),
'type' => 'text',
'description' => __('The Mijireh access key for your store.', 'woocommerce'),
'description' => __( 'The Mijireh access key for your store.', 'woocommerce' ),
'default' => ''
),
'title' => array(
@ -193,18 +193,18 @@ class WC_Mijireh_Checkout extends WC_Payment_Gateway {
*/
public function admin_options() {
?>
<h3><?php _e('Mijireh Checkout', 'woocommerce');?></h3>
<h3><?php _e( 'Mijireh Checkout', 'woocommerce' );?></h3>
<?php if ( empty( $this->access_key ) ) : ?>
<div id="wc_get_started" class="mijireh">
<span class="main"><?php _e('Get started with Mijireh Checkout', 'woocommerce'); ?></span>
<span><a href="http://www.mijireh.com/integrations/woocommerce/">Mijireh Checkout</a> <?php _e('provides a fully PCI Compliant, secure way to collect and transmit credit card data to your payment gateway while keeping you in control of the design of your site. Mijireh supports a wide variety of payment gateways: Stripe, Authorize.net, PayPal, eWay, SagePay, Braintree, PayLeap, and more.', 'woocommerce'); ?></span>
<span class="main"><?php _e( 'Get started with Mijireh Checkout', 'woocommerce' ); ?></span>
<span><a href="http://www.mijireh.com/integrations/woocommerce/">Mijireh Checkout</a> <?php _e( 'provides a fully PCI Compliant, secure way to collect and transmit credit card data to your payment gateway while keeping you in control of the design of your site. Mijireh supports a wide variety of payment gateways: Stripe, Authorize.net, PayPal, eWay, SagePay, Braintree, PayLeap, and more.', 'woocommerce' ); ?></span>
<p><a href="http://secure.mijireh.com/signup" target="_blank" class="button button-primary"><?php _e('Join for free', 'woocommerce'); ?></a> <a href="http://www.mijireh.com/integrations/woocommerce/" target="_blank" class="button"><?php _e('Learn more about WooCommerce and Mijireh', 'woocommerce'); ?></a></p>
<p><a href="http://secure.mijireh.com/signup" target="_blank" class="button button-primary"><?php _e( 'Join for free', 'woocommerce' ); ?></a> <a href="http://www.mijireh.com/integrations/woocommerce/" target="_blank" class="button"><?php _e( 'Learn more about WooCommerce and Mijireh', 'woocommerce' ); ?></a></p>
</div>
<?php else : ?>
<p><a href="http://www.mijireh.com/integrations/woocommerce/">Mijireh Checkout</a> <?php _e('provides a fully PCI Compliant, secure way to collect and transmit credit card data to your payment gateway while keeping you in control of the design of your site.', 'woocommerce'); ?></p>
<p><a href="http://www.mijireh.com/integrations/woocommerce/">Mijireh Checkout</a> <?php _e( 'provides a fully PCI Compliant, secure way to collect and transmit credit card data to your payment gateway while keeping you in control of the design of your site.', 'woocommerce' ); ?></p>
<?php endif; ?>
<table class="form-table">

View File

@ -88,8 +88,8 @@ class WC_Paypal extends WC_Payment_Gateway {
public function admin_options() {
?>
<h3><?php _e('PayPal standard', 'woocommerce'); ?></h3>
<p><?php _e('PayPal standard works by sending the user to PayPal to enter their payment information.', 'woocommerce'); ?></p>
<h3><?php _e( 'PayPal standard', 'woocommerce' ); ?></h3>
<p><?php _e( 'PayPal standard works by sending the user to PayPal to enter their payment information.', 'woocommerce' ); ?></p>
<table class="form-table">
<?php
if ( $this->is_valid_for_use() ) :
@ -307,7 +307,7 @@ class WC_Paypal extends WC_Payment_Gateway {
if ($item['qty']) $item_names[] = $item['name'] . ' x ' . $item['qty'];
endforeach; endif;
$paypal_args['item_name_1'] = sprintf( __('Order %s' , 'woocommerce'), $order->get_order_number() ) . " - " . implode(', ', $item_names);
$paypal_args['item_name_1'] = sprintf( __( 'Order %s' , 'woocommerce'), $order->get_order_number() ) . " - " . implode(', ', $item_names);
$paypal_args['quantity_1'] = 1;
$paypal_args['amount_1'] = number_format($order->get_total() - $order->get_shipping() - $order->get_shipping_tax() + $order->get_order_discount(), 2, '.', '');
@ -355,7 +355,7 @@ class WC_Paypal extends WC_Payment_Gateway {
// Shipping Cost item - paypal only allows shipping per item, we want to send shipping for the order
if ($order->get_shipping()>0) :
$item_loop++;
$paypal_args['item_name_'.$item_loop] = __('Shipping via', 'woocommerce') . ' ' . ucwords($order->shipping_method_title);
$paypal_args['item_name_'.$item_loop] = __('Shipping via', 'woocommerce' ) . ' ' . ucwords($order->shipping_method_title);
$paypal_args['quantity_'.$item_loop] = '1';
$paypal_args['amount_'.$item_loop] = number_format($order->get_shipping(), 2, '.', '');
endif;
@ -396,7 +396,7 @@ class WC_Paypal extends WC_Payment_Gateway {
$woocommerce->add_inline_js('
jQuery("body").block({
message: "<img src=\"' . esc_url( apply_filters( 'woocommerce_ajax_loader_url', $woocommerce->plugin_url() . '/assets/images/ajax-loader.gif' ) ) . '\" alt=\"Redirecting&hellip;\" style=\"float:left; margin-right: 10px;\" />'.__('Thank you for your order. We are now redirecting you to PayPal to make payment.', 'woocommerce').'",
message: "<img src=\"' . esc_url( apply_filters( 'woocommerce_ajax_loader_url', $woocommerce->plugin_url() . '/assets/images/ajax-loader.gif' ) ) . '\" alt=\"Redirecting&hellip;\" style=\"float:left; margin-right: 10px;\" />'.__( 'Thank you for your order. We are now redirecting you to PayPal to make payment.', 'woocommerce' ).'",
overlayCSS:
{
background: "#fff",
@ -417,7 +417,7 @@ class WC_Paypal extends WC_Payment_Gateway {
return '<form action="'.esc_url( $paypal_adr ).'" method="post" id="paypal_payment_form" target="_top">
' . implode('', $paypal_args_array) . '
<input type="submit" class="button-alt" id="submit_paypal_payment_form" value="'.__('Pay via PayPal', 'woocommerce').'" /> <a class="button cancel" href="'.esc_url( $order->get_cancel_order_url() ).'">'.__('Cancel order &amp; restore cart', 'woocommerce').'</a>
<input type="submit" class="button-alt" id="submit_paypal_payment_form" value="'.__( 'Pay via PayPal', 'woocommerce' ).'" /> <a class="button cancel" href="'.esc_url( $order->get_cancel_order_url() ).'">'.__( 'Cancel order &amp; restore cart', 'woocommerce' ).'</a>
</form>';
}
@ -471,7 +471,7 @@ class WC_Paypal extends WC_Payment_Gateway {
*/
function receipt_page( $order ) {
echo '<p>'.__('Thank you for your order, please click the button below to pay with PayPal.', 'woocommerce').'</p>';
echo '<p>'.__( 'Thank you for your order, please click the button below to pay with PayPal.', 'woocommerce' ).'</p>';
echo $this->generate_paypal_form( $order );
@ -627,7 +627,7 @@ class WC_Paypal extends WC_Payment_Gateway {
update_post_meta( $order_id, 'Payment type', $posted['payment_type'] );
// Payment completed
$order->add_order_note( __('IPN payment completed', 'woocommerce') );
$order->add_order_note( __( 'IPN payment completed', 'woocommerce' ) );
$order->payment_complete();
if ( $this->debug == 'yes' )
@ -652,11 +652,11 @@ class WC_Paypal extends WC_Payment_Gateway {
$mailer = $woocommerce->mailer();
$mailer->wrap_message(
__('Order refunded/reversed', 'woocommerce'),
sprintf( __('Order %s has been marked as refunded - PayPal reason code: %s', 'woocommerce'), $order->get_order_number(), $posted['reason_code'] )
__( 'Order refunded/reversed', 'woocommerce' ),
sprintf( __( 'Order %s has been marked as refunded - PayPal reason code: %s', 'woocommerce' ), $order->get_order_number(), $posted['reason_code'] )
);
$mailer->send( get_option('woocommerce_new_order_email_recipient'), sprintf( __('Payment for order %s refunded/reversed', 'woocommerce'), $order->get_order_number() ), $message );
$mailer->send( get_option('woocommerce_new_order_email_recipient'), sprintf( __( 'Payment for order %s refunded/reversed', 'woocommerce' ), $order->get_order_number() ), $message );
}
@ -665,16 +665,16 @@ class WC_Paypal extends WC_Payment_Gateway {
case "chargeback" :
// Mark order as refunded
$order->update_status( 'refunded', sprintf( __('Payment %s via IPN.', 'woocommerce'), strtolower( $posted['payment_status'] ) ) );
$order->update_status( 'refunded', sprintf( __( 'Payment %s via IPN.', 'woocommerce' ), strtolower( $posted['payment_status'] ) ) );
$mailer = $woocommerce->mailer();
$mailer->wrap_message(
__('Order refunded/reversed', 'woocommerce'),
sprintf(__('Order %s has been marked as refunded - PayPal reason code: %s', 'woocommerce'), $order->get_order_number(), $posted['reason_code'] )
__( 'Order refunded/reversed', 'woocommerce' ),
sprintf(__( 'Order %s has been marked as refunded - PayPal reason code: %s', 'woocommerce' ), $order->get_order_number(), $posted['reason_code'] )
);
$mailer->send( get_option('woocommerce_new_order_email_recipient'), sprintf( __('Payment for order %s refunded/reversed', 'woocommerce'), $order->get_order_number() ), $message );
$mailer->send( get_option('woocommerce_new_order_email_recipient'), sprintf( __( 'Payment for order %s refunded/reversed', 'woocommerce' ), $order->get_order_number() ), $message );
break;
default :

View File

@ -61,26 +61,26 @@ class WC_Google_Analytics extends WC_Integration {
$this->form_fields = array(
'ga_id' => array(
'title' => __('Google Analytics ID', 'woocommerce'),
'description' => __('Log into your google analytics account to find your ID. e.g. <code>UA-XXXXX-X</code>', 'woocommerce'),
'title' => __( 'Google Analytics ID', 'woocommerce' ),
'description' => __( 'Log into your google analytics account to find your ID. e.g. <code>UA-XXXXX-X</code>', 'woocommerce' ),
'type' => 'text',
'default' => get_option('woocommerce_ga_id') // Backwards compat
),
'ga_standard_tracking_enabled' => array(
'title' => __('Tracking code', 'woocommerce'),
'label' => __('Add tracking code to your site\'s footer. You don\'t need to enable this if using a 3rd party analytics plugin.', 'woocommerce'),
'title' => __( 'Tracking code', 'woocommerce' ),
'label' => __( 'Add tracking code to your site\'s footer. You don\'t need to enable this if using a 3rd party analytics plugin.', 'woocommerce' ),
'type' => 'checkbox',
'checkboxgroup' => 'start',
'default' => get_option('woocommerce_ga_standard_tracking_enabled') ? get_option('woocommerce_ga_standard_tracking_enabled') : 'no' // Backwards compat
),
'ga_ecommerce_tracking_enabled' => array(
'label' => __('Add eCommerce tracking code to the thankyou page', 'woocommerce'),
'label' => __( 'Add eCommerce tracking code to the thankyou page', 'woocommerce' ),
'type' => 'checkbox',
'checkboxgroup' => '',
'default' => get_option('woocommerce_ga_ecommerce_tracking_enabled') ? get_option('woocommerce_ga_ecommerce_tracking_enabled') : 'no' // Backwards compat
),
'ga_event_tracking_enabled' => array(
'label' => __('Add event tracking code for add to cart actions', 'woocommerce'),
'label' => __( 'Add event tracking code for add to cart actions', 'woocommerce' ),
'type' => 'checkbox',
'checkboxgroup' => 'end',
'default' => 'no'
@ -112,7 +112,7 @@ class WC_Google_Analytics extends WC_Integration {
$username = $current_user->user_login;
} else {
$user_id = '';
$username = __('Guest', 'woocommerce');
$username = __( 'Guest', 'woocommerce' );
}
echo "<script type='text/javascript'>
@ -167,7 +167,7 @@ class WC_Google_Analytics extends WC_Integration {
$username = $current_user->user_login;
} else {
$user_id = '';
$username = __('Guest', 'woocommerce');
$username = __( 'Guest', 'woocommerce' );
}
$code = "
@ -200,7 +200,7 @@ class WC_Google_Analytics extends WC_Integration {
$code .= "_gaq.push(['_addItem',";
$code .= "'" . $order_id . "',";
$code .= "'" . ( $_product->get_sku() ? __('SKU:', 'woocommerce') . ' ' . $_product->get_sku() : $_product->id ) . "',";
$code .= "'" . ( $_product->get_sku() ? __( 'SKU:', 'woocommerce' ) . ' ' . $_product->get_sku() : $_product->id ) . "',";
$code .= "'" . $item['name'] . "',";
if ( isset( $_product->variation_data ) ) {

View File

@ -198,22 +198,22 @@ class WC_ShareYourCart extends WC_Integration {
?>
<div class="updated">
<h3><?php _e('Create a ShareYourCart account', 'woocommerce') ?></h3>
<h3><?php _e( 'Create a ShareYourCart account', 'woocommerce' ) ?></h3>
<table class="form-table">
<tr>
<th><?php _e('Domain', 'woocommerce'); ?></th>
<th><?php _e( 'Domain', 'woocommerce' ); ?></th>
<td><input type="text" name="domain" id="domain" class="regular-text" value="<?php echo (isset($_POST['domain']) ? $_POST['domain'] : site_url()); ?>" /></td>
</tr>
<tr>
<th><?php _e('Email', 'woocommerce'); ?></th>
<th><?php _e( 'Email', 'woocommerce' ); ?></th>
<td><input type="text" name="email" id="email" class="regular-text" value="<?php echo (isset($_POST['email']) ? $_POST['email'] : get_option('admin_email')); ?>"/></td>
</tr>
<tr>
<th>&nbsp;</th>
<td><input class="buttonCheckbox" name="syc-terms-agreement" id="syc-terms-agreement" type="checkbox" /> <label for="syc-terms-agreement"><?php printf(__('I agree to the <a href="%s">ShareYourCart terms and conditions</a>', 'woocommerce'), 'http://shareyourcart.com/terms'); ?></label></td>
<td><input class="buttonCheckbox" name="syc-terms-agreement" id="syc-terms-agreement" type="checkbox" /> <label for="syc-terms-agreement"><?php printf(__( 'I agree to the <a href="%s">ShareYourCart terms and conditions</a>', 'woocommerce' ), 'http://shareyourcart.com/terms'); ?></label></td>
</tr>
</table>
<p class="submit"><input type="submit" class="button button-primary" value="<?php _e('Create Account', 'woocommerce') ?>" /></p>
<p class="submit"><input type="submit" class="button button-primary" value="<?php _e( 'Create Account', 'woocommerce' ) ?>" /></p>
</div>
<?php
@ -221,18 +221,18 @@ class WC_ShareYourCart extends WC_Integration {
?>
<div class="updated">
<h3><?php _e('Recover your ShareYourCart account', 'woocommerce') ?></h3>
<h3><?php _e( 'Recover your ShareYourCart account', 'woocommerce' ) ?></h3>
<table class="form-table">
<tr>
<th><?php _e('Domain', 'woocommerce'); ?></th>
<th><?php _e( 'Domain', 'woocommerce' ); ?></th>
<td><input type="text" name="domain" id="domain" class="regular-text" value="<?php echo (isset($_POST['domain']) ? $_POST['domain'] : site_url()); ?>" /></td>
</tr>
<tr>
<th><?php _e('Email', 'woocommerce'); ?></th>
<th><?php _e( 'Email', 'woocommerce' ); ?></th>
<td><input type="text" name="email" id="email" class="regular-text" value="<?php echo (isset($_POST['email']) ? $_POST['email'] : get_option('admin_email')); ?>"/></td>
</tr>
</table>
<p class="submit"><input type="submit" class="button button-primary" value="<?php _e('Email me my details', 'woocommerce') ?>" /></p>
<p class="submit"><input type="submit" class="button button-primary" value="<?php _e( 'Email me my details', 'woocommerce' ) ?>" /></p>
</div>
<?php
@ -240,9 +240,9 @@ class WC_ShareYourCart extends WC_Integration {
?>
<div id="wc_get_started">
<span class="main"><?php _e('Setup your ShareYourCart account', 'woocommerce'); ?></span>
<span class="main"><?php _e( 'Setup your ShareYourCart account', 'woocommerce' ); ?></span>
<span><?php echo $this->method_description; ?></span>
<p><a href="<?php echo add_query_arg( 'syc-account', 'create', admin_url( 'admin.php?page=woocommerce_settings&tab=integration&section=shareyourcart' ) ); ?>" class="button button-primary api-link"><?php _e('Create an account', 'woocommerce'); ?></a> <a href="<?php echo add_query_arg( 'syc-account', 'recover', admin_url( 'admin.php?page=woocommerce_settings&tab=integration&section=shareyourcart' ) ); ?>" class="button api-link"><?php _e('Can\'t access your account?', 'woocommerce'); ?></a></p>
<p><a href="<?php echo add_query_arg( 'syc-account', 'create', admin_url( 'admin.php?page=woocommerce_settings&tab=integration&section=shareyourcart' ) ); ?>" class="button button-primary api-link"><?php _e( 'Create an account', 'woocommerce' ); ?></a> <a href="<?php echo add_query_arg( 'syc-account', 'recover', admin_url( 'admin.php?page=woocommerce_settings&tab=integration&section=shareyourcart' ) ); ?>" class="button api-link"><?php _e( 'Can\'t access your account?', 'woocommerce' ); ?></a></p>
</div>
<?php
@ -257,10 +257,10 @@ class WC_ShareYourCart extends WC_Integration {
<?php $this->generate_settings_html(); ?>
<?php if ( $this->client_id && $this->app_key ) : ?>
<tr>
<th><?php _e('Configure ShareYourCart', 'woocommerce'); ?></th>
<th><?php _e( 'Configure ShareYourCart', 'woocommerce' ); ?></th>
<td>
<p><?php _e('You can choose how much of a discount to give (in fixed amount, percentage, or free shipping) and to which social media channels it should it be applied. You can also define what the advertisement should say, so that it fully benefits your sales.', 'woocommerce'); ?></p>
<p><a href="http://www.shareyourcart.com/configure/?app_key=<?php echo $this->app_key; ?>&amp;client_id=<?php echo $this->client_id; ?>&amp;email=<?php echo $this->email; ?>" class="button" target="_blank"><?php _e('Configure', 'woocommerce'); ?></a></p>
<p><?php _e( 'You can choose how much of a discount to give (in fixed amount, percentage, or free shipping) and to which social media channels it should it be applied. You can also define what the advertisement should say, so that it fully benefits your sales.', 'woocommerce' ); ?></p>
<p><a href="http://www.shareyourcart.com/configure/?app_key=<?php echo $this->app_key; ?>&amp;client_id=<?php echo $this->client_id; ?>&amp;email=<?php echo $this->email; ?>" class="button" target="_blank"><?php _e( 'Configure', 'woocommerce' ); ?></a></p>
</td>
</tr>
<?php endif; ?>

View File

@ -440,7 +440,7 @@ class WC_Flat_Rate extends WC_Shipping_Method {
echo '<option value="'.$shipping_class->slug.'" '.selected($shipping_class->slug, $class, false).'>'.$shipping_class->name.'</option>';
}
} else {
echo '<option value="">'.__('Select a class&hellip;', 'woocommerce').'</option>';
echo '<option value="">'.__( 'Select a class&hellip;', 'woocommerce' ).'</option>';
}
echo '</select>
@ -473,7 +473,7 @@ class WC_Flat_Rate extends WC_Shipping_Method {
echo '<option value="'.$class->slug.'">'.$class->name.'</option>';
endforeach;
else :
echo '<option value="">'.__('Select a class&hellip;', 'woocommerce').'</option>';
echo '<option value="">'.__( 'Select a class&hellip;', 'woocommerce' ).'</option>';
endif;
?>\
</select>\
@ -487,7 +487,7 @@ class WC_Flat_Rate extends WC_Shipping_Method {
// Remove row
jQuery('#<?php echo $this->id; ?>_flat_rates a.remove').live('click', function(){
var answer = confirm("<?php _e('Delete the selected rates?', 'woocommerce'); ?>")
var answer = confirm("<?php _e( 'Delete the selected rates?', 'woocommerce' ); ?>")
if (answer) {
jQuery('#<?php echo $this->id; ?>_flat_rates table tbody tr td.check-column input:checked').each(function(i, el){
jQuery(el).closest('tr').remove();

View File

@ -22,7 +22,7 @@ class WC_Free_Shipping extends WC_Shipping_Method {
*/
function __construct() {
$this->id = 'free_shipping';
$this->method_title = __('Free Shipping', 'woocommerce');
$this->method_title = __( 'Free Shipping', 'woocommerce' );
$this->init();
}
@ -77,14 +77,14 @@ class WC_Free_Shipping extends WC_Shipping_Method {
'min_amount' => array(
'title' => __( 'Minimum Order Amount', 'woocommerce' ),
'type' => 'text',
'description' => __('Users will need to spend this amount to get free shipping. Leave blank to disable.', 'woocommerce'),
'description' => __( 'Users will need to spend this amount to get free shipping. Leave blank to disable.', 'woocommerce' ),
'default' => ''
),
'requires_coupon' => array(
'title' => __( 'Coupon', 'woocommerce' ),
'type' => 'checkbox',
'label' => __( 'Free shipping requires a free shipping coupon', 'woocommerce' ),
'description' => __('Users will need to enter a valid free shipping coupon code to use this method. If a coupon is used, the minimum order amount will be ignored.', 'woocommerce'),
'description' => __( 'Users will need to enter a valid free shipping coupon code to use this method. If a coupon is used, the minimum order amount will be ignored.', 'woocommerce' ),
'default' => 'no'
),
'availability' => array(
@ -93,8 +93,8 @@ class WC_Free_Shipping extends WC_Shipping_Method {
'default' => 'all',
'class' => 'availability',
'options' => array(
'all' => __('All allowed countries', 'woocommerce'),
'specific' => __('Specific Countries', 'woocommerce')
'all' => __( 'All allowed countries', 'woocommerce' ),
'specific' => __( 'Specific Countries', 'woocommerce' )
)
),
'countries' => array(
@ -121,8 +121,8 @@ class WC_Free_Shipping extends WC_Shipping_Method {
public function admin_options() {
?>
<h3><?php _e('Free Shipping', 'woocommerce'); ?></h3>
<p><?php _e('Free Shipping - does what it says on the tin.', 'woocommerce'); ?></p>
<h3><?php _e( 'Free Shipping', 'woocommerce' ); ?></h3>
<p><?php _e( 'Free Shipping - does what it says on the tin.', 'woocommerce' ); ?></p>
<table class="form-table">
<?php
// Generate the HTML For the settings form.

View File

@ -25,11 +25,11 @@ class WC_International_Delivery extends WC_Flat_Rate {
function __construct() {
$this->id = 'international_delivery';
$this->method_title = __('International Delivery', 'woocommerce');
$this->method_title = __( 'International Delivery', 'woocommerce' );
$this->flat_rate_option = 'woocommerce_international_delivery_flat_rates';
$this->admin_page_heading = __('International Delivery', 'woocommerce');
$this->admin_page_description = __('International delivery based on flat rate shipping.', 'woocommerce');
$this->admin_page_heading = __( 'International Delivery', 'woocommerce' );
$this->admin_page_description = __( 'International delivery based on flat rate shipping.', 'woocommerce' );
add_action('woocommerce_update_options_shipping_'.$this->id, array(&$this, 'process_admin_options'));
add_action('woocommerce_update_options_shipping_'.$this->id, array(&$this, 'process_flat_rates'));
@ -66,8 +66,8 @@ class WC_International_Delivery extends WC_Flat_Rate {
'description' => '',
'default' => 'including',
'options' => array(
'including' => __('Selected countries', 'woocommerce'),
'excluding' => __('Excluding selected countries', 'woocommerce'),
'including' => __( 'Selected countries', 'woocommerce' ),
'excluding' => __( 'Excluding selected countries', 'woocommerce' ),
)
),
'countries' => array(
@ -84,9 +84,9 @@ class WC_International_Delivery extends WC_Flat_Rate {
'description' => '',
'default' => 'order',
'options' => array(
'order' => __('Per Order - charge shipping for the entire order as a whole', 'woocommerce'),
'item' => __('Per Item - charge shipping for each item individually', 'woocommerce'),
'class' => __('Per Class - charge shipping for each shipping class in an order', 'woocommerce')
'order' => __( 'Per Order - charge shipping for the entire order as a whole', 'woocommerce' ),
'item' => __( 'Per Item - charge shipping for each item individually', 'woocommerce' ),
'class' => __( 'Per Class - charge shipping for each shipping class in an order', 'woocommerce' )
)
),
'tax_status' => array(
@ -95,20 +95,20 @@ class WC_International_Delivery extends WC_Flat_Rate {
'description' => '',
'default' => 'taxable',
'options' => array(
'taxable' => __('Taxable', 'woocommerce'),
'none' => __('None', 'woocommerce')
'taxable' => __( 'Taxable', 'woocommerce' ),
'none' => __( 'None', 'woocommerce' )
)
),
'cost' => array(
'title' => __( 'Default Cost', 'woocommerce' ),
'type' => 'text',
'description' => __('Cost excluding tax. Enter an amount, e.g. 2.50.', 'woocommerce'),
'description' => __( 'Cost excluding tax. Enter an amount, e.g. 2.50.', 'woocommerce' ),
'default' => ''
),
'fee' => array(
'title' => __( 'Default Handling Fee', 'woocommerce' ),
'type' => 'text',
'description' => __('Fee excluding tax. Enter an amount, e.g. 2.50, or a percentage, e.g. 5%. Leave blank to disable.', 'woocommerce'),
'description' => __( 'Fee excluding tax. Enter an amount, e.g. 2.50, or a percentage, e.g. 5%. Leave blank to disable.', 'woocommerce' ),
'default' => ''
),
);

View File

@ -22,7 +22,7 @@ class WC_Local_Delivery extends WC_Shipping_Method {
*/
function __construct() {
$this->id = 'local_delivery';
$this->method_title = __('Local Delivery', 'woocommerce');
$this->method_title = __( 'Local Delivery', 'woocommerce' );
$this->init();
}
@ -114,9 +114,9 @@ class WC_Local_Delivery extends WC_Shipping_Method {
'description' => __( 'How to calculate delivery charges', 'woocommerce' ),
'default' => 'fixed',
'options' => array(
'fixed' => __('Fixed amount', 'woocommerce'),
'percent' => __('Percentage of cart total', 'woocommerce'),
'product' => __('Fixed amount per product', 'woocommerce'),
'fixed' => __( 'Fixed amount', 'woocommerce' ),
'percent' => __( 'Percentage of cart total', 'woocommerce' ),
'product' => __( 'Fixed amount per product', 'woocommerce' ),
),
),
'fee' => array(
@ -137,8 +137,8 @@ class WC_Local_Delivery extends WC_Shipping_Method {
'default' => 'all',
'class' => 'availability',
'options' => array(
'all' => __('All allowed countries', 'woocommerce'),
'specific' => __('Specific Countries', 'woocommerce')
'all' => __( 'All allowed countries', 'woocommerce' ),
'specific' => __( 'Specific Countries', 'woocommerce' )
)
),
'countries' => array(
@ -161,7 +161,7 @@ class WC_Local_Delivery extends WC_Shipping_Method {
function admin_options() {
global $woocommerce; ?>
<h3><?php echo $this->method_title; ?></h3>
<p><?php _e('Local delivery is a simple shipping method for delivering orders locally.', 'woocommerce'); ?></p>
<p><?php _e( 'Local delivery is a simple shipping method for delivering orders locally.', 'woocommerce' ); ?></p>
<table class="form-table">
<?php $this->generate_settings_html(); ?>
</table> <?php

View File

@ -22,7 +22,7 @@ class WC_Local_Pickup extends WC_Shipping_Method {
*/
function __construct() {
$this->id = 'local_pickup';
$this->method_title = __('Local Pickup', 'woocommerce');
$this->method_title = __( 'Local Pickup', 'woocommerce' );
$this->init();
}
@ -92,8 +92,8 @@ class WC_Local_Pickup extends WC_Shipping_Method {
'default' => 'all',
'class' => 'availability',
'options' => array(
'all' => __('All allowed countries', 'woocommerce'),
'specific' => __('Specific Countries', 'woocommerce')
'all' => __( 'All allowed countries', 'woocommerce' ),
'specific' => __( 'Specific Countries', 'woocommerce' )
)
),
'countries' => array(
@ -122,7 +122,7 @@ class WC_Local_Pickup extends WC_Shipping_Method {
function admin_options() {
global $woocommerce; ?>
<h3><?php echo $this->method_title; ?></h3>
<p><?php _e('Local pickup is a simple method which allows the customer to pick up their order themselves.', 'woocommerce'); ?></p>
<p><?php _e( 'Local pickup is a simple method which allows the customer to pick up their order themselves.', 'woocommerce' ); ?></p>
<table class="form-table">
<?php $this->generate_settings_html(); ?>
</table> <?php

View File

@ -13,10 +13,10 @@
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
// Order Status Terms
__('pending', 'woocommerce');
__('failed', 'woocommerce');
__('on-hold', 'woocommerce');
__('processing', 'woocommerce');
__('completed', 'woocommerce');
__('refunded', 'woocommerce');
__('cancelled', 'woocommerce');
__( 'pending', 'woocommerce' );
__( 'failed', 'woocommerce' );
__( 'on-hold', 'woocommerce' );
__( 'processing', 'woocommerce' );
__( 'completed', 'woocommerce' );
__( 'refunded', 'woocommerce' );
__( 'cancelled', 'woocommerce' );

View File

@ -43,7 +43,7 @@ function woocommerce_cart( $atts ) {
if ( ! empty( $_POST['coupon_code'] ) ) {
$woocommerce->cart->add_discount( stripslashes( trim( $_POST['coupon_code'] ) ) );
} else {
$woocommerce->add_error( __('Please enter a coupon code.', 'woocommerce') );
$woocommerce->add_error( __( 'Please enter a coupon code.', 'woocommerce' ) );
}
// Remove Discount Codes
@ -63,7 +63,7 @@ function woocommerce_cart( $atts ) {
$postcode = $_POST['calc_shipping_postcode'];
if ( $postcode && ! $validation->is_postcode( $postcode, $country ) ) {
$woocommerce->add_error( __('Please enter a valid postcode/ZIP.', 'woocommerce') );
$woocommerce->add_error( __( 'Please enter a valid postcode/ZIP.', 'woocommerce' ) );
$postcode = '';
} elseif ( $postcode ) {
$postcode = $validation->format_postcode( $postcode, $country );
@ -74,13 +74,13 @@ function woocommerce_cart( $atts ) {
// Update customer location
$woocommerce->customer->set_location( $country, $state, $postcode );
$woocommerce->customer->set_shipping_location( $country, $state, $postcode );
$woocommerce->add_message( __('Shipping costs updated.', 'woocommerce') );
$woocommerce->add_message( __( 'Shipping costs updated.', 'woocommerce' ) );
} else {
$woocommerce->customer->set_to_base();
$woocommerce->customer->set_shipping_to_base();
$woocommerce->add_message( __('Shipping costs updated.', 'woocommerce') );
$woocommerce->add_message( __( 'Shipping costs updated.', 'woocommerce' ) );
}

View File

@ -56,7 +56,7 @@ function woocommerce_checkout( $atts ) {
$non_js_checkout = ! empty( $_POST['woocommerce_checkout_update_totals'] ) ? true : false;
if ( $woocommerce->error_count() == 0 && $non_js_checkout )
$woocommerce->add_message( __('The order totals have been updated. Please confirm your order by pressing the Place Order button at the bottom of the page.', 'woocommerce') );
$woocommerce->add_message( __( 'The order totals have been updated. Please confirm your order by pressing the Place Order button at the bottom of the page.', 'woocommerce' ) );
woocommerce_get_template('checkout/form-checkout.php');

View File

@ -425,7 +425,7 @@ function woocommerce_product_add_to_cart( $atts ) {
$link = $product->add_to_cart_url();
$label = apply_filters('add_to_cart_text', __('Add to cart', 'woocommerce'));
$label = apply_filters('add_to_cart_text', __( 'Add to cart', 'woocommerce' ));
$link = add_query_arg( 'variation_id', $variation->variation_id, $link );

View File

@ -78,7 +78,7 @@ function woocommerce_lost_password() {
}
if( $_POST[ 'password_1' ] !== $_POST[ 'password_2' ] ) {
$woocommerce->add_error( __('Passwords do not match.', 'woocommerce') );
$woocommerce->add_error( __( 'Passwords do not match.', 'woocommerce' ) );
$args['form'] = 'reset_password';
}

View File

@ -168,7 +168,7 @@ function woocommerce_save_address() {
$_POST[$key] = apply_filters('woocommerce_process_myaccount_field_' . $key, $_POST[$key]);
// Validation: Required fields
if ( isset($field['required']) && $field['required'] && empty($_POST[$key]) ) $woocommerce->add_error( $field['label'] . ' ' . __('is a required field.', 'woocommerce') );
if ( isset($field['required']) && $field['required'] && empty($_POST[$key]) ) $woocommerce->add_error( $field['label'] . ' ' . __( 'is a required field.', 'woocommerce' ) );
// Postcode
if ($key=='billing_postcode' || $key=='shipping_postcode') :
@ -250,7 +250,7 @@ function woocommerce_save_password() {
$woocommerce->add_error( __( 'Please enter your password.', 'woocommerce' ) );
if ( $_POST[ 'password_1' ] !== $_POST[ 'password_2' ] )
$woocommerce->add_error( __('Passwords do not match.', 'woocommerce') );
$woocommerce->add_error( __( 'Passwords do not match.', 'woocommerce' ) );
if ( $woocommerce->error_count() == 0 ) {
@ -287,7 +287,7 @@ function woocommerce_view_order() {
}
if ( $order->user_id != $user_id ) {
echo '<div class="woocommerce_error">' . __('Invalid order.', 'woocommerce') . ' <a href="'.get_permalink( woocommerce_get_page_id('myaccount') ).'">'. __('My Account &rarr;', 'woocommerce') .'</a>' . '</div>';
echo '<div class="woocommerce_error">' . __( 'Invalid order.', 'woocommerce' ) . ' <a href="'.get_permalink( woocommerce_get_page_id('myaccount') ).'">'. __( 'My Account &rarr;', 'woocommerce' ) .'</a>' . '</div>';
return;
}
@ -301,13 +301,13 @@ function woocommerce_view_order() {
$notes = $order->get_customer_order_notes();
if ($notes) :
?>
<h2><?php _e('Order Updates', 'woocommerce'); ?></h2>
<h2><?php _e( 'Order Updates', 'woocommerce' ); ?></h2>
<ol class="commentlist notes">
<?php foreach ($notes as $note) : ?>
<li class="comment note">
<div class="comment_container">
<div class="comment-text">
<p class="meta"><?php echo date_i18n(__('l jS \of F Y, h:ia', 'woocommerce'), strtotime($note->comment_date)); ?></p>
<p class="meta"><?php echo date_i18n(__( 'l jS \of F Y, h:ia', 'woocommerce' ), strtotime($note->comment_date)); ?></p>
<div class="description">
<?php echo wpautop(wptexturize($note->comment_content)); ?>
</div>

View File

@ -48,11 +48,11 @@ function woocommerce_order_tracking( $atts ) {
if ( ! $order_id ) {
echo '<p class="woocommerce_error">' . __('Please enter a valid order ID', 'woocommerce') . '</p>';
echo '<p class="woocommerce_error">' . __( 'Please enter a valid order ID', 'woocommerce' ) . '</p>';
} elseif ( ! $order_email ) {
echo '<p class="woocommerce_error">' . __('Please enter a valid order email', 'woocommerce') . '</p>';
echo '<p class="woocommerce_error">' . __( 'Please enter a valid order email', 'woocommerce' ) . '</p>';
} else {
@ -71,7 +71,7 @@ function woocommerce_order_tracking( $atts ) {
} else {
echo '<p class="woocommerce_error">' . sprintf( __('Sorry, we could not find that order id in our database.', 'woocommerce'), get_permalink($post->ID ) ) . '</p>';
echo '<p class="woocommerce_error">' . sprintf( __( 'Sorry, we could not find that order id in our database.', 'woocommerce' ), get_permalink($post->ID ) ) . '</p>';
}

View File

@ -57,12 +57,12 @@ function woocommerce_pay() {
elseif (!in_array($order->status, array('pending', 'failed'))) :
$woocommerce->add_error( __('Your order has already been paid for. Please contact us if you need assistance.', 'woocommerce') );
$woocommerce->add_error( __( 'Your order has already been paid for. Please contact us if you need assistance.', 'woocommerce' ) );
$woocommerce->show_messages();
else :
$woocommerce->add_error( __('Invalid order.', 'woocommerce') );
$woocommerce->add_error( __( 'Invalid order.', 'woocommerce' ) );
$woocommerce->show_messages();
endif;
@ -82,20 +82,20 @@ function woocommerce_pay() {
?>
<ul class="order_details">
<li class="order">
<?php _e('Order:', 'woocommerce'); ?>
<?php _e( 'Order:', 'woocommerce' ); ?>
<strong><?php echo $order->get_order_number(); ?></strong>
</li>
<li class="date">
<?php _e('Date:', 'woocommerce'); ?>
<?php _e( 'Date:', 'woocommerce' ); ?>
<strong><?php echo date_i18n(get_option('date_format'), strtotime($order->order_date)); ?></strong>
</li>
<li class="total">
<?php _e('Total:', 'woocommerce'); ?>
<?php _e( 'Total:', 'woocommerce' ); ?>
<strong><?php echo $order->get_formatted_order_total(); ?></strong>
</li>
<?php if ($order->payment_method_title) : ?>
<li class="method">
<?php _e('Payment method:', 'woocommerce'); ?>
<?php _e( 'Payment method:', 'woocommerce' ); ?>
<strong><?php
echo $order->payment_method_title;
?></strong>
@ -110,14 +110,14 @@ function woocommerce_pay() {
elseif (!in_array($order->status, array('pending', 'failed'))) :
$woocommerce->add_error( __('Your order has already been paid for. Please contact us if you need assistance.', 'woocommerce') );
$woocommerce->add_error( __( 'Your order has already been paid for. Please contact us if you need assistance.', 'woocommerce' ) );
$woocommerce->show_messages();
endif;
else :
$woocommerce->add_error( __('Invalid order.', 'woocommerce') );
$woocommerce->add_error( __( 'Invalid order.', 'woocommerce' ) );
$woocommerce->show_messages();
endif;

View File

@ -21,10 +21,10 @@ global $woocommerce;
<tr>
<th class="product-remove">&nbsp;</th>
<th class="product-thumbnail">&nbsp;</th>
<th class="product-name"><?php _e('Product', 'woocommerce'); ?></th>
<th class="product-price"><?php _e('Price', 'woocommerce'); ?></th>
<th class="product-quantity"><?php _e('Quantity', 'woocommerce'); ?></th>
<th class="product-subtotal"><?php _e('Total', 'woocommerce'); ?></th>
<th class="product-name"><?php _e( 'Product', 'woocommerce' ); ?></th>
<th class="product-price"><?php _e( 'Price', 'woocommerce' ); ?></th>
<th class="product-quantity"><?php _e( 'Quantity', 'woocommerce' ); ?></th>
<th class="product-subtotal"><?php _e( 'Total', 'woocommerce' ); ?></th>
</tr>
</thead>
<tbody>
@ -40,7 +40,7 @@ global $woocommerce;
<!-- Remove from cart link -->
<td class="product-remove">
<?php
echo apply_filters( 'woocommerce_cart_item_remove_link', sprintf('<a href="%s" class="remove" title="%s">&times;</a>', esc_url( $woocommerce->cart->get_remove_url( $cart_item_key ) ), __('Remove this item', 'woocommerce') ), $cart_item_key );
echo apply_filters( 'woocommerce_cart_item_remove_link', sprintf('<a href="%s" class="remove" title="%s">&times;</a>', esc_url( $woocommerce->cart->get_remove_url( $cart_item_key ) ), __( 'Remove this item', 'woocommerce' ) ), $cart_item_key );
?>
</td>
@ -65,7 +65,7 @@ global $woocommerce;
// Backorder notification
if ( $_product->backorders_require_notification() && $_product->is_on_backorder( $values['quantity'] ) )
echo '<p class="backorder_notification">' . __('Available on backorder', 'woocommerce') . '</p>';
echo '<p class="backorder_notification">' . __( 'Available on backorder', 'woocommerce' ) . '</p>';
?>
</td>
@ -115,14 +115,14 @@ global $woocommerce;
<?php if ( get_option( 'woocommerce_enable_coupons' ) == 'yes' && get_option( 'woocommerce_enable_coupon_form_on_cart' ) == 'yes') { ?>
<div class="coupon">
<label for="coupon_code"><?php _e('Coupon', 'woocommerce'); ?>:</label> <input name="coupon_code" class="input-text" id="coupon_code" value="" /> <input type="submit" class="button" name="apply_coupon" value="<?php _e('Apply Coupon', 'woocommerce'); ?>" />
<label for="coupon_code"><?php _e( 'Coupon', 'woocommerce' ); ?>:</label> <input name="coupon_code" class="input-text" id="coupon_code" value="" /> <input type="submit" class="button" name="apply_coupon" value="<?php _e( 'Apply Coupon', 'woocommerce' ); ?>" />
<?php do_action('woocommerce_cart_coupon'); ?>
</div>
<?php } ?>
<input type="submit" class="button" name="update_cart" value="<?php _e('Update Cart', 'woocommerce'); ?>" /> <input type="submit" class="checkout-button button alt" name="proceed" value="<?php _e('Proceed to Checkout &rarr;', 'woocommerce'); ?>" />
<input type="submit" class="button" name="update_cart" value="<?php _e( 'Update Cart', 'woocommerce' ); ?>" /> <input type="submit" class="checkout-button button alt" name="proceed" value="<?php _e( 'Proceed to Checkout &rarr;', 'woocommerce' ); ?>" />
<?php do_action('woocommerce_proceed_to_checkout'); ?>

View File

@ -32,7 +32,7 @@ if ( $products->have_posts() ) : ?>
<div class="cross-sells">
<h2><?php _e('You may be interested in&hellip;', 'woocommerce') ?></h2>
<h2><?php _e( 'You may be interested in&hellip;', 'woocommerce' ) ?></h2>
<?php woocommerce_product_loop_start(); ?>

View File

@ -11,8 +11,8 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
?>
<p><?php _e('Your cart is currently empty.', 'woocommerce') ?></p>
<p><?php _e( 'Your cart is currently empty.', 'woocommerce' ) ?></p>
<?php do_action('woocommerce_cart_is_empty'); ?>
<p><a class="button" href="<?php echo get_permalink(woocommerce_get_page_id('shop')); ?>"><?php _e('&larr; Return To Shop', 'woocommerce') ?></a></p>
<p><a class="button" href="<?php echo get_permalink(woocommerce_get_page_id('shop')); ?>"><?php _e( '&larr; Return To Shop', 'woocommerce' ) ?></a></p>

View File

@ -49,7 +49,7 @@ global $woocommerce;
<?php else : ?>
<li class="empty"><?php _e('No products in the cart.', 'woocommerce'); ?></li>
<li class="empty"><?php _e( 'No products in the cart.', 'woocommerce' ); ?></li>
<?php endif; ?>
@ -57,13 +57,13 @@ global $woocommerce;
<?php if ( sizeof( $woocommerce->cart->get_cart() ) > 0 ) : ?>
<p class="total"><strong><?php _e('Subtotal', 'woocommerce'); ?>:</strong> <?php echo $woocommerce->cart->get_cart_subtotal(); ?></p>
<p class="total"><strong><?php _e( 'Subtotal', 'woocommerce' ); ?>:</strong> <?php echo $woocommerce->cart->get_cart_subtotal(); ?></p>
<?php do_action( 'woocommerce_widget_shopping_cart_before_buttons' ); ?>
<p class="buttons">
<a href="<?php echo $woocommerce->cart->get_cart_url(); ?>" class="button"><?php _e('View Cart &rarr;', 'woocommerce'); ?></a>
<a href="<?php echo $woocommerce->cart->get_checkout_url(); ?>" class="button checkout"><?php _e('Checkout &rarr;', 'woocommerce'); ?></a>
<a href="<?php echo $woocommerce->cart->get_cart_url(); ?>" class="button"><?php _e( 'View Cart &rarr;', 'woocommerce' ); ?></a>
<a href="<?php echo $woocommerce->cart->get_checkout_url(); ?>" class="button checkout"><?php _e( 'Checkout &rarr;', 'woocommerce' ); ?></a>
</p>
<?php endif; ?>

View File

@ -17,11 +17,11 @@ if ( get_option('woocommerce_enable_shipping_calc')=='no' || ! $woocommerce->car
<?php do_action( 'woocommerce_before_shipping_calculator' ); ?>
<form class="shipping_calculator" action="<?php echo esc_url( $woocommerce->cart->get_cart_url() ); ?>" method="post">
<h2><a href="#" class="shipping-calculator-button"><?php _e('Calculate Shipping', 'woocommerce'); ?> <span>&darr;</span></a></h2>
<h2><a href="#" class="shipping-calculator-button"><?php _e( 'Calculate Shipping', 'woocommerce' ); ?> <span>&darr;</span></a></h2>
<section class="shipping-calculator-form">
<p class="form-row form-row-first">
<select name="calc_shipping_country" id="calc_shipping_country" class="country_to_state" rel="calc_shipping_state">
<option value=""><?php _e('Select a country&hellip;', 'woocommerce'); ?></option>
<option value=""><?php _e( 'Select a country&hellip;', 'woocommerce' ); ?></option>
<?php
foreach( $woocommerce->countries->get_allowed_countries() as $key => $value )
echo '<option value="' . $key . '"' . selected( $woocommerce->customer->get_shipping_country(), $key, false ) . '>' . $value . '</option>';
@ -47,7 +47,7 @@ if ( get_option('woocommerce_enable_shipping_calc')=='no' || ! $woocommerce->car
// Dropdown
?>
<span>
<select name="calc_shipping_state" id="calc_shipping_state"><option value=""><?php _e('Select a state&hellip;', 'woocommerce'); ?></option><?php
<select name="calc_shipping_state" id="calc_shipping_state"><option value=""><?php _e( 'Select a state&hellip;', 'woocommerce' ); ?></option><?php
foreach ( $states as $ckey => $cvalue )
echo '<option value="' . $ckey . '" '.selected( $current_r, $ckey, false ) .'>' . __( $cvalue, 'woocommerce' ) .'</option>';
?></select>
@ -58,7 +58,7 @@ if ( get_option('woocommerce_enable_shipping_calc')=='no' || ! $woocommerce->car
// Input
?>
<input type="text" class="input-text" value="<?php echo esc_attr( $current_r ); ?>" placeholder="<?php _e('State', 'woocommerce'); ?>" name="calc_shipping_state" id="calc_shipping_state" />
<input type="text" class="input-text" value="<?php echo esc_attr( $current_r ); ?>" placeholder="<?php _e( 'State', 'woocommerce' ); ?>" name="calc_shipping_state" id="calc_shipping_state" />
<?php
}
@ -66,10 +66,10 @@ if ( get_option('woocommerce_enable_shipping_calc')=='no' || ! $woocommerce->car
</p>
<div class="clear"></div>
<p class="form-row form-row-wide">
<input type="text" class="input-text" value="<?php echo esc_attr( $woocommerce->customer->get_shipping_postcode() ); ?>" placeholder="<?php _e('Postcode/Zip', 'woocommerce'); ?>" title="<?php _e('Postcode', 'woocommerce'); ?>" name="calc_shipping_postcode" id="calc_shipping_postcode" />
<input type="text" class="input-text" value="<?php echo esc_attr( $woocommerce->customer->get_shipping_postcode() ); ?>" placeholder="<?php _e( 'Postcode/Zip', 'woocommerce' ); ?>" title="<?php _e( 'Postcode', 'woocommerce' ); ?>" name="calc_shipping_postcode" id="calc_shipping_postcode" />
</p>
<div class="clear"></div>
<p><button type="submit" name="calc_shipping" value="1" class="button"><?php _e('Update Totals', 'woocommerce'); ?></button></p>
<p><button type="submit" name="calc_shipping" value="1" class="button"><?php _e( 'Update Totals', 'woocommerce' ); ?></button></p>
<?php $woocommerce->nonce_field('cart') ?>
</section>
</form>

View File

@ -240,7 +240,7 @@ $available_methods = $woocommerce->shipping->get_available_shipping_methods();
<div class="woocommerce_info">
<p><?php _e('No shipping methods were found; please recalculate your shipping and enter your state/county and zip/postcode to ensure there are no other available methods for your location.', 'woocommerce'); ?></p>
<p><?php _e( 'No shipping methods were found; please recalculate your shipping and enter your state/county and zip/postcode to ensure there are no other available methods for your location.', 'woocommerce' ); ?></p>
</div>

View File

@ -13,8 +13,8 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
<?php $woocommerce->show_messages(); ?>
<p><?php _e('There are some issues with the items in your cart (shown above). Please go back to the cart page and resolve these issues before checking out.', 'woocommerce') ?></p>
<p><?php _e( 'There are some issues with the items in your cart (shown above). Please go back to the cart page and resolve these issues before checking out.', 'woocommerce' ) ?></p>
<?php do_action('woocommerce_cart_has_errors'); ?>
<p><a class="button" href="<?php echo get_permalink(woocommerce_get_page_id('cart')); ?>"><?php _e('&larr; Return To Cart', 'woocommerce') ?></a></p>
<p><a class="button" href="<?php echo get_permalink(woocommerce_get_page_id('cart')); ?>"><?php _e( '&larr; Return To Cart', 'woocommerce' ) ?></a></p>

View File

@ -14,11 +14,11 @@ global $woocommerce;
<?php if ( $woocommerce->cart->ship_to_billing_address_only() && $woocommerce->cart->needs_shipping() ) : ?>
<h3><?php _e('Billing &amp; Shipping', 'woocommerce'); ?></h3>
<h3><?php _e( 'Billing &amp; Shipping', 'woocommerce' ); ?></h3>
<?php else : ?>
<h3><?php _e('Billing Address', 'woocommerce'); ?></h3>
<h3><?php _e( 'Billing Address', 'woocommerce' ); ?></h3>
<?php endif; ?>
@ -37,7 +37,7 @@ global $woocommerce;
<?php if (get_option('woocommerce_enable_guest_checkout')=='yes') : ?>
<p class="form-row">
<input class="input-checkbox" id="createaccount" <?php checked($checkout->get_value('createaccount'), true) ?> type="checkbox" name="createaccount" value="1" /> <label for="createaccount" class="checkbox"><?php _e('Create an account?', 'woocommerce'); ?></label>
<input class="input-checkbox" id="createaccount" <?php checked($checkout->get_value('createaccount'), true) ?> type="checkbox" name="createaccount" value="1" /> <label for="createaccount" class="checkbox"><?php _e( 'Create an account?', 'woocommerce' ); ?></label>
</p>
<?php endif; ?>
@ -46,7 +46,7 @@ global $woocommerce;
<div class="create-account">
<p><?php _e('Create an account by entering the information below. If you are a returning customer please login at the top of the page.', 'woocommerce'); ?></p>
<p><?php _e( 'Create an account by entering the information below. If you are a returning customer please login at the top of the page.', 'woocommerce' ); ?></p>
<?php foreach ($checkout->checkout_fields['account'] as $key => $field) : ?>

View File

@ -18,7 +18,7 @@ global $woocommerce; $woocommerce_checkout = $woocommerce->checkout();
// If checkout registration is disabled and not logged in, the user cannot checkout
if (get_option('woocommerce_enable_signup_and_login_from_checkout')=="no" && get_option('woocommerce_enable_guest_checkout')=="no" && !is_user_logged_in()) :
echo apply_filters('woocommerce_checkout_must_be_logged_in_message', __('You must be logged in to checkout.', 'woocommerce'));
echo apply_filters('woocommerce_checkout_must_be_logged_in_message', __( 'You must be logged in to checkout.', 'woocommerce' ));
return;
endif;
@ -49,7 +49,7 @@ $get_checkout_url = apply_filters( 'woocommerce_get_checkout_url', $woocommerce-
<?php do_action( 'woocommerce_checkout_after_customer_details'); ?>
<h3 id="order_review_heading"><?php _e('Your order', 'woocommerce'); ?></h3>
<h3 id="order_review_heading"><?php _e( 'Your order', 'woocommerce' ); ?></h3>
<?php endif; ?>

View File

@ -11,19 +11,19 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( get_option( 'woocommerce_enable_coupons' ) == 'no' || get_option( 'woocommerce_enable_coupon_form_on_checkout' ) == 'no' ) return;
$info_message = apply_filters('woocommerce_checkout_coupon_message', __('Have a coupon?', 'woocommerce'));
$info_message = apply_filters('woocommerce_checkout_coupon_message', __( 'Have a coupon?', 'woocommerce' ));
?>
<p class="woocommerce_info"><?php echo $info_message; ?> <a href="#" class="showcoupon"><?php _e('Click here to enter your code', 'woocommerce'); ?></a></p>
<p class="woocommerce_info"><?php echo $info_message; ?> <a href="#" class="showcoupon"><?php _e( 'Click here to enter your code', 'woocommerce' ); ?></a></p>
<form class="checkout_coupon" method="post">
<p class="form-row form-row-first">
<input type="text" name="coupon_code" class="input-text" placeholder="<?php _e('Coupon code', 'woocommerce'); ?>" id="coupon_code" value="" />
<input type="text" name="coupon_code" class="input-text" placeholder="<?php _e( 'Coupon code', 'woocommerce' ); ?>" id="coupon_code" value="" />
</p>
<p class="form-row form-row-last">
<input type="submit" class="button" name="apply_coupon" value="<?php _e('Apply Coupon', 'woocommerce'); ?>" />
<input type="submit" class="button" name="apply_coupon" value="<?php _e( 'Apply Coupon', 'woocommerce' ); ?>" />
</p>
<div class="clear"></div>

View File

@ -12,9 +12,9 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( is_user_logged_in() ) return;
if ( get_option('woocommerce_enable_signup_and_login_from_checkout') == "no" ) return;
$info_message = apply_filters('woocommerce_checkout_login_message', __('Already registered?', 'woocommerce'));
$info_message = apply_filters('woocommerce_checkout_login_message', __( 'Already registered?', 'woocommerce' ));
?>
<p class="woocommerce_info"><?php echo $info_message; ?> <a href="#" class="showlogin"><?php _e('Click here to login', 'woocommerce'); ?></a></p>
<p class="woocommerce_info"><?php echo $info_message; ?> <a href="#" class="showlogin"><?php _e( 'Click here to login', 'woocommerce' ); ?></a></p>
<?php woocommerce_login_form( array( 'message' => __('If you have shopped with us before, please enter your details in the boxes below. If you are a new customer please proceed to the Billing &amp; Shipping section.', 'woocommerce'), 'redirect' => get_permalink(woocommerce_get_page_id('checkout')) ) ); ?>
<?php woocommerce_login_form( array( 'message' => __( 'If you have shopped with us before, please enter your details in the boxes below. If you are a new customer please proceed to the Billing &amp; Shipping section.', 'woocommerce' ), 'redirect' => get_permalink(woocommerce_get_page_id('checkout')) ) ); ?>

View File

@ -16,9 +16,9 @@ global $woocommerce;
<table class="shop_table">
<thead>
<tr>
<th><?php _e('Product', 'woocommerce'); ?></th>
<th><?php _e('Qty', 'woocommerce'); ?></th>
<th><?php _e('Totals', 'woocommerce'); ?></th>
<th><?php _e( 'Product', 'woocommerce' ); ?></th>
<th><?php _e( 'Qty', 'woocommerce' ); ?></th>
<th><?php _e( 'Totals', 'woocommerce' ); ?></th>
</tr>
</thead>
<tfoot>
@ -74,7 +74,7 @@ global $woocommerce;
endforeach;
else :
echo '<p>'.__('Sorry, it seems that there are no available payment methods for your location. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce').'</p>';
echo '<p>'.__( 'Sorry, it seems that there are no available payment methods for your location. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ).'</p>';
endif;
?>
@ -83,7 +83,7 @@ global $woocommerce;
<div class="form-row">
<?php $woocommerce->nonce_field('pay')?>
<input type="submit" class="button alt" id="place_order" value="<?php _e('Pay for order', 'woocommerce'); ?>" />
<input type="submit" class="button alt" id="place_order" value="<?php _e( 'Pay for order', 'woocommerce' ); ?>" />
<input type="hidden" name="woocommerce_pay" value="1" />
</div>

View File

@ -29,10 +29,10 @@ global $woocommerce;
<p class="form-row" id="shiptobilling">
<input id="shiptobilling-checkbox" class="input-checkbox" <?php checked($shiptobilling, 1); ?> type="checkbox" name="shiptobilling" value="1" />
<label for="shiptobilling-checkbox" class="checkbox"><?php _e('Ship to billing address?', 'woocommerce'); ?></label>
<label for="shiptobilling-checkbox" class="checkbox"><?php _e( 'Ship to billing address?', 'woocommerce' ); ?></label>
</p>
<h3><?php _e('Shipping Address', 'woocommerce'); ?></h3>
<h3><?php _e( 'Shipping Address', 'woocommerce' ); ?></h3>
<div class="shipping_address">
@ -56,7 +56,7 @@ global $woocommerce;
<?php if ($woocommerce->cart->ship_to_billing_address_only()) : ?>
<h3><?php _e('Additional Information', 'woocommerce'); ?></h3>
<h3><?php _e( 'Additional Information', 'woocommerce' ); ?></h3>
<?php endif; ?>

View File

@ -18,22 +18,22 @@ $available_methods = $woocommerce->shipping->get_available_shipping_methods();
<table class="shop_table">
<thead>
<tr>
<th class="product-name"><?php _e('Product', 'woocommerce'); ?></th>
<th class="product-quantity"><?php _e('Qty', 'woocommerce'); ?></th>
<th class="product-total"><?php _e('Totals', 'woocommerce'); ?></th>
<th class="product-name"><?php _e( 'Product', 'woocommerce' ); ?></th>
<th class="product-quantity"><?php _e( 'Qty', 'woocommerce' ); ?></th>
<th class="product-total"><?php _e( 'Totals', 'woocommerce' ); ?></th>
</tr>
</thead>
<tfoot>
<tr class="cart-subtotal">
<th colspan="2"><strong><?php _e('Cart Subtotal', 'woocommerce'); ?></strong></th>
<th colspan="2"><strong><?php _e( 'Cart Subtotal', 'woocommerce' ); ?></strong></th>
<td><?php echo $woocommerce->cart->get_cart_subtotal(); ?></td>
</tr>
<?php if ($woocommerce->cart->get_discounts_before_tax()) : ?>
<tr class="discount">
<th colspan="2"><?php _e('Cart Discount', 'woocommerce'); ?></th>
<th colspan="2"><?php _e( 'Cart Discount', 'woocommerce' ); ?></th>
<td>-<?php echo $woocommerce->cart->get_discounts_before_tax(); ?></td>
</tr>
@ -44,7 +44,7 @@ $available_methods = $woocommerce->shipping->get_available_shipping_methods();
<?php do_action('woocommerce_review_order_before_shipping'); ?>
<tr class="shipping">
<th colspan="2"><?php _e('Shipping', 'woocommerce'); ?></th>
<th colspan="2"><?php _e( 'Shipping', 'woocommerce' ); ?></th>
<td>
<?php
// If at least one shipping method is available
@ -108,9 +108,9 @@ $available_methods = $woocommerce->shipping->get_available_shipping_methods();
} else {
if ( ! $woocommerce->customer->get_shipping_country() || ! $woocommerce->customer->get_shipping_state() || ! $woocommerce->customer->get_shipping_postcode() ) {
echo '<p>'.__('Please fill in your details above to see available shipping methods.', 'woocommerce').'</p>';
echo '<p>'.__( 'Please fill in your details above to see available shipping methods.', 'woocommerce' ).'</p>';
} else {
echo '<p>'.__('Sorry, it seems that there are no available shipping methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce').'</p>';
echo '<p>'.__( 'Sorry, it seems that there are no available shipping methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ).'</p>';
}
}
@ -189,7 +189,7 @@ $available_methods = $woocommerce->shipping->get_available_shipping_methods();
<?php if ($woocommerce->cart->get_discounts_after_tax()) : ?>
<tr class="discount">
<th colspan="2"><?php _e('Order Discount', 'woocommerce'); ?></th>
<th colspan="2"><?php _e( 'Order Discount', 'woocommerce' ); ?></th>
<td>-<?php echo $woocommerce->cart->get_discounts_after_tax(); ?></td>
</tr>
@ -198,7 +198,7 @@ $available_methods = $woocommerce->shipping->get_available_shipping_methods();
<?php do_action('woocommerce_before_order_total'); ?>
<tr class="total">
<th colspan="2"><strong><?php _e('Order Total', 'woocommerce'); ?></strong></th>
<th colspan="2"><strong><?php _e( 'Order Total', 'woocommerce' ); ?></strong></th>
<td>
<strong><?php echo $woocommerce->cart->get_total(); ?></strong>
<?php
@ -290,9 +290,9 @@ $available_methods = $woocommerce->shipping->get_available_shipping_methods();
else :
if ( !$woocommerce->customer->get_country() ) :
echo '<p>'.__('Please fill in your details above to see available payment methods.', 'woocommerce').'</p>';
echo '<p>'.__( 'Please fill in your details above to see available payment methods.', 'woocommerce' ).'</p>';
else :
echo '<p>'.__('Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce').'</p>';
echo '<p>'.__( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ).'</p>';
endif;
endif;
@ -302,17 +302,17 @@ $available_methods = $woocommerce->shipping->get_available_shipping_methods();
<div class="form-row place-order">
<noscript><?php _e('Since your browser does not support JavaScript, or it is disabled, please ensure you click the <em>Update Totals</em> button before placing your order. You may be charged more than the amount stated above if you fail to do so.', 'woocommerce'); ?><br/><input type="submit" class="button alt" name="woocommerce_checkout_update_totals" value="<?php _e('Update totals', 'woocommerce'); ?>" /></noscript>
<noscript><?php _e( 'Since your browser does not support JavaScript, or it is disabled, please ensure you click the <em>Update Totals</em> button before placing your order. You may be charged more than the amount stated above if you fail to do so.', 'woocommerce' ); ?><br/><input type="submit" class="button alt" name="woocommerce_checkout_update_totals" value="<?php _e( 'Update totals', 'woocommerce' ); ?>" /></noscript>
<?php $woocommerce->nonce_field('process_checkout')?>
<?php do_action( 'woocommerce_review_order_before_submit' ); ?>
<input type="submit" class="button alt" name="woocommerce_checkout_place_order" id="place_order" value="<?php echo apply_filters('woocommerce_order_button_text', __('Place order', 'woocommerce')); ?>" />
<input type="submit" class="button alt" name="woocommerce_checkout_place_order" id="place_order" value="<?php echo apply_filters('woocommerce_order_button_text', __( 'Place order', 'woocommerce' )); ?>" />
<?php if (woocommerce_get_page_id('terms')>0) : ?>
<p class="form-row terms">
<label for="terms" class="checkbox"><?php _e('I accept the', 'woocommerce'); ?> <a href="<?php echo esc_url( get_permalink(woocommerce_get_page_id('terms')) ); ?>" target="_blank"><?php _e('terms &amp; conditions', 'woocommerce'); ?></a></label>
<label for="terms" class="checkbox"><?php _e( 'I accept the', 'woocommerce' ); ?> <a href="<?php echo esc_url( get_permalink(woocommerce_get_page_id('terms')) ); ?>" target="_blank"><?php _e( 'terms &amp; conditions', 'woocommerce' ); ?></a></label>
<input type="checkbox" class="input-checkbox" name="terms" <?php if (isset($_POST['terms'])) echo 'checked="checked"'; ?> id="terms" />
</p>
<?php endif; ?>

View File

@ -16,43 +16,43 @@ global $woocommerce;
<?php if (in_array($order->status, array('failed'))) : ?>
<p><?php _e('Unfortunately your order cannot be processed as the originating bank/merchant has declined your transaction.', 'woocommerce'); ?></p>
<p><?php _e( 'Unfortunately your order cannot be processed as the originating bank/merchant has declined your transaction.', 'woocommerce' ); ?></p>
<p><?php
if (is_user_logged_in()) :
_e('Please attempt your purchase again or go to your account page.', 'woocommerce');
_e( 'Please attempt your purchase again or go to your account page.', 'woocommerce' );
else :
_e('Please attempt your purchase again.', 'woocommerce');
_e( 'Please attempt your purchase again.', 'woocommerce' );
endif;
?></p>
<p>
<a href="<?php echo esc_url( $order->get_checkout_payment_url() ); ?>" class="button pay"><?php _e('Pay', 'woocommerce') ?></a>
<a href="<?php echo esc_url( $order->get_checkout_payment_url() ); ?>" class="button pay"><?php _e( 'Pay', 'woocommerce' ) ?></a>
<?php if (is_user_logged_in()) : ?>
<a href="<?php echo esc_url( get_permalink(woocommerce_get_page_id('myaccount')) ); ?>" class="button pay"><?php _e('My Account', 'woocommerce'); ?></a>
<a href="<?php echo esc_url( get_permalink(woocommerce_get_page_id('myaccount')) ); ?>" class="button pay"><?php _e( 'My Account', 'woocommerce' ); ?></a>
<?php endif; ?>
</p>
<?php else : ?>
<p><?php _e('Thank you. Your order has been received.', 'woocommerce'); ?></p>
<p><?php _e( 'Thank you. Your order has been received.', 'woocommerce' ); ?></p>
<ul class="order_details">
<li class="order">
<?php _e('Order:', 'woocommerce'); ?>
<?php _e( 'Order:', 'woocommerce' ); ?>
<strong><?php echo $order->get_order_number(); ?></strong>
</li>
<li class="date">
<?php _e('Date:', 'woocommerce'); ?>
<?php _e( 'Date:', 'woocommerce' ); ?>
<strong><?php echo date_i18n(get_option('date_format'), strtotime($order->order_date)); ?></strong>
</li>
<li class="total">
<?php _e('Total:', 'woocommerce'); ?>
<?php _e( 'Total:', 'woocommerce' ); ?>
<strong><?php echo $order->get_formatted_order_total(); ?></strong>
</li>
<?php if ($order->payment_method_title) : ?>
<li class="method">
<?php _e('Payment method:', 'woocommerce'); ?>
<?php _e( 'Payment method:', 'woocommerce' ); ?>
<strong><?php
echo $order->payment_method_title;
?></strong>
@ -68,6 +68,6 @@ global $woocommerce;
<?php else : ?>
<p><?php _e('Thank you. Your order has been received.', 'woocommerce'); ?></p>
<p><?php _e( 'Thank you. Your order has been received.', 'woocommerce' ); ?></p>
<?php endif; ?>

View File

@ -14,14 +14,14 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<?php do_action( 'woocommerce_email_before_order_table', $order, true ); ?>
<h2><?php printf( __( 'Order: %s', 'woocommerce'), $order->get_order_number() ); ?> (<?php printf( '<time datetime="%s">%s</time>', date_i18n( 'c', strtotime( $order->order_date ) ), date_i18n( __('jS F Y', 'woocommerce'), strtotime( $order->order_date ) ) ); ?>)</h2>
<h2><?php printf( __( 'Order: %s', 'woocommerce'), $order->get_order_number() ); ?> (<?php printf( '<time datetime="%s">%s</time>', date_i18n( 'c', strtotime( $order->order_date ) ), date_i18n( __( 'jS F Y', 'woocommerce' ), strtotime( $order->order_date ) ) ); ?>)</h2>
<table cellspacing="0" cellpadding="6" style="width: 100%; border: 1px solid #eee;" border="1" bordercolor="#eee">
<thead>
<tr>
<th scope="col"><?php _e('Product', 'woocommerce'); ?></th>
<th scope="col"><?php _e('Quantity', 'woocommerce'); ?></th>
<th scope="col"><?php _e('Price', 'woocommerce'); ?></th>
<th scope="col"><?php _e( 'Product', 'woocommerce' ); ?></th>
<th scope="col"><?php _e( 'Quantity', 'woocommerce' ); ?></th>
<th scope="col"><?php _e( 'Price', 'woocommerce' ); ?></th>
</tr>
</thead>
<tbody>
@ -48,10 +48,10 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<h2><?php _e( 'Customer details', 'woocommerce' ); ?></h2>
<?php if ( $order->billing_email ) : ?>
<p><strong><?php _e('Email:', 'woocommerce'); ?></strong> <?php echo $order->billing_email; ?></p>
<p><strong><?php _e( 'Email:', 'woocommerce' ); ?></strong> <?php echo $order->billing_email; ?></p>
<?php endif; ?>
<?php if ( $order->billing_phone ) : ?>
<p><strong><?php _e('Tel:', 'woocommerce'); ?></strong> <?php echo $order->billing_phone; ?></p>
<p><strong><?php _e( 'Tel:', 'woocommerce' ); ?></strong> <?php echo $order->billing_phone; ?></p>
<?php endif; ?>
<?php woocommerce_get_template( 'emails/email-addresses.php', array( 'order' => $order ) ); ?>

View File

@ -15,14 +15,14 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<?php do_action('woocommerce_email_before_order_table', $order, false); ?>
<h2><?php echo __('Order:', 'woocommerce') . ' ' . $order->get_order_number(); ?></h2>
<h2><?php echo __( 'Order:', 'woocommerce' ) . ' ' . $order->get_order_number(); ?></h2>
<table cellspacing="0" cellpadding="6" style="width: 100%; border: 1px solid #eee;" border="1" bordercolor="#eee">
<thead>
<tr>
<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e('Product', 'woocommerce'); ?></th>
<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e('Quantity', 'woocommerce'); ?></th>
<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e('Price', 'woocommerce'); ?></th>
<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e( 'Product', 'woocommerce' ); ?></th>
<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e( 'Quantity', 'woocommerce' ); ?></th>
<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e( 'Price', 'woocommerce' ); ?></th>
</tr>
</thead>
<tbody>
@ -48,13 +48,13 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<?php do_action( 'woocommerce_email_order_meta', $order, false ); ?>
<h2><?php _e('Customer details', 'woocommerce'); ?></h2>
<h2><?php _e( 'Customer details', 'woocommerce' ); ?></h2>
<?php if ($order->billing_email) : ?>
<p><strong><?php _e('Email:', 'woocommerce'); ?></strong> <?php echo $order->billing_email; ?></p>
<p><strong><?php _e( 'Email:', 'woocommerce' ); ?></strong> <?php echo $order->billing_email; ?></p>
<?php endif; ?>
<?php if ($order->billing_phone) : ?>
<p><strong><?php _e('Tel:', 'woocommerce'); ?></strong> <?php echo $order->billing_phone; ?></p>
<p><strong><?php _e( 'Tel:', 'woocommerce' ); ?></strong> <?php echo $order->billing_phone; ?></p>
<?php endif; ?>
<?php woocommerce_get_template('emails/email-addresses.php', array( 'order' => $order )); ?>

View File

@ -19,14 +19,14 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<?php do_action('woocommerce_email_before_order_table', $order, false); ?>
<h2><?php echo __('Order:', 'woocommerce') . ' ' . $order->get_order_number(); ?> (<?php printf( '<time datetime="%s">%s</time>', date_i18n( 'c', strtotime( $order->order_date ) ), date_i18n( __('jS F Y', 'woocommerce'), strtotime( $order->order_date ) ) ); ?>)</h2>
<h2><?php echo __( 'Order:', 'woocommerce' ) . ' ' . $order->get_order_number(); ?> (<?php printf( '<time datetime="%s">%s</time>', date_i18n( 'c', strtotime( $order->order_date ) ), date_i18n( __( 'jS F Y', 'woocommerce' ), strtotime( $order->order_date ) ) ); ?>)</h2>
<table cellspacing="0" cellpadding="6" style="width: 100%; border: 1px solid #eee;" border="1" bordercolor="#eee">
<thead>
<tr>
<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e('Product', 'woocommerce'); ?></th>
<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e('Quantity', 'woocommerce'); ?></th>
<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e('Price', 'woocommerce'); ?></th>
<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e( 'Product', 'woocommerce' ); ?></th>
<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e( 'Quantity', 'woocommerce' ); ?></th>
<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e( 'Price', 'woocommerce' ); ?></th>
</tr>
</thead>
<tbody>

View File

@ -19,14 +19,14 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<?php do_action('woocommerce_email_before_order_table', $order, false); ?>
<h2><?php echo __('Order:', 'woocommerce') . ' ' . $order->get_order_number(); ?></h2>
<h2><?php echo __( 'Order:', 'woocommerce' ) . ' ' . $order->get_order_number(); ?></h2>
<table cellspacing="0" cellpadding="6" style="width: 100%; border: 1px solid #eee;" border="1" bordercolor="#eee">
<thead>
<tr>
<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e('Product', 'woocommerce'); ?></th>
<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e('Quantity', 'woocommerce'); ?></th>
<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e('Price', 'woocommerce'); ?></th>
<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e( 'Product', 'woocommerce' ); ?></th>
<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e( 'Quantity', 'woocommerce' ); ?></th>
<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e( 'Price', 'woocommerce' ); ?></th>
</tr>
</thead>
<tbody>
@ -52,13 +52,13 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<?php do_action( 'woocommerce_email_order_meta', $order, false ); ?>
<h2><?php _e('Customer details', 'woocommerce'); ?></h2>
<h2><?php _e( 'Customer details', 'woocommerce' ); ?></h2>
<?php if ($order->billing_email) : ?>
<p><strong><?php _e('Email:', 'woocommerce'); ?></strong> <?php echo $order->billing_email; ?></p>
<p><strong><?php _e( 'Email:', 'woocommerce' ); ?></strong> <?php echo $order->billing_email; ?></p>
<?php endif; ?>
<?php if ($order->billing_phone) : ?>
<p><strong><?php _e('Tel:', 'woocommerce'); ?></strong> <?php echo $order->billing_phone; ?></p>
<p><strong><?php _e( 'Tel:', 'woocommerce' ); ?></strong> <?php echo $order->billing_phone; ?></p>
<?php endif; ?>
<?php woocommerce_get_template('emails/email-addresses.php', array( 'order' => $order )); ?>

View File

@ -15,14 +15,14 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<?php do_action('woocommerce_email_before_order_table', $order, false); ?>
<h2><?php echo __('Order:', 'woocommerce') . ' ' . $order->get_order_number(); ?></h2>
<h2><?php echo __( 'Order:', 'woocommerce' ) . ' ' . $order->get_order_number(); ?></h2>
<table cellspacing="0" cellpadding="6" style="width: 100%; border: 1px solid #eee;" border="1" bordercolor="#eee">
<thead>
<tr>
<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e('Product', 'woocommerce'); ?></th>
<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e('Quantity', 'woocommerce'); ?></th>
<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e('Price', 'woocommerce'); ?></th>
<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e( 'Product', 'woocommerce' ); ?></th>
<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e( 'Quantity', 'woocommerce' ); ?></th>
<th scope="col" style="text-align:left; border: 1px solid #eee;"><?php _e( 'Price', 'woocommerce' ); ?></th>
</tr>
</thead>
<tbody>
@ -48,13 +48,13 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<?php do_action( 'woocommerce_email_order_meta', $order, false ); ?>
<h2><?php _e('Customer details', 'woocommerce'); ?></h2>
<h2><?php _e( 'Customer details', 'woocommerce' ); ?></h2>
<?php if ($order->billing_email) : ?>
<p><strong><?php _e('Email:', 'woocommerce'); ?></strong> <?php echo $order->billing_email; ?></p>
<p><strong><?php _e( 'Email:', 'woocommerce' ); ?></strong> <?php echo $order->billing_email; ?></p>
<?php endif; ?>
<?php if ($order->billing_phone) : ?>
<p><strong><?php _e('Tel:', 'woocommerce'); ?></strong> <?php echo $order->billing_phone; ?></p>
<p><strong><?php _e( 'Tel:', 'woocommerce' ); ?></strong> <?php echo $order->billing_phone; ?></p>
<?php endif; ?>
<?php woocommerce_get_template('emails/email-addresses.php', array( 'order' => $order )); ?>

View File

@ -15,7 +15,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
<td valign="top" width="50%">
<h3><?php _e('Billing address', 'woocommerce'); ?></h3>
<h3><?php _e( 'Billing address', 'woocommerce' ); ?></h3>
<p><?php echo $order->get_formatted_billing_address(); ?></p>
@ -25,7 +25,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
<td valign="top" width="50%">
<h3><?php _e('Shipping address', 'woocommerce'); ?></h3>
<h3><?php _e( 'Shipping address', 'woocommerce' ); ?></h3>
<p><?php echo $shipping; ?></p>

View File

@ -17,7 +17,7 @@ echo "****************************************************\n\n";
do_action( 'woocommerce_email_before_order_table', $order, true );
echo sprintf( __( 'Order number: %s', 'woocommerce'), $order->get_order_number() ) . "\n";
echo sprintf( __( 'Order date: %s', 'woocommerce'), date_i18n( __('jS F Y', 'woocommerce'), strtotime( $order->order_date ) ) ) . "\n";
echo sprintf( __( 'Order date: %s', 'woocommerce'), date_i18n( __( 'jS F Y', 'woocommerce' ), strtotime( $order->order_date ) ) ) . "\n";
do_action( 'woocommerce_email_order_meta', $order, true, true );
@ -38,10 +38,10 @@ do_action( 'woocommerce_email_after_order_table', $order, true, true );
_e( 'Customer details', 'woocommerce' );
if ( $order->billing_email )
echo __('Email:', 'woocommerce'); echo $order->billing_email. "\n";
echo __( 'Email:', 'woocommerce' ); echo $order->billing_email. "\n";
if ( $order->billing_phone )
echo __('Tel:', 'woocommerce'); ?> <?php echo $order->billing_phone. "\n";
echo __( 'Tel:', 'woocommerce' ); ?> <?php echo $order->billing_phone. "\n";
woocommerce_get_template( 'emails/plain/email-addresses.php', array( 'order' => $order ) );

View File

@ -17,7 +17,7 @@ echo "****************************************************\n\n";
do_action( 'woocommerce_email_before_order_table', $order, false );
echo sprintf( __( 'Order number: %s', 'woocommerce'), $order->get_order_number() ) . "\n";
echo sprintf( __( 'Order date: %s', 'woocommerce'), date_i18n( __('jS F Y', 'woocommerce'), strtotime( $order->order_date ) ) ) . "\n";
echo sprintf( __( 'Order date: %s', 'woocommerce'), date_i18n( __( 'jS F Y', 'woocommerce' ), strtotime( $order->order_date ) ) ) . "\n";
do_action( 'woocommerce_email_order_meta', $order, false, true );
@ -38,10 +38,10 @@ do_action( 'woocommerce_email_after_order_table', $order, false, true );
echo __( 'Your details', 'woocommerce' ) . "\n\n";
if ( $order->billing_email )
echo __('Email:', 'woocommerce'); echo $order->billing_email. "\n";
echo __( 'Email:', 'woocommerce' ); echo $order->billing_email. "\n";
if ( $order->billing_phone )
echo __('Tel:', 'woocommerce'); ?> <?php echo $order->billing_phone. "\n";
echo __( 'Tel:', 'woocommerce' ); ?> <?php echo $order->billing_phone. "\n";
woocommerce_get_template( 'emails/plain/email-addresses.php', array( 'order' => $order ) );

View File

@ -18,7 +18,7 @@ echo "****************************************************\n\n";
do_action( 'woocommerce_email_before_order_table', $order, false );
echo sprintf( __( 'Order number: %s', 'woocommerce'), $order->get_order_number() ) . "\n";
echo sprintf( __( 'Order date: %s', 'woocommerce'), date_i18n( __('jS F Y', 'woocommerce'), strtotime( $order->order_date ) ) ) . "\n";
echo sprintf( __( 'Order date: %s', 'woocommerce'), date_i18n( __( 'jS F Y', 'woocommerce' ), strtotime( $order->order_date ) ) ) . "\n";
do_action( 'woocommerce_email_order_meta', $order, false, true );

View File

@ -25,7 +25,7 @@ echo "****************************************************\n\n";
do_action( 'woocommerce_email_before_order_table', $order, false );
echo sprintf( __( 'Order number: %s', 'woocommerce'), $order->get_order_number() ) . "\n";
echo sprintf( __( 'Order date: %s', 'woocommerce'), date_i18n( __('jS F Y', 'woocommerce'), strtotime( $order->order_date ) ) ) . "\n";
echo sprintf( __( 'Order date: %s', 'woocommerce'), date_i18n( __( 'jS F Y', 'woocommerce' ), strtotime( $order->order_date ) ) ) . "\n";
do_action( 'woocommerce_email_order_meta', $order, false, true );
@ -46,10 +46,10 @@ do_action( 'woocommerce_email_after_order_table', $order, false, true );
echo __( 'Your details', 'woocommerce' ) . "\n\n";
if ( $order->billing_email )
echo __('Email:', 'woocommerce'); echo $order->billing_email. "\n";
echo __( 'Email:', 'woocommerce' ); echo $order->billing_email. "\n";
if ( $order->billing_phone )
echo __('Tel:', 'woocommerce'); ?> <?php echo $order->billing_phone. "\n";
echo __( 'Tel:', 'woocommerce' ); ?> <?php echo $order->billing_phone. "\n";
woocommerce_get_template( 'emails/plain/email-addresses.php', array( 'order' => $order ) );

View File

@ -17,7 +17,7 @@ echo "****************************************************\n\n";
do_action( 'woocommerce_email_before_order_table', $order, false );
echo sprintf( __( 'Order number: %s', 'woocommerce'), $order->get_order_number() ) . "\n";
echo sprintf( __( 'Order date: %s', 'woocommerce'), date_i18n( __('jS F Y', 'woocommerce'), strtotime( $order->order_date ) ) ) . "\n";
echo sprintf( __( 'Order date: %s', 'woocommerce'), date_i18n( __( 'jS F Y', 'woocommerce' ), strtotime( $order->order_date ) ) ) . "\n";
do_action( 'woocommerce_email_order_meta', $order, false, true );
@ -38,10 +38,10 @@ do_action( 'woocommerce_email_after_order_table', $order, false, true );
echo __( 'Your details', 'woocommerce' ) . "\n\n";
if ( $order->billing_email )
echo __('Email:', 'woocommerce'); echo $order->billing_email. "\n";
echo __( 'Email:', 'woocommerce' ); echo $order->billing_email. "\n";
if ( $order->billing_phone )
echo __('Tel:', 'woocommerce'); ?> <?php echo $order->billing_phone. "\n";
echo __( 'Tel:', 'woocommerce' ); ?> <?php echo $order->billing_phone. "\n";
woocommerce_get_template( 'emails/plain/email-addresses.php', array( 'order' => $order ) );

View File

@ -25,19 +25,19 @@ if ( ! $product->is_purchasable() && ! in_array( $product->product_type, array(
switch ( $product->product_type ) {
case "variable" :
$link = apply_filters( 'variable_add_to_cart_url', get_permalink( $product->id ) );
$label = apply_filters( 'variable_add_to_cart_text', __('Select options', 'woocommerce') );
$label = apply_filters( 'variable_add_to_cart_text', __( 'Select options', 'woocommerce' ) );
break;
case "grouped" :
$link = apply_filters( 'grouped_add_to_cart_url', get_permalink( $product->id ) );
$label = apply_filters( 'grouped_add_to_cart_text', __('View options', 'woocommerce') );
$label = apply_filters( 'grouped_add_to_cart_text', __( 'View options', 'woocommerce' ) );
break;
case "external" :
$link = apply_filters( 'external_add_to_cart_url', get_permalink( $product->id ) );
$label = apply_filters( 'external_add_to_cart_text', __('Read More', 'woocommerce') );
$label = apply_filters( 'external_add_to_cart_text', __( 'Read More', 'woocommerce' ) );
break;
default :
$link = apply_filters( 'add_to_cart_url', esc_url( $product->add_to_cart_url() ) );
$label = apply_filters( 'add_to_cart_text', __('Add to cart', 'woocommerce') );
$label = apply_filters( 'add_to_cart_text', __( 'Add to cart', 'woocommerce' ) );
break;
}

View File

@ -13,6 +13,6 @@ global $post, $product;
?>
<?php if ($product->is_on_sale()) : ?>
<?php echo apply_filters('woocommerce_sale_flash', '<span class="onsale">'.__('Sale!', 'woocommerce').'</span>', $post, $product); ?>
<?php echo apply_filters('woocommerce_sale_flash', '<span class="onsale">'.__( 'Sale!', 'woocommerce' ).'</span>', $post, $product); ?>
<?php endif; ?>

View File

@ -17,16 +17,16 @@ global $woocommerce;
<form action="<?php echo esc_url( get_permalink(woocommerce_get_page_id('change_password')) ); ?>" method="post">
<p class="form-row form-row-first">
<label for="password_1"><?php _e('New password', 'woocommerce'); ?> <span class="required">*</span></label>
<label for="password_1"><?php _e( 'New password', 'woocommerce' ); ?> <span class="required">*</span></label>
<input type="password" class="input-text" name="password_1" id="password_1" />
</p>
<p class="form-row form-row-last">
<label for="password_2"><?php _e('Re-enter new password', 'woocommerce'); ?> <span class="required">*</span></label>
<label for="password_2"><?php _e( 'Re-enter new password', 'woocommerce' ); ?> <span class="required">*</span></label>
<input type="password" class="input-text" name="password_2" id="password_2" />
</p>
<div class="clear"></div>
<p><input type="submit" class="button" name="change_password" value="<?php _e('Save', 'woocommerce'); ?>" /></p>
<p><input type="submit" class="button" name="change_password" value="<?php _e( 'Save', 'woocommerce' ); ?>" /></p>
<?php $woocommerce->nonce_field('change_password')?>
<input type="hidden" name="action" value="change_password" />

View File

@ -24,7 +24,7 @@ get_currentuserinfo();
<form action="<?php echo esc_url( add_query_arg( 'address', $load_address, get_permalink( woocommerce_get_page_id('edit_address') ) ) ); ?>" method="post">
<h3><?php if ($load_address=='billing') _e('Billing Address', 'woocommerce'); else _e('Shipping Address', 'woocommerce'); ?></h3>
<h3><?php if ($load_address=='billing') _e( 'Billing Address', 'woocommerce' ); else _e( 'Shipping Address', 'woocommerce' ); ?></h3>
<?php
foreach ($address as $key => $field) :
@ -39,7 +39,7 @@ get_currentuserinfo();
endforeach;
?>
<input type="submit" class="button" name="save_address" value="<?php _e('Save Address', 'woocommerce'); ?>" />
<input type="submit" class="button" name="save_address" value="<?php _e( 'Save Address', 'woocommerce' ); ?>" />
<?php $woocommerce->nonce_field('edit_address') ?>
<input type="hidden" name="action" value="edit_address" />

View File

@ -23,21 +23,21 @@ global $woocommerce; ?>
<?php endif; ?>
<h2><?php _e('Login', 'woocommerce'); ?></h2>
<h2><?php _e( 'Login', 'woocommerce' ); ?></h2>
<form method="post" class="login">
<p class="form-row form-row-first">
<label for="username"><?php _e('Username or email', 'woocommerce'); ?> <span class="required">*</span></label>
<label for="username"><?php _e( 'Username or email', 'woocommerce' ); ?> <span class="required">*</span></label>
<input type="text" class="input-text" name="username" id="username" />
</p>
<p class="form-row form-row-last">
<label for="password"><?php _e('Password', 'woocommerce'); ?> <span class="required">*</span></label>
<label for="password"><?php _e( 'Password', 'woocommerce' ); ?> <span class="required">*</span></label>
<input class="input-text" type="password" name="password" id="password" />
</p>
<div class="clear"></div>
<p class="form-row">
<?php $woocommerce->nonce_field('login', 'login') ?>
<input type="submit" class="button" name="login" value="<?php _e('Login', 'woocommerce'); ?>" />
<input type="submit" class="button" name="login" value="<?php _e( 'Login', 'woocommerce' ); ?>" />
<a class="lost_password" href="<?php
$lost_password_page_id = woocommerce_get_page_id( 'lost_password' );
@ -47,7 +47,7 @@ global $woocommerce; ?>
else
echo esc_url( wp_lostpassword_url( home_url() ) );
?>"><?php _e('Lost Password?', 'woocommerce'); ?></a>
?>"><?php _e( 'Lost Password?', 'woocommerce' ); ?></a>
</p>
</form>
@ -57,13 +57,13 @@ global $woocommerce; ?>
<div class="col-2">
<h2><?php _e('Register', 'woocommerce'); ?></h2>
<h2><?php _e( 'Register', 'woocommerce' ); ?></h2>
<form method="post" class="register">
<?php if ( get_option( 'woocommerce_registration_email_for_username' ) == 'no' ) : ?>
<p class="form-row form-row-first">
<label for="reg_username"><?php _e('Username', 'woocommerce'); ?> <span class="required">*</span></label>
<label for="reg_username"><?php _e( 'Username', 'woocommerce' ); ?> <span class="required">*</span></label>
<input type="text" class="input-text" name="username" id="reg_username" value="<?php if (isset($_POST['username'])) echo esc_attr($_POST['username']); ?>" />
</p>
@ -75,18 +75,18 @@ global $woocommerce; ?>
<?php endif; ?>
<label for="reg_email"><?php _e('Email', 'woocommerce'); ?> <span class="required">*</span></label>
<label for="reg_email"><?php _e( 'Email', 'woocommerce' ); ?> <span class="required">*</span></label>
<input type="email" class="input-text" name="email" id="reg_email" value="<?php if (isset($_POST['email'])) echo esc_attr($_POST['email']); ?>" />
</p>
<div class="clear"></div>
<p class="form-row form-row-first">
<label for="reg_password"><?php _e('Password', 'woocommerce'); ?> <span class="required">*</span></label>
<label for="reg_password"><?php _e( 'Password', 'woocommerce' ); ?> <span class="required">*</span></label>
<input type="password" class="input-text" name="password" id="reg_password" value="<?php if (isset($_POST['password'])) echo esc_attr($_POST['password']); ?>" />
</p>
<p class="form-row form-row-last">
<label for="reg_password2"><?php _e('Re-enter password', 'woocommerce'); ?> <span class="required">*</span></label>
<label for="reg_password2"><?php _e( 'Re-enter password', 'woocommerce' ); ?> <span class="required">*</span></label>
<input type="password" class="input-text" name="password2" id="reg_password2" value="<?php if (isset($_POST['password2'])) echo esc_attr($_POST['password2']); ?>" />
</p>
<div class="clear"></div>
@ -98,7 +98,7 @@ global $woocommerce; ?>
<p class="form-row">
<?php $woocommerce->nonce_field('register', 'register') ?>
<input type="submit" class="button" name="register" value="<?php _e('Register', 'woocommerce'); ?>" />
<input type="submit" class="button" name="register" value="<?php _e( 'Register', 'woocommerce' ); ?>" />
</p>
</form>

View File

@ -23,8 +23,8 @@ $customer_id = get_current_user_id();
<?php endif; ?>
<header class="title">
<h3><?php _e('Billing Address', 'woocommerce'); ?></h3>
<a href="<?php echo esc_url( add_query_arg('address', 'billing', get_permalink(woocommerce_get_page_id('edit_address'))) ); ?>" class="edit"><?php _e('Edit', 'woocommerce'); ?></a>
<h3><?php _e( 'Billing Address', 'woocommerce' ); ?></h3>
<a href="<?php echo esc_url( add_query_arg('address', 'billing', get_permalink(woocommerce_get_page_id('edit_address'))) ); ?>" class="edit"><?php _e( 'Edit', 'woocommerce' ); ?></a>
</header>
<address>
<?php
@ -42,7 +42,7 @@ $customer_id = get_current_user_id();
$formatted_address = $woocommerce->countries->get_formatted_address( $address );
if (!$formatted_address) _e('You have not set up a billing address yet.', 'woocommerce'); else echo $formatted_address;
if (!$formatted_address) _e( 'You have not set up a billing address yet.', 'woocommerce' ); else echo $formatted_address;
?>
</address>
@ -54,8 +54,8 @@ $customer_id = get_current_user_id();
<div class="col-2">
<header class="title">
<h3><?php _e('Shipping Address', 'woocommerce'); ?></h3>
<a href="<?php echo esc_url( add_query_arg('address', 'shipping', get_permalink(woocommerce_get_page_id('edit_address'))) ); ?>" class="edit"><?php _e('Edit', 'woocommerce'); ?></a>
<h3><?php _e( 'Shipping Address', 'woocommerce' ); ?></h3>
<a href="<?php echo esc_url( add_query_arg('address', 'shipping', get_permalink(woocommerce_get_page_id('edit_address'))) ); ?>" class="edit"><?php _e( 'Edit', 'woocommerce' ); ?></a>
</header>
<address>
<?php
@ -73,7 +73,7 @@ $customer_id = get_current_user_id();
$formatted_address = $woocommerce->countries->get_formatted_address( $address );
if (!$formatted_address) _e('You have not set up a shipping address yet.', 'woocommerce'); else echo $formatted_address;
if (!$formatted_address) _e( 'You have not set up a shipping address yet.', 'woocommerce' ); else echo $formatted_address;
?>
</address>

View File

@ -30,10 +30,10 @@ if ($customer_orders) :
<thead>
<tr>
<th class="order-number"><span class="nobr"><?php _e('Order', 'woocommerce'); ?></span></th>
<th class="order-shipto"><span class="nobr"><?php _e('Ship to', 'woocommerce'); ?></span></th>
<th class="order-total"><span class="nobr"><?php _e('Total', 'woocommerce'); ?></span></th>
<th class="order-status" colspan="2"><span class="nobr"><?php _e('Status', 'woocommerce'); ?></span></th>
<th class="order-number"><span class="nobr"><?php _e( 'Order', 'woocommerce' ); ?></span></th>
<th class="order-shipto"><span class="nobr"><?php _e( 'Ship to', 'woocommerce' ); ?></span></th>
<th class="order-total"><span class="nobr"><?php _e( 'Total', 'woocommerce' ); ?></span></th>
<th class="order-status" colspan="2"><span class="nobr"><?php _e( 'Status', 'woocommerce' ); ?></span></th>
</tr>
</thead>
@ -54,16 +54,16 @@ if ($customer_orders) :
<td class="order-status" style="text-align:left; white-space:nowrap;">
<?php echo ucfirst( __( $status->name, 'woocommerce' ) ); ?>
<?php if (in_array($order->status, array('pending', 'failed'))) : ?>
<a href="<?php echo esc_url( $order->get_cancel_order_url() ); ?>" class="cancel" title="<?php _e('Click to cancel this order', 'woocommerce'); ?>">(<?php _e('Cancel', 'woocommerce'); ?>)</a>
<a href="<?php echo esc_url( $order->get_cancel_order_url() ); ?>" class="cancel" title="<?php _e( 'Click to cancel this order', 'woocommerce' ); ?>">(<?php _e( 'Cancel', 'woocommerce' ); ?>)</a>
<?php endif; ?>
</td>
<td class="order-actions" style="text-align:right; white-space:nowrap;">
<?php if (in_array($order->status, array('pending', 'failed'))) : ?>
<a href="<?php echo esc_url( $order->get_checkout_payment_url() ); ?>" class="button pay"><?php _e('Pay', 'woocommerce'); ?></a>
<a href="<?php echo esc_url( $order->get_checkout_payment_url() ); ?>" class="button pay"><?php _e( 'Pay', 'woocommerce' ); ?></a>
<?php endif; ?>
<a href="<?php echo esc_url( add_query_arg('order', $order->id, get_permalink(woocommerce_get_page_id('view_order'))) ); ?>" class="button"><?php _e('View', 'woocommerce'); ?></a>
<a href="<?php echo esc_url( add_query_arg('order', $order->id, get_permalink(woocommerce_get_page_id('view_order'))) ); ?>" class="button"><?php _e( 'View', 'woocommerce' ); ?></a>
</td>
@ -75,7 +75,7 @@ if ($customer_orders) :
<?php
else :
?>
<p><?php _e('You have no recent orders.', 'woocommerce'); ?></p>
<p><?php _e( 'You have no recent orders.', 'woocommerce' ); ?></p>
<?php
endif;
?>

View File

@ -14,13 +14,13 @@ global $woocommerce, $post;
<form action="<?php echo esc_url( get_permalink($post->ID) ); ?>" method="post" class="track_order">
<p><?php _e('To track your order please enter your Order ID in the box below and press return. This was given to you on your receipt and in the confirmation email you should have received.', 'woocommerce'); ?></p>
<p><?php _e( 'To track your order please enter your Order ID in the box below and press return. This was given to you on your receipt and in the confirmation email you should have received.', 'woocommerce' ); ?></p>
<p class="form-row form-row-first"><label for="orderid"><?php _e('Order ID', 'woocommerce'); ?></label> <input class="input-text" type="text" name="orderid" id="orderid" placeholder="<?php _e('Found in your order confirmation email.', 'woocommerce'); ?>" /></p>
<p class="form-row form-row-last"><label for="order_email"><?php _e('Billing Email', 'woocommerce'); ?></label> <input class="input-text" type="text" name="order_email" id="order_email" placeholder="<?php _e('Email you used during checkout.', 'woocommerce'); ?>" /></p>
<p class="form-row form-row-first"><label for="orderid"><?php _e( 'Order ID', 'woocommerce' ); ?></label> <input class="input-text" type="text" name="orderid" id="orderid" placeholder="<?php _e( 'Found in your order confirmation email.', 'woocommerce' ); ?>" /></p>
<p class="form-row form-row-last"><label for="order_email"><?php _e( 'Billing Email', 'woocommerce' ); ?></label> <input class="input-text" type="text" name="order_email" id="order_email" placeholder="<?php _e( 'Email you used during checkout.', 'woocommerce' ); ?>" /></p>
<div class="clear"></div>
<p class="form-row"><input type="submit" class="button" name="track" value="<?php _e('Track"', 'woocommerce'); ?>" /></p>
<p class="form-row"><input type="submit" class="button" name="track" value="<?php _e( 'Track"', 'woocommerce' ); ?>" /></p>
<?php $woocommerce->nonce_field('order_tracking') ?>
</form>

View File

@ -13,13 +13,13 @@ global $woocommerce;
$order = new WC_Order( $order_id );
?>
<h2><?php _e('Order Details', 'woocommerce'); ?></h2>
<h2><?php _e( 'Order Details', 'woocommerce' ); ?></h2>
<table class="shop_table order_details">
<thead>
<tr>
<th class="product-name"><?php _e('Product', 'woocommerce'); ?></th>
<th class="product-quantity"><?php _e('Qty', 'woocommerce'); ?></th>
<th class="product-total"><?php _e('Totals', 'woocommerce'); ?></th>
<th class="product-name"><?php _e( 'Product', 'woocommerce' ); ?></th>
<th class="product-quantity"><?php _e( 'Qty', 'woocommerce' ); ?></th>
<th class="product-total"><?php _e( 'Totals', 'woocommerce' ); ?></th>
</tr>
</thead>
<tfoot>
@ -59,7 +59,7 @@ $order = new WC_Order( $order_id );
$download_file_urls = $order->get_downloadable_file_urls( $item['id'], $item['variation_id'], $item );
foreach ( $download_file_urls as $i => $download_file_url ) :
echo '<br/><small><a href="' . $download_file_url . '">' . sprintf( __('Download file %s &rarr;', 'woocommerce'), ( count( $download_file_urls ) > 1 ? $i + 1 : '' ) ) . '</a></small>';
echo '<br/><small><a href="' . $download_file_url . '">' . sprintf( __( 'Download file %s &rarr;', 'woocommerce' ), ( count( $download_file_urls ) > 1 ? $i + 1 : '' ) ) . '</a></small>';
endforeach;
endif;
@ -83,19 +83,19 @@ $order = new WC_Order( $order_id );
<?php if ( get_option('woocommerce_allow_customers_to_reorder') == 'yes' && $order->status=='completed' ) : ?>
<p class="order-again">
<a href="<?php echo esc_url( $woocommerce->nonce_url( 'order_again', add_query_arg( 'order_again', $order->id, add_query_arg( 'order', $order->id, get_permalink( woocommerce_get_page_id( 'view_order' ) ) ) ) ) ); ?>" class="button"><?php _e('Order Again', 'woocommerce'); ?></a>
<a href="<?php echo esc_url( $woocommerce->nonce_url( 'order_again', add_query_arg( 'order_again', $order->id, add_query_arg( 'order', $order->id, get_permalink( woocommerce_get_page_id( 'view_order' ) ) ) ) ) ); ?>" class="button"><?php _e( 'Order Again', 'woocommerce' ); ?></a>
</p>
<?php endif; ?>
<?php do_action( 'woocommerce_order_details_after_order_table', $order ); ?>
<header>
<h2><?php _e('Customer details', 'woocommerce'); ?></h2>
<h2><?php _e( 'Customer details', 'woocommerce' ); ?></h2>
</header>
<dl class="customer_details">
<?php
if ($order->billing_email) echo '<dt>'.__('Email:', 'woocommerce').'</dt><dd>'.$order->billing_email.'</dd>';
if ($order->billing_phone) echo '<dt>'.__('Telephone:', 'woocommerce').'</dt><dd>'.$order->billing_phone.'</dd>';
if ($order->billing_email) echo '<dt>'.__( 'Email:', 'woocommerce' ).'</dt><dd>'.$order->billing_email.'</dd>';
if ($order->billing_phone) echo '<dt>'.__( 'Telephone:', 'woocommerce' ).'</dt><dd>'.$order->billing_phone.'</dd>';
?>
</dl>
@ -108,11 +108,11 @@ $order = new WC_Order( $order_id );
<?php endif; ?>
<header class="title">
<h3><?php _e('Billing Address', 'woocommerce'); ?></h3>
<h3><?php _e( 'Billing Address', 'woocommerce' ); ?></h3>
</header>
<address><p>
<?php
if (!$order->get_formatted_billing_address()) _e('N/A', 'woocommerce'); else echo $order->get_formatted_billing_address();
if (!$order->get_formatted_billing_address()) _e( 'N/A', 'woocommerce' ); else echo $order->get_formatted_billing_address();
?>
</p></address>
@ -123,11 +123,11 @@ $order = new WC_Order( $order_id );
<div class="col-2">
<header class="title">
<h3><?php _e('Shipping Address', 'woocommerce'); ?></h3>
<h3><?php _e( 'Shipping Address', 'woocommerce' ); ?></h3>
</header>
<address><p>
<?php
if (!$order->get_formatted_shipping_address()) _e('N/A', 'woocommerce'); else echo $order->get_formatted_shipping_address();
if (!$order->get_formatted_shipping_address()) _e( 'N/A', 'woocommerce' ); else echo $order->get_formatted_shipping_address();
?>
</p></address>

View File

@ -15,9 +15,9 @@ global $woocommerce;
<?php
$status = get_term_by('slug', $order->status, 'shop_order_status');
$order_status_text = sprintf( __('Order %s which was made %s has the status &ldquo;%s&rdquo;', 'woocommerce'), $order->get_order_number(), human_time_diff(strtotime($order->order_date), current_time('timestamp')) . ' ' . __('ago', 'woocommerce'), __($status->name, 'woocommerce') );
$order_status_text = sprintf( __( 'Order %s which was made %s has the status &ldquo;%s&rdquo;', 'woocommerce' ), $order->get_order_number(), human_time_diff(strtotime($order->order_date), current_time('timestamp')) . ' ' . __( 'ago', 'woocommerce' ), __($status->name, 'woocommerce') );
if ($order->status == 'completed') $order_status_text .= ' ' . __('and was completed', 'woocommerce') . ' ' . human_time_diff(strtotime($order->completed_date), current_time('timestamp')).__(' ago', 'woocommerce');
if ($order->status == 'completed') $order_status_text .= ' ' . __( 'and was completed', 'woocommerce' ) . ' ' . human_time_diff(strtotime($order->completed_date), current_time('timestamp')).__( ' ago', 'woocommerce' );
$order_status_text .= '.';
@ -28,7 +28,7 @@ global $woocommerce;
$notes = $order->get_customer_order_notes();
if ($notes) :
?>
<h2><?php _e('Order Updates', 'woocommerce'); ?></h2>
<h2><?php _e( 'Order Updates', 'woocommerce' ); ?></h2>
<ol class="commentlist notes">
<?php foreach ($notes as $note) : ?>
<li class="comment note">

View File

@ -64,7 +64,7 @@ if ( ( ! is_home() && ! is_front_page() && ! ( is_post_type_archive() && get_opt
} elseif ( is_tax('product_tag') ) {
$queried_object = $wp_query->get_queried_object();
echo $prepend . $before . __('Products tagged &ldquo;', 'woocommerce') . $queried_object->name . '&rdquo;' . $after;
echo $prepend . $before . __( 'Products tagged &ldquo;', 'woocommerce' ) . $queried_object->name . '&rdquo;' . $after;
} elseif ( is_day() ) {
@ -87,7 +87,7 @@ if ( ( ! is_home() && ! is_front_page() && ! ( is_post_type_archive() && get_opt
if ( is_search() ) {
echo $before . '<a href="' . get_post_type_archive_link('product') . '">' . $_name . '</a>' . $delimiter . __('Search results for &ldquo;', 'woocommerce') . get_search_query() . '&rdquo;' . $after;
echo $before . '<a href="' . get_post_type_archive_link('product') . '">' . $_name . '</a>' . $delimiter . __( 'Search results for &ldquo;', 'woocommerce' ) . get_search_query() . '&rdquo;' . $after;
} elseif ( is_paged() ) {

View File

@ -17,20 +17,20 @@ if (is_user_logged_in()) return;
<?php if ($message) echo wpautop(wptexturize($message)); ?>
<p class="form-row form-row-first">
<label for="username"><?php _e('Username or email', 'woocommerce'); ?> <span class="required">*</span></label>
<label for="username"><?php _e( 'Username or email', 'woocommerce' ); ?> <span class="required">*</span></label>
<input type="text" class="input-text" name="username" id="username" />
</p>
<p class="form-row form-row-last">
<label for="password"><?php _e('Password', 'woocommerce'); ?> <span class="required">*</span></label>
<label for="password"><?php _e( 'Password', 'woocommerce' ); ?> <span class="required">*</span></label>
<input class="input-text" type="password" name="password" id="password" />
</p>
<div class="clear"></div>
<p class="form-row">
<?php $woocommerce->nonce_field('login', 'login') ?>
<input type="submit" class="button" name="login" value="<?php _e('Login', 'woocommerce'); ?>" />
<input type="submit" class="button" name="login" value="<?php _e( 'Login', 'woocommerce' ); ?>" />
<input type="hidden" name="redirect" value="<?php echo $redirect ?>" />
<a class="lost_password" href="<?php echo esc_url( wp_lostpassword_url( home_url() ) ); ?>"><?php _e('Lost Password?', 'woocommerce'); ?></a>
<a class="lost_password" href="<?php echo esc_url( wp_lostpassword_url( home_url() ) ); ?>"><?php _e( 'Lost Password?', 'woocommerce' ); ?></a>
</p>
<div class="clear"></div>

View File

@ -40,7 +40,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
echo '<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">';
echo '<div class="star-rating" title="'.sprintf(__('Rated %s out of 5', 'woocommerce'), $average).'"><span style="width:'.($average*16).'px"><span itemprop="ratingValue" class="rating">'.$average.'</span> '.__('out of 5', 'woocommerce').'</span></div>';
echo '<div class="star-rating" title="'.sprintf(__( 'Rated %s out of 5', 'woocommerce' ), $average).'"><span style="width:'.($average*16).'px"><span itemprop="ratingValue" class="rating">'.$average.'</span> '.__( 'out of 5', 'woocommerce' ).'</span></div>';
echo '<h2>'.sprintf( _n('%s review for %s', '%s reviews for %s', $count, 'woocommerce'), '<span itemprop="ratingCount" class="count">'.$count.'</span>', wptexturize($post->post_title) ).'</h2>';
@ -48,13 +48,13 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
} else {
echo '<h2>'.__('Reviews', 'woocommerce').'</h2>';
echo '<h2>'.__( 'Reviews', 'woocommerce' ).'</h2>';
}
} else {
echo '<h2>'.__('Reviews', 'woocommerce').'</h2>';
echo '<h2>'.__( 'Reviews', 'woocommerce' ).'</h2>';
}
@ -75,15 +75,15 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
</div>
<?php endif;
echo '<p class="add_review"><a href="#review_form" class="inline show_review_form button">'.__('Add Review', 'woocommerce').'</a></p>';
echo '<p class="add_review"><a href="#review_form" class="inline show_review_form button">'.__( 'Add Review', 'woocommerce' ).'</a></p>';
$title_reply = __('Add a review', 'woocommerce');
$title_reply = __( 'Add a review', 'woocommerce' );
else :
$title_reply = __('Be the first to review', 'woocommerce').' &ldquo;'.$post->post_title.'&rdquo;';
$title_reply = __( 'Be the first to review', 'woocommerce' ).' &ldquo;'.$post->post_title.'&rdquo;';
echo '<p>'.__('There are no reviews yet, would you like to <a href="#review_form" class="inline show_review_form">submit yours</a>?', 'woocommerce').'</p>';
echo '<p>'.__( 'There are no reviews yet, would you like to <a href="#review_form" class="inline show_review_form">submit yours</a>?', 'woocommerce' ).'</p>';
endif;
@ -101,20 +101,20 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
'email' => '<p class="comment-form-email"><label for="email">' . __( 'Email', 'woocommerce' ) . '</label> ' . '<span class="required">*</span>' .
'<input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" aria-required="true" /></p>',
),
'label_submit' => __('Submit Review', 'woocommerce'),
'label_submit' => __( 'Submit Review', 'woocommerce' ),
'logged_in_as' => '',
'comment_field' => ''
);
if ( get_option('woocommerce_enable_review_rating') == 'yes' ) {
$comment_form['comment_field'] = '<p class="comment-form-rating"><label for="rating">' . __('Rating', 'woocommerce') .'</label><select name="rating" id="rating">
<option value="">'.__('Rate&hellip;', 'woocommerce').'</option>
<option value="5">'.__('Perfect', 'woocommerce').'</option>
<option value="4">'.__('Good', 'woocommerce').'</option>
<option value="3">'.__('Average', 'woocommerce').'</option>
<option value="2">'.__('Not that bad', 'woocommerce').'</option>
<option value="1">'.__('Very Poor', 'woocommerce').'</option>
$comment_form['comment_field'] = '<p class="comment-form-rating"><label for="rating">' . __( 'Rating', 'woocommerce' ) .'</label><select name="rating" id="rating">
<option value="">'.__( 'Rate&hellip;', 'woocommerce' ).'</option>
<option value="5">'.__( 'Perfect', 'woocommerce' ).'</option>
<option value="4">'.__( 'Good', 'woocommerce' ).'</option>
<option value="3">'.__( 'Average', 'woocommerce' ).'</option>
<option value="2">'.__( 'Not that bad', 'woocommerce' ).'</option>
<option value="1">'.__( 'Very Poor', 'woocommerce' ).'</option>
</select></p>';
}

View File

@ -46,7 +46,7 @@ foreach ( $product->get_children() as $child_id ) {
<?php elseif ( ! $quantites_required ) : ?>
<button type="submit" name="quantity[<?php echo $child_product['product']->id; ?>]" value="1" class="single_add_to_cart_button button alt"><?php _e('Add to cart', 'woocommerce'); ?></button>
<button type="submit" name="quantity[<?php echo $child_product['product']->id; ?>]" value="1" class="single_add_to_cart_button button alt"><?php _e( 'Add to cart', 'woocommerce' ); ?></button>
<?php else : ?>
@ -76,7 +76,7 @@ foreach ( $product->get_children() as $child_id ) {
<?php do_action('woocommerce_before_add_to_cart_button'); ?>
<button type="submit" class="single_add_to_cart_button button alt"><?php echo apply_filters('single_add_to_cart_text', __('Add to cart', 'woocommerce'), $product->product_type); ?></button>
<button type="submit" class="single_add_to_cart_button button alt"><?php echo apply_filters('single_add_to_cart_text', __( 'Add to cart', 'woocommerce' ), $product->product_type); ?></button>
<?php do_action('woocommerce_after_add_to_cart_button'); ?>

View File

@ -36,7 +36,7 @@ if ( ! $product->is_purchasable() ) return;
woocommerce_quantity_input( array( 'min_value' => 1, 'max_value' => $product->backorders_allowed() ? '' : $product->get_stock_quantity() ) );
?>
<button type="submit" class="single_add_to_cart_button button alt"><?php echo apply_filters('single_add_to_cart_text', __('Add to cart', 'woocommerce'), $product->product_type); ?></button>
<button type="submit" class="single_add_to_cart_button button alt"><?php echo apply_filters('single_add_to_cart_text', __( 'Add to cart', 'woocommerce' ), $product->product_type); ?></button>
<?php do_action('woocommerce_after_add_to_cart_button'); ?>

View File

@ -81,7 +81,7 @@ global $woocommerce, $product, $post;
<div class="variations_button">
<input type="hidden" name="variation_id" value="" />
<?php woocommerce_quantity_input(); ?>
<button type="submit" class="single_add_to_cart_button button alt"><?php echo apply_filters('single_add_to_cart_text', __('Add to cart', 'woocommerce'), $product->product_type); ?></button>
<button type="submit" class="single_add_to_cart_button button alt"><?php echo apply_filters('single_add_to_cart_text', __( 'Add to cart', 'woocommerce' ), $product->product_type); ?></button>
</div>
</div>
<div><input type="hidden" name="product_id" value="<?php echo esc_attr( $post->ID ); ?>" /></div>

View File

@ -25,7 +25,7 @@ if ( empty( $attributes ) && ( ! $product->enable_dimensions_display() || ( ! $p
<?php if ( $product->has_weight() ) : $alt = $alt * -1; ?>
<tr class="<?php if ( $alt == 1 ) echo 'alt'; ?>">
<th><?php _e('Weight', 'woocommerce') ?></th>
<th><?php _e( 'Weight', 'woocommerce' ) ?></th>
<td><?php echo $product->get_weight() . ' ' . get_option('woocommerce_weight_unit'); ?></td>
</tr>
@ -34,7 +34,7 @@ if ( empty( $attributes ) && ( ! $product->enable_dimensions_display() || ( ! $p
<?php if ($product->has_dimensions()) : $alt = $alt * -1; ?>
<tr class="<?php if ( $alt == 1 ) echo 'alt'; ?>">
<th><?php _e('Dimensions', 'woocommerce') ?></th>
<th><?php _e( 'Dimensions', 'woocommerce' ) ?></th>
<td><?php echo $product->get_dimensions(); ?></td>
</tr>

View File

@ -32,7 +32,7 @@ if ( $products->have_posts() ) : ?>
<div class="related products">
<h2><?php _e('Related Products', 'woocommerce'); ?></h2>
<h2><?php _e( 'Related Products', 'woocommerce' ); ?></h2>
<?php woocommerce_product_loop_start(); ?>

View File

@ -23,22 +23,22 @@ global $post;
<?php if ( get_option('woocommerce_enable_review_rating') == 'yes' ) : ?>
<div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating" class="star-rating" title="<?php echo esc_attr( get_comment_meta( $GLOBALS['comment']->comment_ID, 'rating', true ) ); ?>">
<span style="width:<?php echo get_comment_meta( $GLOBALS['comment']->comment_ID, 'rating', true )*16; ?>px"><span itemprop="ratingValue"><?php echo get_comment_meta( $GLOBALS['comment']->comment_ID, 'rating', true ); ?></span> <?php _e('out of 5', 'woocommerce'); ?></span>
<span style="width:<?php echo get_comment_meta( $GLOBALS['comment']->comment_ID, 'rating', true )*16; ?>px"><span itemprop="ratingValue"><?php echo get_comment_meta( $GLOBALS['comment']->comment_ID, 'rating', true ); ?></span> <?php _e( 'out of 5', 'woocommerce' ); ?></span>
</div>
<?php endif; ?>
<?php if ($GLOBALS['comment']->comment_approved == '0') : ?>
<p class="meta"><em><?php _e('Your comment is awaiting approval', 'woocommerce'); ?></em></p>
<p class="meta"><em><?php _e( 'Your comment is awaiting approval', 'woocommerce' ); ?></em></p>
<?php else : ?>
<p class="meta">
<strong itemprop="author"><?php comment_author(); ?></strong> <?php
if ( get_option('woocommerce_review_rating_verification_label') == 'yes' )
if ( woocommerce_customer_bought_product( $GLOBALS['comment']->comment_author_email, $GLOBALS['comment']->user_id, $post->ID ) )
echo '(' . __('verified owner', 'woocommerce') . ') ';
echo '(' . __( 'verified owner', 'woocommerce' ) . ') ';
?>&ndash; <time itemprop="datePublished" time datetime="<?php echo get_comment_date('c'); ?>"><?php echo get_comment_date(__('M jS Y', 'woocommerce')); ?></time>:
?>&ndash; <time itemprop="datePublished" time datetime="<?php echo get_comment_date('c'); ?>"><?php echo get_comment_date(__( 'M jS Y', 'woocommerce' )); ?></time>:
</p>
<?php endif; ?>

View File

@ -13,6 +13,6 @@ global $post, $product;
?>
<?php if ($product->is_on_sale()) : ?>
<?php echo apply_filters('woocommerce_sale_flash', '<span class="onsale">'.__('Sale!', 'woocommerce').'</span>', $post, $product); ?>
<?php echo apply_filters('woocommerce_sale_flash', '<span class="onsale">'.__( 'Sale!', 'woocommerce' ).'</span>', $post, $product); ?>
<?php endif; ?>

View File

@ -17,7 +17,7 @@ if ( $product->has_attributes() || ( $show_attr && $product->has_dimensions() )
?>
<div class="panel entry-content" id="tab-attributes">
<?php $heading = apply_filters('woocommerce_product_additional_information_heading', __('Additional Information', 'woocommerce')); ?>
<?php $heading = apply_filters('woocommerce_product_additional_information_heading', __( 'Additional Information', 'woocommerce' )); ?>
<h2><?php echo $heading; ?></h2>

View File

@ -14,7 +14,7 @@ global $woocommerce, $post;
if ( $post->post_content ) : ?>
<div class="panel entry-content" id="tab-description">
<?php $heading = apply_filters('woocommerce_product_description_heading', __('Product Description', 'woocommerce')); ?>
<?php $heading = apply_filters('woocommerce_product_description_heading', __( 'Product Description', 'woocommerce' )); ?>
<h2><?php echo $heading; ?></h2>

View File

@ -15,7 +15,7 @@ $show_attr = ( get_option( 'woocommerce_enable_dimension_product_attributes' ) =
if ( $product->has_attributes() || ( $show_attr && $product->has_dimensions() ) || ( $show_attr && $product->has_weight() ) ) {
?>
<li class="attributes_tab"><a href="#tab-attributes"><?php echo apply_filters('woocommerce_product_additional_information_tab_title', __('Additional Information', 'woocommerce')); ?></a></li>
<li class="attributes_tab"><a href="#tab-attributes"><?php echo apply_filters('woocommerce_product_additional_information_tab_title', __( 'Additional Information', 'woocommerce' )); ?></a></li>
<?php
}

View File

@ -12,5 +12,5 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
global $post;
if ( $post->post_content ) : ?>
<li class="description_tab"><a href="#tab-description"><?php echo apply_filters('woocommerce_product_description_tab_title', __('Description', 'woocommerce')) ?></a></li>
<li class="description_tab"><a href="#tab-description"><?php echo apply_filters('woocommerce_product_description_tab_title', __( 'Description', 'woocommerce' )) ?></a></li>
<?php endif; ?>

Some files were not shown because too many files have changed in this diff Show More