From f2313a908bf8e5bd54bd217719c750b262e92dfc Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 22 Feb 2008 23:13:02 +0000 Subject: [PATCH] Allow full localization of edit timestamp fields. fixes #5514 git-svn-id: http://svn.automattic.com/wordpress/trunk@6989 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index e423948deb..106c4de16f 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -784,19 +784,21 @@ function touch_time( $edit = 1, $for_post = 1, $tab_index = 0 ) { $mn = ($edit) ? mysql2date( 'i', $post_date ) : gmdate( 'i', $time_adj ); $ss = ($edit) ? mysql2date( 's', $post_date ) : gmdate( 's', $time_adj ); - echo "\n"; for ( $i = 1; $i < 13; $i = $i +1 ) { - echo "\t\t\t\n"; + $month .= ' selected="selected"'; + $month .= '>' . $wp_locale->get_month( $i ) . "\n"; } + $month .= ''; + + $day = ''; + $year = ''; + $hour = ''; + $minute = ''; + printf(__('%1$s%2$s%3$s @ %4$s : %5$s'), $month, $day, $year, $hour, $minute); ?> - - /> - /> @ - /> : - />