Making WordPress.org

Changeset 5704


Ignore:
Timestamp:
07/19/2017 08:30:16 PM (8 years ago)
Author:
coffee2code
Message:

Theme Directory: Allow the last updated date to be localized.

Props SergeyBiryukov, ramiy.
Fixes #1269.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/theme-single.php

    r4896 r5704  
    3838
    3939                <div class="theme-meta-info">
    40                     <p class="updated"><?php printf( __( 'Last updated: %s', 'wporg-themes' ), '<strong>' . date_i18n( 'F j, Y', strtotime( $theme->last_updated ) ) . '</strong>' ); ?></p>
     40                    <p class="updated">
     41                        <?php printf( __( 'Last updated: %s', 'wporg-themes' ),
     42                            /* translators: localized date format, see http://php.net/date */
     43                            '<strong>' . date_i18n( _x( 'F j, Y', 'last update date format', 'wporg-themes' ), strtotime( $theme->last_updated ) ) . '</strong>'
     44                        ); ?>
     45                    </p>
    4146                    <?php
    4247                        $active_installs = $theme->active_installs;
Note: See TracChangeset for help on using the changeset viewer.