From d699f0d00dba1251a890038ad27e896d8029c3d4 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 10 Nov 2008 17:42:51 +0000 Subject: [PATCH] i18n fixes from nbachiyski. fixes #8142 git-svn-id: http://svn.automattic.com/wordpress/trunk@9589 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/categories.php | 3 +-- wp-admin/edit-comments.php | 5 ++--- wp-admin/edit-link-categories.php | 3 +-- wp-admin/edit-pages.php | 5 ++--- wp-admin/edit-tags.php | 3 +-- wp-admin/edit.php | 5 ++--- wp-admin/includes/user.php | 2 +- wp-admin/options-general.php | 4 ++-- wp-admin/press-this.php | 2 +- wp-admin/themes.php | 2 +- wp-admin/upload.php | 2 +- 11 files changed, 15 insertions(+), 21 deletions(-) diff --git a/wp-admin/categories.php b/wp-admin/categories.php index 979cb01411..167015cd92 100644 --- a/wp-admin/categories.php +++ b/wp-admin/categories.php @@ -295,8 +295,7 @@ if ( $page_links ) $(document).ready(function(){ $('#doaction, #doaction2').click(function(){ if ( $('select[name^="action"]').val() == 'delete' ) { - var n = $('#the-list input[type="checkbox"]:checked').length; - var m = n > 1 ? '' : ''; + var m = ''; return showNotice.warn(m); } }); diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index bd0d4451db..554b62951b 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -190,7 +190,7 @@ $page_links = paginate_links( array(
-
' . __( 'Displaying %s–%s of %s' ) . '' . __( '%s' ), +
' . __( 'Displaying %s–%s of %s' ) . '%s', number_format_i18n( $start + 1 ), number_format_i18n( min( $page * $comments_per_page, $total ) ), number_format_i18n( $total ), @@ -344,8 +344,7 @@ if ( $page_links ) $(document).ready(function(){ $('#doaction, #doaction2').click(function(){ if ( $('select[name^="action"]').val() == 'delete' ) { - var n = $('#the-comment-list input[type="checkbox"]:checked').length; - var m = n > 1 ? '' : ''; + var m = ''; return showNotice.warn(m); } }); diff --git a/wp-admin/edit-link-categories.php b/wp-admin/edit-link-categories.php index d63b1aa408..c56ab2b819 100644 --- a/wp-admin/edit-link-categories.php +++ b/wp-admin/edit-link-categories.php @@ -229,8 +229,7 @@ if ( $page_links ) $(document).ready(function(){ $('#doaction, #doaction2').click(function(){ if ( $('select[name^="action"]').val() == 'delete' ) { - var n = $('#the-list input[type="checkbox"]:checked').length; - var m = n > 1 ? '' : ''; + var m = ''; return showNotice.warn(m); } }); diff --git a/wp-admin/edit-pages.php b/wp-admin/edit-pages.php index e7c971f48e..d2a7a4c57c 100644 --- a/wp-admin/edit-pages.php +++ b/wp-admin/edit-pages.php @@ -187,7 +187,7 @@ $page_links = paginate_links( array( )); if ( $page_links ) : ?> -
' . __( 'Displaying %s–%s of %s' ) . '' . __( '%s' ), +
' . __( 'Displaying %s–%s of %s' ) . '%s', number_format_i18n( ( $pagenum - 1 ) * $per_page + 1 ), number_format_i18n( min( $pagenum * $per_page, $wp_query->post_count ) ), number_format_i18n( $wp_query->post_count ), @@ -311,8 +311,7 @@ endif; // posts; $(document).ready(function(){ $('#doaction, #doaction2').click(function(){ if ( $('select[name^="action"]').val() == 'delete' ) { - var n = $('table.post input[type="checkbox"]:checked').length; - var m = n > 1 ? '' : ''; + var m = ''; return showNotice.warn(m); } }); diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index a66dcf96f6..1d4070958a 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -286,8 +286,7 @@ else $(document).ready(function(){ $('#doaction, #doaction2').click(function(){ if ( $('select[name^="action"]').val() == 'delete' ) { - var n = $('#the-list input[type="checkbox"]:checked').length; - var m = n > 1 ? '' : ''; + var m = ''; return showNotice.warn(m); } }); diff --git a/wp-admin/edit.php b/wp-admin/edit.php index 51c82a297b..20167f89f3 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -225,7 +225,7 @@ do_action('restrict_manage_posts');
-
' . __( 'Displaying %s–%s of %s' ) . '' . __( '%s' ), +
' . __( 'Displaying %s–%s of %s' ) . '%s', number_format_i18n( ( $_GET['paged'] - 1 ) * $wp_query->query_vars['posts_per_page'] + 1 ), number_format_i18n( min( $_GET['paged'] * $wp_query->query_vars['posts_per_page'], $wp_query->found_posts ) ), number_format_i18n( $wp_query->found_posts ), @@ -326,8 +326,7 @@ endif; // posts; $(document).ready(function(){ $('#doaction, #doaction2').click(function(){ if ( $('select[name^="action"]').val() == 'delete' ) { - var n = $('table.post input[type="checkbox"]:checked').length; - var m = n > 1 ? '' : ''; + var m = ''; return showNotice.warn(m); } }); diff --git a/wp-admin/includes/user.php b/wp-admin/includes/user.php index f5c19f83fe..c7b6f6b173 100644 --- a/wp-admin/includes/user.php +++ b/wp-admin/includes/user.php @@ -666,7 +666,7 @@ class WP_User_Search { 'add_args' => $args ) ); if ( $this->paging_text ) { - $this->paging_text = sprintf( '' . __( 'Displaying %s–%s of %s' ) . '' . __( '%s' ), + $this->paging_text = sprintf( '' . __( 'Displaying %s–%s of %s' ) . '%s', number_format_i18n( ( $this->page - 1 ) * $this->users_per_page + 1 ), number_format_i18n( min( $this->page * $this->users_per_page, $this->total_users_for_query ) ), number_format_i18n( $this->total_users_for_query ), diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index bb197337d1..0b1a514919 100644 --- a/wp-admin/options-general.php +++ b/wp-admin/options-general.php @@ -153,7 +153,7 @@ foreach ( $offset_range as $offset ) { echo ' ' . gmdate( get_option('date_format'), current_time('timestamp') ) . "\n"; + echo '/> ' . __('Custom:') . ' ' . gmdate( get_option('date_format'), current_time('timestamp') ) . "\n"; echo "\t

