WordPress.org

Make WordPress Core

Changeset 4802


Ignore:
Timestamp:
01/25/2007 02:08:54 AM (15 years ago)
Author:
ryan
Message:

Make some date/time formats translateable. Props teknoseyir and nbachiyski. fixes #3661

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/wp-admin/admin-functions.php

    r4796 r4802  
    831831    </td>
    832832    <td><?php the_author() ?></td>
    833     <td><?php if ( '0000-00-00 00:00:00' ==$post->post_modified ) _e('Unpublished'); else echo mysql2date( 'Y-m-d g:i a', $post->post_modified ); ?></td>
     833    <td><?php if ( '0000-00-00 00:00:00' ==$post->post_modified ) _e('Unpublished'); else echo mysql2date( __('Y-m-d g:i a'), $post->post_modified ); ?></td>
    834834    <td><a href="<?php the_permalink(); ?>" rel="permalink" class="edit"><?php _e( 'View' ); ?></a></td>
    835835    <td><?php if ( current_user_can( 'edit_page', $id ) ) { echo "<a href='page.php?action=edit&amp;post=$id' class='edit'>" . __( 'Edit' ) . "</a>"; } ?></td>
  • branches/2.1/wp-admin/edit.php

    r4659 r4802  
    178178    case 'date':
    179179        ?>
    180         <td><?php if ( '0000-00-00 00:00:00' ==$post->post_modified ) _e('Unpublished'); else the_time('Y-m-d \<\b\r \/\> g:i:s a'); ?></td>
     180        <td><?php if ( '0000-00-00 00:00:00' ==$post->post_modified ) _e('Unpublished'); else the_time(_('Y-m-d \<\b\r \/\> g:i:s a')); ?></td>
    181181        <?php
    182182        break;
     
    280280<?php comment_text() ?>
    281281
    282 <p><?php comment_date('M j, g:i A');  ?> &#8212; [
     282<p><?php comment_date(__('M j, g:i A'));  ?> &#8212; [
    283283<?php
    284284if ( current_user_can('edit_post', $comment->comment_post_ID) ) {
  • branches/2.1/wp-admin/options-general.php

    r4480 r4802  
    6161<tr>
    6262<th scope="row"><?php _e('<abbr title="Coordinated Universal Time">UTC</abbr> time is:') ?> </th>
    63 <td><code><?php echo gmdate('Y-m-d g:i:s a'); ?></code></td>
     63<td><code><?php echo gmdate(__('Y-m-d g:i:s a')); ?></code></td>
    6464</tr>
    6565<tr>
  • trunk/wp-admin/admin-functions.php

    r4796 r4802  
    831831    </td>
    832832    <td><?php the_author() ?></td>
    833     <td><?php if ( '0000-00-00 00:00:00' ==$post->post_modified ) _e('Unpublished'); else echo mysql2date( 'Y-m-d g:i a', $post->post_modified ); ?></td>
     833    <td><?php if ( '0000-00-00 00:00:00' ==$post->post_modified ) _e('Unpublished'); else echo mysql2date( __('Y-m-d g:i a'), $post->post_modified ); ?></td>
    834834    <td><a href="<?php the_permalink(); ?>" rel="permalink" class="edit"><?php _e( 'View' ); ?></a></td>
    835835    <td><?php if ( current_user_can( 'edit_page', $id ) ) { echo "<a href='page.php?action=edit&amp;post=$id' class='edit'>" . __( 'Edit' ) . "</a>"; } ?></td>
  • trunk/wp-admin/edit.php

    r4659 r4802  
    178178    case 'date':
    179179        ?>
    180         <td><?php if ( '0000-00-00 00:00:00' ==$post->post_modified ) _e('Unpublished'); else the_time('Y-m-d \<\b\r \/\> g:i:s a'); ?></td>
     180        <td><?php if ( '0000-00-00 00:00:00' ==$post->post_modified ) _e('Unpublished'); else the_time(_('Y-m-d \<\b\r \/\> g:i:s a')); ?></td>
    181181        <?php
    182182        break;
     
    280280<?php comment_text() ?>
    281281
    282 <p><?php comment_date('M j, g:i A');  ?> &#8212; [
     282<p><?php comment_date(__('M j, g:i A'));  ?> &#8212; [
    283283<?php
    284284if ( current_user_can('edit_post', $comment->comment_post_ID) ) {
  • trunk/wp-admin/options-general.php

    r4480 r4802  
    6161<tr>
    6262<th scope="row"><?php _e('<abbr title="Coordinated Universal Time">UTC</abbr> time is:') ?> </th>
    63 <td><code><?php echo gmdate('Y-m-d g:i:s a'); ?></code></td>
     63<td><code><?php echo gmdate(__('Y-m-d g:i:s a')); ?></code></td>
    6464</tr>
    6565<tr>
Note: See TracChangeset for help on using the changeset viewer.