Changed rest of #1791 translatable strings to date_format

This commit is contained in:
Coen Jacobs 2012-11-21 12:16:17 +01:00
parent 9345985666
commit 3734f7addc
11 changed files with 11 additions and 11 deletions

View File

@ -58,7 +58,7 @@ class WC_Email_Customer_Completed_Order extends WC_Email {
$this->recipient = $this->object->billing_email;
$this->find[] = '{order_date}';
$this->replace[] = date_i18n( __( 'jS F Y', 'woocommerce' ), strtotime( $this->object->order_date ) );
$this->replace[] = date_i18n( __( get_option('date_format'), 'woocommerce' ), strtotime( $this->object->order_date ) );
$this->find[] = '{order_number}';
$this->replace[] = $this->object->get_order_number();

View File

@ -58,7 +58,7 @@ class WC_Email_Customer_Invoice extends WC_Email {
$this->recipient = $this->object->billing_email;
$this->find[] = '{order_date}';
$this->replace[] = date_i18n( __( 'jS F Y', 'woocommerce' ), strtotime( $this->object->order_date ) );
$this->replace[] = date_i18n( __( get_option('date_format'), 'woocommerce' ), strtotime( $this->object->order_date ) );
$this->find[] = '{order_number}';
$this->replace[] = $this->object->get_order_number();

View File

@ -67,7 +67,7 @@ class WC_Email_Customer_Note extends WC_Email {
$this->customer_note = $customer_note;
$this->find[] = '{order_date}';
$this->replace[] = date_i18n( __( 'jS F Y', 'woocommerce' ), strtotime( $this->object->order_date ) );
$this->replace[] = date_i18n( __( get_option('date_format'), 'woocommerce' ), strtotime( $this->object->order_date ) );
$this->find[] = '{order_number}';
$this->replace[] = $this->object->get_order_number();

View File

@ -52,7 +52,7 @@ class WC_Email_Customer_Processing_Order extends WC_Email {
$this->recipient = $this->object->billing_email;
$this->find[] = '{order_date}';
$this->replace[] = date_i18n( __( 'jS F Y', 'woocommerce' ), strtotime( $this->object->order_date ) );
$this->replace[] = date_i18n( __( get_option('date_format'), 'woocommerce' ), strtotime( $this->object->order_date ) );
$this->find[] = '{order_number}';
$this->replace[] = $this->object->get_order_number();

View File

@ -60,7 +60,7 @@ class WC_Email_New_Order extends WC_Email {
$this->object = new WC_Order( $order_id );
$this->find[] = '{order_date}';
$this->replace[] = date_i18n( __( 'jS F Y', 'woocommerce' ), strtotime( $this->object->order_date ) );
$this->replace[] = date_i18n( __( get_option('date_format'), 'woocommerce' ), strtotime( $this->object->order_date ) );
$this->find[] = '{order_number}';
$this->replace[] = $this->object->get_order_number();

View File

@ -14,7 +14,7 @@ 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( ( get_option('date_format'), '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( __( get_option('date_format'), 'woocommerce' ), strtotime( $order->order_date ) ) ); ?>)</h2>
<table cellspacing="0" cellpadding="6" style="width: 100%; border: 1px solid #eee;" border="1" bordercolor="#eee">
<thead>

View File

@ -19,7 +19,7 @@ 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( __( get_option('date_format'), 'woocommerce' ), strtotime( $order->order_date ) ) ); ?>)</h2>
<table cellspacing="0" cellpadding="6" style="width: 100%; border: 1px solid #eee;" border="1" bordercolor="#eee">
<thead>

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( __( get_option('date_format'), 'woocommerce' ), strtotime( $order->order_date ) ) ) . "\n";
do_action( 'woocommerce_email_order_meta', $order, false, true );

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( __( get_option('date_format'), '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( __( get_option('date_format'), 'woocommerce' ), strtotime( $order->order_date ) ) ) . "\n";
do_action( 'woocommerce_email_order_meta', $order, false, true );

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( __( get_option('date_format'), 'woocommerce' ), strtotime( $order->order_date ) ) ) . "\n";
do_action( 'woocommerce_email_order_meta', $order, false, true );