" . __('Documentation on date formatting. Click "Save Changes" to update sample output.') . "

\n"; ?> @@ -185,7 +185,7 @@ foreach ( $offset_range as $offset ) { echo ' ' . gmdate( get_option('time_format'), current_time('timestamp') ) . "\n"; + echo '/> ' . __('Custom:') . ' ' . gmdate( get_option('time_format'), current_time('timestamp') ) . "\n"; ?> diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php index 2e228b3b2d..a315ad03a6 100644 --- a/wp-admin/press-this.php +++ b/wp-admin/press-this.php @@ -522,7 +522,7 @@ die;
diff --git a/wp-admin/themes.php b/wp-admin/themes.php index 750e80868d..cbcf4a8e40 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -125,7 +125,7 @@ function theme_update_available( $theme ) {
-
' . __( 'Displaying %s–%s of %s' ) . '' . __( '%s' ), +
' . __( 'Displaying %s–%s of %s' ) . '%s', number_format_i18n( $start + 1 ), number_format_i18n( min( $page * $per_page, $theme_total ) ), number_format_i18n( $theme_total ), diff --git a/wp-admin/upload.php b/wp-admin/upload.php index c4b55c9411..ae7717f63a 100644 --- a/wp-admin/upload.php +++ b/wp-admin/upload.php @@ -236,7 +236,7 @@ $page_links = paginate_links( array( )); if ( $page_links ) : ?> -
' . __( 'Displaying %s–%s of %s' ) . '' . __( '%s' ), +
' . __( 'Displaying %s–%s of %s' ) . '%s', number_format_i18n( ( $_GET['paged'] - 1 ) * $wp_query->query_vars['posts_per_page'] + 1 ), number_format_i18n( min( $_GET['paged'] * $wp_query->query_vars['posts_per_page'], $wp_query->found_posts ) ), number_format_i18n( $wp_query->found_posts ),