Changeset 9589
- Timestamp:
- 11/10/2008 05:42:51 PM (15 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/categories.php
r9563 r9589 296 296 $('#doaction, #doaction2').click(function(){ 297 297 if ( $('select[name^="action"]').val() == 'delete' ) { 298 var n = $('#the-list input[type="checkbox"]:checked').length; 299 var m = n > 1 ? '<?php echo js_escape(__("You are about to delete the selected categories.\n 'Cancel' to stop, 'OK' to delete.")); ?>' : '<?php echo js_escape(__("You are about to delete the selected category.\n 'Cancel' to stop, 'OK' to delete.")); ?>'; 298 var m = '<?php echo js_escape(__("You are about to delete the selected categories.\n 'Cancel' to stop, 'OK' to delete.")); ?>'; 300 299 return showNotice.warn(m); 301 300 } -
trunk/wp-admin/edit-comments.php
r9565 r9589 191 191 192 192 <?php if ( $page_links ) : ?> 193 <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span> ' . __( '%s' ),193 <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span>%s', 194 194 number_format_i18n( $start + 1 ), 195 195 number_format_i18n( min( $page * $comments_per_page, $total ) ), … … 345 345 $('#doaction, #doaction2').click(function(){ 346 346 if ( $('select[name^="action"]').val() == 'delete' ) { 347 var n = $('#the-comment-list input[type="checkbox"]:checked').length; 348 var m = n > 1 ? '<?php echo js_escape(__("You are about to delete the selected comments.\n 'Cancel' to stop, 'OK' to delete.")); ?>' : '<?php echo js_escape(__("You are about to delete the selected comment.\n 'Cancel' to stop, 'OK' to delete.")); ?>'; 347 var m = '<?php echo js_escape(__("You are about to delete the selected comments.\n 'Cancel' to stop, 'OK' to delete.")); ?>'; 349 348 return showNotice.warn(m); 350 349 } -
trunk/wp-admin/edit-link-categories.php
r9563 r9589 230 230 $('#doaction, #doaction2').click(function(){ 231 231 if ( $('select[name^="action"]').val() == 'delete' ) { 232 var n = $('#the-list input[type="checkbox"]:checked').length; 233 var m = n > 1 ? '<?php echo js_escape(__("You are about to delete the selected link categories.\n 'Cancel' to stop, 'OK' to delete.")); ?>' : '<?php echo js_escape(__("You are about to delete the selected link category.\n 'Cancel' to stop, 'OK' to delete.")); ?>'; 232 var m = '<?php echo js_escape(__("You are about to delete the selected link categories.\n 'Cancel' to stop, 'OK' to delete.")); ?>'; 234 233 return showNotice.warn(m); 235 234 } -
trunk/wp-admin/edit-pages.php
r9579 r9589 188 188 189 189 if ( $page_links ) : ?> 190 <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span> ' . __( '%s' ),190 <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span>%s', 191 191 number_format_i18n( ( $pagenum - 1 ) * $per_page + 1 ), 192 192 number_format_i18n( min( $pagenum * $per_page, $wp_query->post_count ) ), … … 312 312 $('#doaction, #doaction2').click(function(){ 313 313 if ( $('select[name^="action"]').val() == 'delete' ) { 314 var n = $('table.post input[type="checkbox"]:checked').length; 315 var m = n > 1 ? '<?php echo js_escape(__("You are about to delete the selected pages.\n 'Cancel' to stop, 'OK' to delete.")); ?>' : '<?php echo js_escape(__("You are about to delete the selected page.\n 'Cancel' to stop, 'OK' to delete.")); ?>'; 314 var m = '<?php echo js_escape(__("You are about to delete the selected pages.\n 'Cancel' to stop, 'OK' to delete.")); ?>'; 316 315 return showNotice.warn(m); 317 316 } -
trunk/wp-admin/edit-tags.php
r9563 r9589 287 287 $('#doaction, #doaction2').click(function(){ 288 288 if ( $('select[name^="action"]').val() == 'delete' ) { 289 var n = $('#the-list input[type="checkbox"]:checked').length; 290 var m = n > 1 ? '<?php echo js_escape(__("You are about to delete the selected tags.\n 'Cancel' to stop, 'OK' to delete.")); ?>' : '<?php echo js_escape(__("You are about to delete the selected tag.\n 'Cancel' to stop, 'OK' to delete.")); ?>'; 289 var m = '<?php echo js_escape(__("You are about to delete the selected tags.\n 'Cancel' to stop, 'OK' to delete.")); ?>'; 291 290 return showNotice.warn(m); 292 291 } -
trunk/wp-admin/edit.php
r9565 r9589 226 226 227 227 <?php if ( $page_links ) { ?> 228 <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span> ' . __( '%s' ),228 <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span>%s', 229 229 number_format_i18n( ( $_GET['paged'] - 1 ) * $wp_query->query_vars['posts_per_page'] + 1 ), 230 230 number_format_i18n( min( $_GET['paged'] * $wp_query->query_vars['posts_per_page'], $wp_query->found_posts ) ), … … 327 327 $('#doaction, #doaction2').click(function(){ 328 328 if ( $('select[name^="action"]').val() == 'delete' ) { 329 var n = $('table.post input[type="checkbox"]:checked').length; 330 var m = n > 1 ? '<?php echo js_escape(__("You are about to delete the selected posts.\n 'Cancel' to stop, 'OK' to delete.")); ?>' : '<?php echo js_escape(__("You are about to delete the selected post.\n 'Cancel' to stop, 'OK' to delete.")); ?>'; 329 var m = '<?php echo js_escape(__("You are about to delete the selected posts.\n 'Cancel' to stop, 'OK' to delete.")); ?>'; 331 330 return showNotice.warn(m); 332 331 } -
trunk/wp-admin/includes/user.php
r9565 r9589 667 667 ) ); 668 668 if ( $this->paging_text ) { 669 $this->paging_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span> ' . __( '%s' ),669 $this->paging_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span>%s', 670 670 number_format_i18n( ( $this->page - 1 ) * $this->users_per_page + 1 ), 671 671 number_format_i18n( min( $this->page * $this->users_per_page, $this->total_users_for_query ) ), -
trunk/wp-admin/options-general.php
r9390 r9589 154 154 echo ' <label><input type="radio" name="date_format" id="date_format_custom_radio" value="\c\u\s\t\o\m"'; 155 155 checked( $custom, TRUE ); 156 echo '/> ' . __('Custom ') . ':</label><input type="text" name="date_format_custom" value="' . attribute_escape( get_option('date_format') ) . '" class="small-text" /> ' . gmdate( get_option('date_format'), current_time('timestamp') ) . "\n";156 echo '/> ' . __('Custom:') . ' </label><input type="text" name="date_format_custom" value="' . attribute_escape( get_option('date_format') ) . '" class="small-text" /> ' . gmdate( get_option('date_format'), current_time('timestamp') ) . "\n"; 157 157 158 158 echo "\t<p>" . __('<a href="http://codex.wordpress.org/Formatting_Date_and_Time">Documentation on date formatting</a>. Click "Save Changes" to update sample output.') . "</p>\n"; … … 186 186 echo ' <label><input type="radio" name="time_format" id="time_format_custom_radio" value="\c\u\s\t\o\m"'; 187 187 checked( $custom, TRUE ); 188 echo '/> ' . __('Custom ') . ':</label><input type="text" name="time_format_custom" value="' . attribute_escape( get_option('time_format') ) . '" class="small-text" /> ' . gmdate( get_option('time_format'), current_time('timestamp') ) . "\n";188 echo '/> ' . __('Custom:') . ' </label><input type="text" name="time_format_custom" value="' . attribute_escape( get_option('time_format') ) . '" class="small-text" /> ' . gmdate( get_option('time_format'), current_time('timestamp') ) . "\n"; 189 189 ?> 190 190 </fieldset> -
trunk/wp-admin/press-this.php
r9326 r9589 523 523 <textarea name="content" id="content" style="width:100%;" class="mceEditor" rows="15"> 524 524 <?php if ($selection) echo wp_richedit_pre($selection); ?> 525 <?php if ($url) { ?><p><?php if($selection) _e('via'); ?> <a href="<?php echo $url ?>"><?php echo $title; ?></a>.</p><?php} ?>525 <?php if ($url) { echo '<p>'; if($selection) printf( __('via %s.'), "<a href='$url'>$title</a>" ); echo '</p>'; } ?> 526 526 </textarea> 527 527 </div> -
trunk/wp-admin/themes.php
r9567 r9589 126 126 127 127 <?php if ( $page_links ) : ?> 128 <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span> ' . __( '%s' ),128 <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span>%s', 129 129 number_format_i18n( $start + 1 ), 130 130 number_format_i18n( min( $page * $per_page, $theme_total ) ), -
trunk/wp-admin/upload.php
r9565 r9589 237 237 238 238 if ( $page_links ) : ?> 239 <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span> ' . __( '%s' ),239 <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span>%s', 240 240 number_format_i18n( ( $_GET['paged'] - 1 ) * $wp_query->query_vars['posts_per_page'] + 1 ), 241 241 number_format_i18n( min( $_GET['paged'] * $wp_query->query_vars['posts_per_page'], $wp_query->found_posts ) ),
Note: See TracChangeset
for help on using the changeset viewer.