Make WordPress Core


Ignore:
Timestamp:
11/26/2023 04:41:34 PM (2 years 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-includes/theme-compat/sidebar.php

    r45932 r57136  
    5757                        __( 'You are currently browsing the %1$s blog archives for the day %2$s.' ),
    5858                        sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ),
     59                        /* translators: Daily archives date format. See https://www.php.net/manual/datetime.format.php */
    5960                        get_the_time( __( 'l, F jS, Y' ) )
    6061                    );
     
    6970                        __( 'You are currently browsing the %1$s blog archives for %2$s.' ),
    7071                        sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ),
     72                        /* translators: Monthly archives date format. See https://www.php.net/manual/datetime.format.php */
    7173                        get_the_time( __( 'F, Y' ) )
    7274                    );
Note: See TracChangeset for help on using the changeset viewer.