Make WordPress Core


Ignore:
Timestamp:
04/02/2006 12:20:11 AM (21 years ago)
Author:
ryan
Message:

WP_Locale. Props Sewar. fixes #2568

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-functions.php

    r3672 r3676  
    970970
    971971function touch_time($edit = 1, $for_post = 1) {
    972         global $month, $post, $comment;
     972        global $wp_locale, $post, $comment;
    973973
    974974        if ( $for_post )
    … …  
    990990                echo "\t\t\t<option value=\"$i\"";
    991991                if ($i == $mm)
    992                         echo " selected='selected'";
    993                 if ($i < 10) {
    994                         $ii = "0".$i;
    995                 } else {
    996                         $ii = "$i";
    997                 }
    998                 echo ">".$month["$ii"]."</option>\n";
     992                        echo ' selected="selected"';
     993                echo '>' . $wp_locale->get_month($i) . "</option>\n";
    999994        }
    1000995?>
    … …  
    10081003        if ( $edit ) {
    10091004                _e('Existing timestamp');
    1010                 echo ": {$month[$mm]} $jj, $aa @ $hh:$mn";
     1005                //echo ': ' . $wp_locale->get_month($mm) . "$jj, $aa @ $hh:$mn";
     1006                echo sprintf(__(': %1$s %2$s, %3$s @ %4$s:%5$s'), $wp_locale->get_month($mm), $jj, $aa, $hh, $mn);
    10111007        }
    10121008?>
Note: See TracChangeset for help on using the changeset viewer.