Make WordPress Core


Ignore:
Timestamp:
11/26/2023 04:41:34 PM (6 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-includes/general-template.php

    r57131 r57136  
    17161716        $prefix = _x( 'Author:', 'author archive title prefix' );
    17171717    } elseif ( is_year() ) {
     1718        /* translators: See https://www.php.net/manual/datetime.format.php */
    17181719        $title  = get_the_date( _x( 'Y', 'yearly archives date format' ) );
    17191720        $prefix = _x( 'Year:', 'date archive title prefix' );
    17201721    } elseif ( is_month() ) {
     1722        /* translators: See https://www.php.net/manual/datetime.format.php */
    17211723        $title  = get_the_date( _x( 'F Y', 'monthly archives date format' ) );
    17221724        $prefix = _x( 'Month:', 'date archive title prefix' );
    17231725    } elseif ( is_day() ) {
     1726        /* translators: See https://www.php.net/manual/datetime.format.php */
    17241727        $title  = get_the_date( _x( 'F j, Y', 'daily archives date format' ) );
    17251728        $prefix = _x( 'Day:', 'date archive title prefix' );
Note: See TracChangeset for help on using the changeset viewer.