Skip to content

Commit

Permalink
add translators comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiy committed Oct 29, 2016
1 parent 6cc301e commit 8ab8bef
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 3 deletions.
7 changes: 6 additions & 1 deletion includes/admin/meta-boxes/views/html-product-attribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@
// Text attributes should list terms pipe separated
echo esc_attr( implode( ' ' . WC_DELIMITER . ' ', wp_get_post_terms( $thepostid, $taxonomy, array( 'fields' => 'names' ) ) ) );

?>" placeholder="<?php echo esc_attr( sprintf( __( '"%s" separate terms', 'woocommerce' ), WC_DELIMITER ) ); ?>" />
?>" placeholder="<?php

/* translators: %s: WC_DELIMITER */
echo esc_attr( sprintf( __( '"%s" separate terms', 'woocommerce' ), WC_DELIMITER ) );

?>" />

<?php endif; ?>

Expand Down
8 changes: 7 additions & 1 deletion includes/admin/settings/views/html-settings-tax.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@

<div id="rates-pagination"></div>

<h3><?php printf( __( '"%s" tax rates', 'woocommerce' ), $current_class ? esc_html( $current_class ) : __( 'Standard', 'woocommerce' ) ); ?></h3>
<h3><?php
/* translators: %s: tax rate */
printf(
__( '"%s" tax rates', 'woocommerce' ),
$current_class ? esc_html( $current_class ) : __( 'Standard', 'woocommerce' )
);
?></h3>

<table class="wc_tax_rates wc_input_table widefat">
<thead>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,13 @@ public function process_pre_order_release_payment( $order ) {
try {
$order_items = $order->get_items();
$order_item = array_shift( $order_items );
$pre_order_name = sprintf( __( '%1$s - Pre-order for "%2$s"', 'woocommerce' ), esc_html( get_bloginfo( 'name', 'display' ) ), $order_item['name'] ) . ' ' . sprintf( __( '(Order #%s)', 'woocommerce' ), $order->get_order_number() );
/* translators: 1: site name 2: product name 3: order number */
$pre_order_name = sprintf(
__( '%1$s - Pre-order for "%2$s" (Order #%3$s)', 'woocommerce' ),
esc_html( get_bloginfo( 'name', 'display' ) ),
$order_item['name'],
$order->get_order_number()
);

$customer_id = get_post_meta( $order->get_id(), '_simplify_customer_id', true );

Expand Down
1 change: 1 addition & 0 deletions includes/payment-tokens/class-wc-payment-token-cc.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public function validate() {
* @return string
*/
public function get_display_name() {
/* translators: 1: credit card type 2: last 4 digits 3: expiry month 4: expiry year */
$display = sprintf(
__( '%1$s ending in %2$s (expires %3$s/%4$s)', 'woocommerce' ),
wc_get_credit_card_type_label( $this->get_card_type() ),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
continue;
}
$settings[ 'class_cost_' . $shipping_class->term_id ] = array(
/* translators: %s: shipping class name */
'title' => sprintf( __( '"%s" shipping class cost', 'woocommerce' ), esc_html( $shipping_class->name ) ),
'type' => 'text',
'placeholder' => __( 'N/A', 'woocommerce' ),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
continue;
}
$settings[ 'class_cost_' . $shipping_class->term_id ] = array(
/* translators: %s: shipping class name */
'title' => sprintf( __( '"%s" shipping class cost', 'woocommerce' ), esc_html( $shipping_class->name ) ),
'type' => 'text',
'placeholder' => __( 'N/A', 'woocommerce' ),
Expand Down

0 comments on commit 8ab8bef

Please sign in to comment.