Skip to content

Commit

Permalink
~ Fixed the Spot left noun (gravitywiz#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbassah authored Mar 10, 2022
1 parent 981ae57 commit 13a0a0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gp-limit-choices/gplc-spots-left.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function my_add_how_many_left_message( $choice, $exceeded_limit, $field, $form,
$how_many_left = max( $limit - $count, 0 );

// translators: placeholder is number of remaining spots left
$message = sprintf( _n( '(%s spot left)', '(%s spots left)', $count, 'gp-limit-choices' ), number_format_i18n( $how_many_left ) );
$message = sprintf( _n( '(%s spot left)', '(%s spots left)', $how_many_left, 'gp-limit-choices' ), number_format_i18n( $how_many_left ) );

$choice['text'] = $choice['text'] . " $message";

Expand Down

0 comments on commit 13a0a0e

Please sign in to comment.