From d7c37c0c02b644145c4e6592435c2c22c494bba1 Mon Sep 17 00:00:00 2001 From: westi Date: Tue, 4 Sep 2007 20:56:08 +0000 Subject: [PATCH] Improve desriptions for I18N strings. Fixes #4906 props nbachiyski git-svn-id: http://svn.automattic.com/wordpress/trunk@6033 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-pages.php | 4 ++-- wp-admin/edit.php | 4 ++-- wp-admin/includes/template.php | 2 +- wp-admin/themes.php | 2 +- wp-includes/locale.php | 6 +++--- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/wp-admin/edit-pages.php b/wp-admin/edit-pages.php index 855f730ba4..0dd3548d30 100644 --- a/wp-admin/edit-pages.php +++ b/wp-admin/edit-pages.php @@ -12,7 +12,7 @@ $post_stati = array( // array( adj, noun ) ); -$post_status_label = _c('Pages|manage pages header'); +$post_status_label = __('Pages'); $post_status_q = ''; if ( isset($_GET['post_status']) && in_array( $_GET['post_status'], array_keys($post_stati) ) ) { $post_status_label = $post_stati[$_GET['post_status']][1]; @@ -31,7 +31,7 @@ if ( isset($_GET['author']) && $_GET['author'] ) { $author_user = get_userdata( (int) $_GET['author'] ); $h2_author = ' ' . sprintf(__('by %s'), wp_specialchars( $author_user->display_name )); } -printf( _c( '%1$s%2$s%3$s|manage pages header' ), $post_status_label, $h2_author, $h2_search ); +printf( _c( '%1$s%2$s%3$s|You can reorder these: 1: Pages, 2: by %s, 3: matching %s' ), $post_status_label, $h2_author, $h2_search ); ?>

diff --git a/wp-admin/edit.php b/wp-admin/edit.php index df11c7b7e5..cb6453bfe0 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -19,7 +19,7 @@ $post_stati = array( // array( adj, noun ) $avail_post_stati = $wpdb->get_col("SELECT DISTINCT post_status FROM $wpdb->posts WHERE post_type = 'post'"); $post_status_q = ''; -$post_status_label = _c('Posts|manage posts header'); +$post_status_label = __('Posts'); if ( isset($_GET['post_status']) && in_array( $_GET['post_status'], array_keys($post_stati) ) ) { $post_status_label = $post_stati[$_GET['post_status']][1]; $post_status_q = '&post_status=' . $_GET['post_status']; @@ -89,7 +89,7 @@ if ( is_single() ) { $h2_search = isset($_GET['s']) && $_GET['s'] ? ' ' . sprintf(__('matching “%s”'), wp_specialchars( get_search_query() ) ) : ''; $h2_cat = isset($_GET['cat']) && $_GET['cat'] ? ' ' . sprintf( __('in “%s”'), single_cat_title('', false) ) : ''; $h2_month = isset($_GET['m']) && $_GET['m'] ? ' ' . sprintf( __('during %s'), single_month_title(' ', false) ) : ''; - printf( _c( '%1$s%2$s%3$s%4$s%5$s|manage posts header' ), $h2_noun, $h2_author, $h2_search, $h2_cat, $h2_month ); + printf( _c( '%1$s%2$s%3$s%4$s%5$s|You can reorder these: 1: Posts, 2: by %s, 3: matching %s, 4: in %s, 5: during %s' ), $h2_noun, $h2_author, $h2_search, $h2_cat, $h2_month ); } ?> diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 5f4efb168b..45119b855e 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -449,7 +449,7 @@ function touch_time( $edit = 1, $for_post = 1 ) { get_month( $mm ), $jj, $aa, $hh, $mn ); + printf( _c( 'Existing timestamp: %1$s %2$s, %3$s @ %4$s:%5$s|1: month, 2: month string, 3: full year, 4: hours, 5: minutes' ), $wp_locale->get_month( $mm ), $jj, $aa, $hh, $mn ); } ?> diff --git a/wp-admin/themes.php b/wp-admin/themes.php index a3f6dde7c9..8aa783aa8d 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -40,7 +40,7 @@ $ct = current_theme_info(); screenshot ) : ?> <?php _e('Current theme preview'); ?> -

title, $ct->version, $ct->author) ; ?>

+

title, $ct->version, $ct->author) ; ?>

description; ?>

parent_theme) { ?>

%2$s. The stylesheet files are located in %3$s. %4$s uses templates from %5$s. Changes made to the templates will affect both themes.'), $ct->title, $ct->template_dir, $ct->stylesheet_dir, $ct->title, $ct->parent_theme); ?>

diff --git a/wp-includes/locale.php b/wp-includes/locale.php index 70262aeb1e..70f3b03b95 100644 --- a/wp-includes/locale.php +++ b/wp-includes/locale.php @@ -90,13 +90,13 @@ class WP_Locale { // Numbers formatting // See http://php.net/number_format - $trans = __('number_format_decimals'); + $trans = _c('number_format_decimals|$decimals argument for http://php.net/number_format, default is 0'); $this->number_format['decimals'] = ('number_format_decimals' == $trans) ? 0 : $trans; - $trans = __('number_format_decimal_point'); + $trans = _c('number_format_decimal_point|$dec_point argument for http://php.net/number_format, default is .'); $this->number_format['decimal_point'] = ('number_format_decimal_point' == $trans) ? '.' : $trans; - $trans = __('number_format_thousands_sep'); + $trans = _c('number_format_thousands_sep|$thousands_sep argument for http://php.net/number_format, default is ,'); $this->number_format['thousands_sep'] = ('number_format_thousands_sep' == $trans) ? ',' : $trans; // Import global locale vars set during inclusion of $locale.php.