Skip to content

Commit

Permalink
Add translator comments for strings containing date formats (WordPres…
Browse files Browse the repository at this point in the history
  • Loading branch information
NekoJonez authored Nov 26, 2023
1 parent 5d86605 commit 4a244f6
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,19 @@ function NonDefaultControls( { format, onChange } ) {
// formats.
const suggestedFormats = [
...new Set( [
/* translators: See https://www.php.net/manual/datetime.format.php */
'Y-m-d',
/* translators: See https://www.php.net/manual/datetime.format.php */
_x( 'n/j/Y', 'short date format' ),
/* translators: See https://www.php.net/manual/datetime.format.php */
_x( 'n/j/Y g:i A', 'short date format with time' ),
/* translators: See https://www.php.net/manual/datetime.format.php */
_x( 'M j, Y', 'medium date format' ),
/* translators: See https://www.php.net/manual/datetime.format.php */
_x( 'M j, Y g:i A', 'medium date format with time' ),
/* translators: See https://www.php.net/manual/datetime.format.php */
_x( 'F j, Y', 'long date format' ),
/* translators: See https://www.php.net/manual/datetime.format.php */
_x( 'M j', 'short date format without the year' ),
] ),
];
Expand Down

0 comments on commit 4a244f6

Please sign in to comment.