WordPress.org

Make WordPress Core

Changeset 31833


Ignore:
Timestamp:
03/19/2015 04:21:46 PM (7 years ago)
Author:
jeremyfelt
Message:

Make dates in multisite site and user list tables translatable.

Props pavelevap.

Fixes #22302.

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php

    r31181 r31833  
    204204
    205205        if ( 'list' == $mode ) {
    206             $date = 'Y/m/d';
     206            $date = __( 'Y/m/d' );
    207207        } else {
    208             $date = 'Y/m/d \<\b\r \/\> g:i:s a';
     208            $date = __( 'Y/m/d g:i:s a' );
    209209        }
    210210
  • trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php

    r31181 r31833  
    230230                    case 'registered':
    231231                        if ( 'list' == $mode )
    232                             $date = 'Y/m/d';
     232                            $date = __( 'Y/m/d' );
    233233                        else
    234                             $date = 'Y/m/d \<\b\r \/\> g:i:s a';
     234                            $date = __( 'Y/m/d g:i:s a' );
    235235
    236236                        echo "<td $attributes>" . mysql2date( $date, $user->user_registered ) . "</td>";
Note: See TracChangeset for help on using the changeset viewer.