Skip to content

Commit 5c85f3c

Browse files
garretthyderrodrigoprimo
authored andcommitted
Fix invalid comments in email templates (woocommerce#24928)
* Fix comment * Fix comment * Fix comment * Add missing colons : to translator comments * Add missing colon to translator comment * Add missing colons to translator comments * Add missing colons to translator comments * Add missing colon to translator comment
1 parent c67afd7 commit 5c85f3c

6 files changed

+10
-10
lines changed

templates/emails/customer-new-account.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919

2020
do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
2121

22-
<?php /* translators: %s Customer username */ ?>
22+
<?php /* translators: %s: Customer username */ ?>
2323
<p><?php printf( esc_html__( 'Hi %s,', 'woocommerce' ), esc_html( $user_login ) ); ?></p>
2424
<?php /* translators: %1$s: Site title, %2$s: Username, %3$s: My account link */ ?>
2525
<p><?php printf( esc_html__( 'Thanks for creating an account on %1$s. Your username is %2$s. You can access your account area to view orders, change your password, and more at: %3$s', 'woocommerce' ), esc_html( $blogname ), '<strong>' . esc_html( $user_login ) . '</strong>', make_clickable( esc_url( wc_get_page_permalink( 'myaccount' ) ) ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p>
2626
<?php if ( 'yes' === get_option( 'woocommerce_registration_generate_password' ) && $password_generated ) : ?>
27-
<?php /* translators: %s Auto generated password */ ?>
27+
<?php /* translators: %s: Auto generated password */ ?>
2828
<p><?php printf( esc_html__( 'Your password has been automatically generated: %s', 'woocommerce' ), '<strong>' . esc_html( $user_pass ) . '</strong>' ); ?></p>
2929
<?php endif; ?>
3030

templates/emails/customer-reset-password.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323

2424
<?php do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
2525

26-
<?php /* translators: %s: Customer first name */ ?>
26+
<?php /* translators: %s: Customer username */ ?>
2727
<p><?php printf( esc_html__( 'Hi %s,', 'woocommerce' ), esc_html( $user_login ) ); ?>
2828
<?php /* translators: %s: Store name */ ?>
2929
<p><?php printf( esc_html__( 'Someone has requested a new password for the following account on %s:', 'woocommerce' ), esc_html( wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ) ) ); ?></p>
30-
<?php /* translators: %s Customer username */ ?>
30+
<?php /* translators: %s: Customer username */ ?>
3131
<p><?php printf( esc_html__( 'Username: %s', 'woocommerce' ), esc_html( $user_login ) ); ?></p>
3232
<p><?php esc_html_e( 'If you didn\'t make this request, just ignore this email. If you\'d like to proceed:', 'woocommerce' ); ?></p>
3333
<p>

templates/emails/plain/customer-invoice.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
if ( $order->has_status( 'pending' ) ) {
2828
echo wp_kses_post(
2929
sprintf(
30-
/* translators: %1$s Site title, %2$s Order pay link */
30+
/* translators: %1$s: Site title, %2$s: Order pay link */
3131
__( 'An order has been created for you on %1$s. Your invoice is below, with a link to make payment when you’re ready: %2$s', 'woocommerce' ),
3232
esc_html( get_bloginfo( 'name', 'display' ) ),
3333
esc_url( $order->get_checkout_payment_url() )
3434
)
3535
) . "\n\n";
3636

3737
} else {
38-
/* translators: %s Order date */
38+
/* translators: %s: Order date */
3939
echo sprintf( esc_html__( 'Here are the details of your order placed on %s:', 'woocommerce' ), esc_html( wc_format_datetime( $order->get_date_created() ) ) ) . "\n\n";
4040
}
4141

templates/emails/plain/customer-new-account.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
echo esc_html( wp_strip_all_tags( $email_heading ) );
2222
echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
2323

24-
/* translators: %s Customer first name */
24+
/* translators: %s: Customer username */
2525
echo sprintf( esc_html__( 'Hi %s,', 'woocommerce' ), esc_html( $user_login ) ) . "\n\n";
2626
/* translators: %1$s: Site title, %2$s: Username, %3$s: My account link */
2727
echo sprintf( esc_html__( 'Thanks for creating an account on %1$s. Your username is %2$s. You can access your account area to view orders, change your password, and more at: %3$s', 'woocommerce' ), esc_html( $blogname ), '<strong>' . esc_html( $user_login ) . '</strong>', esc_html( wc_get_page_permalink( 'myaccount' ) ) ) . "\n\n";
2828

2929
if ( 'yes' === get_option( 'woocommerce_registration_generate_password' ) && $password_generated ) {
30-
/* translators: %s Auto generated password */
30+
/* translators: %s: Auto generated password */
3131
echo sprintf( esc_html__( 'Your password has been automatically generated: %s.', 'woocommerce' ), esc_html( $user_pass ) ) . "\n\n";
3232
}
3333

templates/emails/plain/customer-note.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
echo esc_html( wp_strip_all_tags( $email_heading ) );
2222
echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
2323

24-
/* translators: %s Customer first name */
24+
/* translators: %s: Customer first name */
2525
echo sprintf( esc_html__( 'Hi %s,', 'woocommerce' ), esc_html( $order->get_billing_first_name() ) ) . "\n\n";
2626
echo esc_html__( 'The following note has been added to your order:', 'woocommerce' ) . "\n\n";
2727

templates/emails/plain/customer-reset-password.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
echo esc_html( wp_strip_all_tags( $email_heading ) );
2222
echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
2323

24-
/* translators: %s: Customer first name */
24+
/* translators: %s: Customer username */
2525
echo sprintf( esc_html__( 'Hi %s,', 'woocommerce' ), esc_html( $user_login ) ) . "\n\n";
2626
/* translators: %s: Store name */
2727
echo sprintf( esc_html__( 'Someone has requested a new password for the following account on %s:', 'woocommerce' ), esc_html( wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ) ) ) . "\n\n";

0 commit comments

Comments
 (0)