Skip to content

Commit

Permalink
Translator comments
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Nov 24, 2023
1 parent a0aa471 commit dadbb5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mt-cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -683,8 +683,10 @@ function mt_generate_expiration() {
return;
}
if ( ( $expiration - time() ) > 30 * MINUTE_IN_SECONDS ) {
$output = '<div class="expiration-notice"><p>' . sprintf( __( 'Your shopping cart will be saved for %s.', 'my-tickets' ), human_time_diff( time(), $expiration ) ) . '</p></div>';;
// translators: amount of time remaining that the cart is saved.
$output = '<div class="expiration-notice"><p>' . sprintf( __( 'Your shopping cart will be saved for %s.', 'my-tickets' ), human_time_diff( time(), $expiration ) ) . '</p></div>';
} else {
// translators: amount of time remaining before the cart expires.
$output = '<div class="expiration-extension"><p>' . sprintf( __( 'Your shopping cart will expire in %s.', 'my-tickets' ), human_time_diff( time(), $expiration ) ) . '<button type="button">' . __( 'Extend 5 minutes', 'my-tickets' ) . '</button></p></div>';
}

Expand Down

0 comments on commit dadbb5c

Please sign in to comment.