Use correct syntax for translators comments.

This commit is contained in:
vedanshujain 2020-12-21 15:33:10 +05:30
parent 39c200bf2d
commit f248276a89
1 changed files with 1 additions and 1 deletions

View File

@ -998,7 +998,7 @@ class WC_Coupon extends WC_Legacy_Coupon {
break;
case self::E_WC_COUPON_USAGE_LIMIT_COUPON_STUCK:
if ( is_user_logged_in() && wc_get_page_id( 'myaccount' ) > 0 ) {
// translators: %s: myaccount page link.
/* translators: %s: myaccount page link. */
$err = sprintf( __( 'Coupon usage limit has been reached. If you were using this coupon just now but order was not complete, you can retry or cancel the order by going to the <a href="%s">my account page</a>.', 'woocommerce' ), wc_get_endpoint_url( 'orders', '', wc_get_page_permalink( 'myaccount' ) ) );
} else {
$err = $this->get_coupon_error( self::E_WC_COUPON_USAGE_LIMIT_REACHED );