localisation issues Closes #1106.

This commit is contained in:
Mike Jolley 2012-06-06 21:35:40 +01:00
parent 809175b41c
commit 0fce6aecaa
20 changed files with 32 additions and 32 deletions

View File

@ -65,7 +65,7 @@ function woocommerce_create_duplicate_from_product( $post, $parent = 0, $post_st
} else {
$post_parent = $post->post_parent;
$post_status = $post_status ? $post_status : 'draft';
$suffix = __(" (Copy)", 'woocommerce');
$suffix = ' ' . __("(Copy)", 'woocommerce');
}
$new_post_type = $post->post_type;

View File

@ -53,7 +53,7 @@ function woocommerce_coupon_data_meta_box($post) {
// 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...', 'woocommerce'); ?>">
<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) {

View File

@ -483,7 +483,7 @@ function woocommerce_order_totals_meta_box($post) {
<label><?php _e('Method:', 'woocommerce'); ?></label>
<input type="text" name="_shipping_method" id="_shipping_method" value="<?php
if (isset($data['_shipping_method'][0])) echo $data['_shipping_method'][0];
?>" placeholder="<?php _e('Shipping method...', 'woocommerce'); ?>" />
?>" placeholder="<?php _e('Shipping method&hellip;', 'woocommerce'); ?>" />
</li>
</ul>
@ -564,7 +564,7 @@ function woocommerce_order_totals_meta_box($post) {
<label><?php _e('Payment Method:', 'woocommerce'); ?></label>
<input type="text" name="_payment_method" id="_payment_method" value="<?php
if (isset($data['_payment_method'][0])) echo $data['_payment_method'][0];
?>" class="first" placeholder="<?php _e('Payment method...', 'woocommerce'); ?>" />
?>" class="first" placeholder="<?php _e('Payment method&hellip;', 'woocommerce'); ?>" />
</li>
</ul>

View File

@ -238,9 +238,9 @@ function variable_product_type_options() {
<label><input type="checkbox" class="checkbox" name="variable_enabled[<?php echo $loop; ?>]" <?php checked($variation->post_status, 'publish'); ?> /> <?php _e('Enabled', 'woocommerce'); ?></label>
<label><input type="checkbox" class="checkbox variable_is_downloadable" name="variable_is_downloadable[<?php echo $loop; ?>]" <?php if (isset($variation_data['_downloadable'][0])) checked($variation_data['_downloadable'][0], 'yes'); ?> /> <?php _e('Downloadable', 'woocommerce'); ?> <a class="tips" data-tip="<?php _e('Enable this option if access is given to a downloadable file upon purchase of a product.', 'woocommerce'); ?>" href="#">[?]</a></label>
<label><input type="checkbox" class="checkbox variable_is_downloadable" name="variable_is_downloadable[<?php echo $loop; ?>]" <?php if (isset($variation_data['_downloadable'][0])) checked($variation_data['_downloadable'][0], 'yes'); ?> /> <?php _e('Downloadable', 'woocommerce'); ?> <a class="tips" data-tip="<?php _e('Enable this option if access is given to a downloadable file upon purchase of a product', 'woocommerce'); ?>" href="#">[?]</a></label>
<label><input type="checkbox" class="checkbox variable_is_virtual" name="variable_is_virtual[<?php echo $loop; ?>]" <?php if (isset($variation_data['_virtual'][0])) checked($variation_data['_virtual'][0], 'yes'); ?> /> <?php _e('Virtual', 'woocommerce'); ?> <a class="tips" data-tip="<?php _e('Enable this option if a product is not shipped or there is no shipping cost.', 'woocommerce'); ?>" href="#">[?]</a></label>
<label><input type="checkbox" class="checkbox variable_is_virtual" name="variable_is_virtual[<?php echo $loop; ?>]" <?php if (isset($variation_data['_virtual'][0])) checked($variation_data['_virtual'][0], 'yes'); ?> /> <?php _e('Virtual', 'woocommerce'); ?> <a class="tips" data-tip="<?php _e('Enable this option if a product is not shipped or there is no shipping cost', 'woocommerce'); ?>" href="#">[?]</a></label>
</td>
</tr>
@ -437,9 +437,9 @@ function variable_product_type_options() {
\
<label><input type="checkbox" class="checkbox" name="variable_enabled[' + loop + ']" checked="checked" /> <?php _e('Enabled', 'woocommerce'); ?></label>\
\
<label><input type="checkbox" class="checkbox variable_is_downloadable" name="variable_is_downloadable[' + loop + ']" /> <?php _e('Downloadable', 'woocommerce'); ?> <a class="tips" data-tip="<?php _e('Enable this option if access is given to a downloadable file upon purchase of a product.', 'woocommerce'); ?>" href="#">[?]</a></label>\
<label><input type="checkbox" class="checkbox variable_is_downloadable" name="variable_is_downloadable[' + loop + ']" /> <?php _e('Downloadable', 'woocommerce'); ?> <a class="tips" data-tip="<?php _e('Enable this option if access is given to a downloadable file upon purchase of a product', 'woocommerce'); ?>" href="#">[?]</a></label>\
\
<label><input type="checkbox" class="checkbox variable_is_virtual" name="variable_is_virtual[' + loop + ']" /> <?php _e('Virtual', 'woocommerce'); ?> <a class="tips" data-tip="<?php _e('Enable this option if a product is not shipped or there is no shipping cost.', 'woocommerce'); ?>" href="#">[?]</a></label>\
<label><input type="checkbox" class="checkbox variable_is_virtual" name="variable_is_virtual[' + loop + ']" /> <?php _e('Virtual', 'woocommerce'); ?> <a class="tips" data-tip="<?php _e('Enable this option if a product is not shipped or there is no shipping cost', 'woocommerce'); ?>" href="#">[?]</a></label>\
\
</td>\
</tr>\

View File

@ -192,7 +192,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(){

View File

@ -278,7 +278,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

@ -315,7 +315,7 @@ function woocommerce_sales_overview() {
<div class="postbox">
<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">
@ -581,7 +581,7 @@ function woocommerce_daily_sales() {
<div class="postbox">
<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">
@ -770,7 +770,7 @@ function woocommerce_monthly_sales() {
<div class="postbox">
<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">
@ -1149,7 +1149,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...', '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

View File

@ -592,7 +592,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...', '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;

View File

@ -347,7 +347,7 @@ function woocommerce_status() {
$posting['wp_remote_post']['note'] = __('wp_remote_post() was successful - PayPal IPN is working.', 'woocommerce');
$posting['wp_remote_post']['success'] = true;
} else {
$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;
}

View File

@ -283,7 +283,7 @@ class WC_Checkout {
$user_id = wp_create_user( $this->posted['account_username'], $user_pass, $this->posted['billing_email'] );
if ( !$user_id ) :
$woocommerce->add_error( '<strong>' . __('ERROR', 'woocommerce') . '</strong>: ' . __('Couldn&#8217;t register you... please contact us if you continue to have problems.', 'woocommerce') );
$woocommerce->add_error( '<strong>' . __('ERROR', 'woocommerce') . '</strong>: ' . __('Couldn&#8217;t register you&hellip; please contact us if you continue to have problems.', 'woocommerce') );
break;
endif;

View File

@ -23,7 +23,7 @@ class WC_Countries {
$this->countries = apply_filters('woocommerce_countries', array(
'AF' => __('Afghanistan', 'woocommerce'),
'AX' => __('Aland Islands', 'woocommerce'),
'AX' => __('&#197;land Islands', 'woocommerce'),
'AL' => __('Albania', 'woocommerce'),
'DZ' => __('Algeria', 'woocommerce'),
'AS' => __('American Samoa', 'woocommerce'),
@ -202,7 +202,7 @@ class WC_Countries {
'RO' => __('Romania', 'woocommerce'),
'RU' => __('Russia', 'woocommerce'),
'RW' => __('Rwanda', 'woocommerce'),
'BL' => __('Saint Barthélemy', 'woocommerce'),
'BL' => __('Saint Barth&eacute;lemy', 'woocommerce'),
'SH' => __('Saint Helena', 'woocommerce'),
'KN' => __('Saint Kitts and Nevis', 'woocommerce'),
'LC' => __('Saint Lucia', 'woocommerce'),
@ -211,7 +211,7 @@ class WC_Countries {
'VC' => __('Saint Vincent and the Grenadines', 'woocommerce'),
'WS' => __('Samoa', 'woocommerce'),
'SM' => __('San Marino', 'woocommerce'),
'ST' => __('Sao Tome and Principe', 'woocommerce'),
'ST' => __('S&atilde;o Tom&eacute; and Pr&iacute;ncipe', 'woocommerce'),
'SA' => __('Saudi Arabia', 'woocommerce'),
'SN' => __('Senegal', 'woocommerce'),
'RS' => __('Serbia', 'woocommerce'),
@ -289,7 +289,7 @@ class WC_Countries {
'AP' => __('Amap&aacute;', 'woocommerce'),
'CE' => __('Cear&aacute;', 'woocommerce'),
'DF' => __('Distrito federal', 'woocommerce'),
'ES' => __('Espirito santo', 'woocommerce'),
'ES' => __('Esp&iacute;rito Santo', 'woocommerce'),
'MA' => __('Maranh&atilde;o', 'woocommerce'),
'PR' => __('Paran&aacute;', 'woocommerce'),
'PE' => __('Pernambuco', 'woocommerce'),
@ -310,7 +310,7 @@ class WC_Countries {
'SP' => __('S&atilde;o paulo', 'woocommerce'),
'RS' => __('Rio grande do sul', 'woocommerce'),
'MG' => __('Minas gerais', 'woocommerce'),
'PB' => __('Paraiba', 'woocommerce'),
'PB' => __('Para&iacute;ba', 'woocommerce'),
),
'CA' => array(
'AB' => __('Alberta', 'woocommerce') ,

View File

@ -478,7 +478,7 @@ class WC_Order {
endif;
$shipping .= sprintf(__(' <small>%svia %s</small>', 'woocommerce'), $tax_text, ucwords($this->shipping_method_title));
$shipping .= sprintf( __('&nbsp;<small>%svia %s</small>', 'woocommerce'), $tax_text, ucwords( $this->shipping_method_title ) );
else :
$shipping = __('Free!', 'woocommerce');

View File

@ -19,7 +19,7 @@ class WC_Paypal extends WC_Payment_Gateway {
$this->has_fields = false;
$this->liveurl = 'https://www.paypal.com/webscr';
$this->testurl = 'https://www.sandbox.paypal.com/webscr';
$this->method_title = __( 'Paypal', 'woocommerce' );
$this->method_title = __( 'PayPal', 'woocommerce' );
// Load the form fields.
@ -353,7 +353,7 @@ class WC_Paypal extends WC_Payment_Gateway {
$woocommerce->add_inline_js('
jQuery("body").block({
message: "<img src=\"'.esc_url( $woocommerce->plugin_url() ).'/assets/images/ajax-loader.gif\" alt=\"Redirecting...\" 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( $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",

View File

@ -13,7 +13,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();
}

View File

@ -55,7 +55,7 @@ global $woocommerce;
// Backorder notification
if ( $_product->backorders_require_notification() && $_product->get_total_stock() < 1 )
echo '<p class="backorder_notification">' . __('Available on backorder.', 'woocommerce') . '</p>';
echo '<p class="backorder_notification">' . __('Available on backorder', 'woocommerce') . '</p>';
?>
</td>

View File

@ -16,7 +16,7 @@ global $woocommerce;
<h2><?php _e('Available downloads', 'woocommerce'); ?></h2>
<ul class="digital-downloads">
<?php foreach ($downloads as $download) : ?>
<li><?php if (is_numeric($download['downloads_remaining'])) : ?><span class="count"><?php echo $download['downloads_remaining'] . _n(' download Remaining', ' downloads remaining', $download['downloads_remaining'], 'woocommerce'); ?></span><?php endif; ?> <a href="<?php echo esc_url( $download['download_url'] ); ?>"><?php echo $download['download_name']; ?></a></li>
<li><?php if (is_numeric($download['downloads_remaining'])) : ?><span class="count"><?php echo $download['downloads_remaining'] . _n('&nbsp;download remaining', '&nbsp;downloads remaining', $download['downloads_remaining'], 'woocommerce'); ?></span><?php endif; ?> <a href="<?php echo esc_url( $download['download_url'] ); ?>"><?php echo $download['download_name']; ?></a></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>

View File

@ -9,7 +9,7 @@ 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');

View File

@ -89,7 +89,7 @@
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...', 'woocommerce').'</option>
<option value="">'.__('Rate&hellip;', 'woocommerce').'</option>
<option value="5">'.__('Perfect', 'woocommerce').'</option>
<option value="4">'.__('Good', 'woocommerce').'</option>
<option value="3">'.__('Average', 'woocommerce').'</option>

View File

@ -669,7 +669,7 @@ function woocommerce_process_registration() {
$user_id = wp_create_user( $sanitized_user_login, $password, $user_email );
if ( !$user_id ) {
$woocommerce->add_error( '<strong>' . __('ERROR', 'woocommerce') . '</strong>: ' . __('Couldn&#8217;t register you... please contact us if you continue to have problems.', 'woocommerce') );
$woocommerce->add_error( '<strong>' . __('ERROR', 'woocommerce') . '</strong>: ' . __('Couldn&#8217;t register you&hellip; please contact us if you continue to have problems.', 'woocommerce') );
return;
}

View File

@ -667,7 +667,7 @@ class Woocommerce {
'name' => __( 'Order statuses', 'woocommerce'),
'singular_name' => __( 'Order status', 'woocommerce'),
'search_items' => __( 'Search Order statuses', 'woocommerce'),
'all_items' => __( 'All Order statuses', 'woocommerce'),
'all_items' => __( 'All Order statuses', 'woocommerce'),
'parent_item' => __( 'Parent Order status', 'woocommerce'),
'parent_item_colon' => __( 'Parent Order status:', 'woocommerce'),
'edit_item' => __( 'Edit Order status', 'woocommerce'),