Make WordPress Core


Ignore:
Timestamp:
11/26/2023 04:41:34 PM (5 months ago)
Author:
swissspidy
Message:

I18N: Improve translator comments for strings containing date formats.

Adds translator comments where absent and changes code style so that
comments are attached to the right strings during string extraction.

Props NekoJonez.
Fixes #59947

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r56838 r57136  
    16291629            $post_data['post_status'] = 'draft';
    16301630            $now                      = time();
    1631             /* translators: 1: Post creation date, 2: Post creation time. */
    1632             $post_data['post_title'] = sprintf( __( 'Draft created on %1$s at %2$s' ), gmdate( __( 'F j, Y' ), $now ), gmdate( __( 'g:i a' ), $now ) );
     1631
     1632            $post_data['post_title'] = sprintf(
     1633                /* translators: 1: Post creation date, 2: Post creation time. */
     1634                __( 'Draft created on %1$s at %2$s' ),
     1635                gmdate( __( 'F j, Y' ), $now ),
     1636                gmdate( __( 'g:i a' ), $now )
     1637            );
    16331638
    16341639            $pid = edit_post( $post_data );
Note: See TracChangeset for help on using the changeset viewer.