WordPress.org

Make WordPress Core

Changeset 9589


Ignore:
Timestamp:
11/10/08 17:42:51 (5 years ago)
Author:
ryan
Message:

i18n fixes from nbachiyski. fixes #8142

Location:
trunk/wp-admin
Files:
11 edited

Legend:

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

    r9563 r9589  
    296296        $('#doaction, #doaction2').click(function(){ 
    297297            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.")); ?>'; 
    300299                return showNotice.warn(m); 
    301300            } 
  • trunk/wp-admin/edit-comments.php

    r9565 r9589  
    191191 
    192192<?php if ( $page_links ) : ?> 
    193 <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s&#8211;%s of %s' ) . '</span>' . __( '%s' ), 
     193<div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s&#8211;%s of %s' ) . '</span>%s', 
    194194    number_format_i18n( $start + 1 ), 
    195195    number_format_i18n( min( $page * $comments_per_page, $total ) ), 
     
    345345        $('#doaction, #doaction2').click(function(){ 
    346346            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.")); ?>'; 
    349348                return showNotice.warn(m); 
    350349            } 
  • trunk/wp-admin/edit-link-categories.php

    r9563 r9589  
    230230        $('#doaction, #doaction2').click(function(){ 
    231231            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.")); ?>'; 
    234233                return showNotice.warn(m); 
    235234            } 
  • trunk/wp-admin/edit-pages.php

    r9579 r9589  
    188188 
    189189if ( $page_links ) : ?> 
    190 <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s&#8211;%s of %s' ) . '</span>' . __( '%s' ), 
     190<div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s&#8211;%s of %s' ) . '</span>%s', 
    191191    number_format_i18n( ( $pagenum - 1 ) * $per_page + 1 ), 
    192192    number_format_i18n( min( $pagenum * $per_page, $wp_query->post_count ) ), 
     
    312312        $('#doaction, #doaction2').click(function(){ 
    313313            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.")); ?>'; 
    316315                return showNotice.warn(m); 
    317316            } 
  • trunk/wp-admin/edit-tags.php

    r9563 r9589  
    287287        $('#doaction, #doaction2').click(function(){ 
    288288            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.")); ?>'; 
    291290                return showNotice.warn(m); 
    292291            } 
  • trunk/wp-admin/edit.php

    r9565 r9589  
    226226 
    227227<?php if ( $page_links ) { ?> 
    228 <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s&#8211;%s of %s' ) . '</span>' . __( '%s' ), 
     228<div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s&#8211;%s of %s' ) . '</span>%s', 
    229229    number_format_i18n( ( $_GET['paged'] - 1 ) * $wp_query->query_vars['posts_per_page'] + 1 ), 
    230230    number_format_i18n( min( $_GET['paged'] * $wp_query->query_vars['posts_per_page'], $wp_query->found_posts ) ), 
     
    327327        $('#doaction, #doaction2').click(function(){ 
    328328            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.")); ?>'; 
    331330                return showNotice.warn(m); 
    332331            } 
  • trunk/wp-admin/includes/user.php

    r9565 r9589  
    667667            ) ); 
    668668            if ( $this->paging_text ) { 
    669                 $this->paging_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s&#8211;%s of %s' ) . '</span>' . __( '%s' ), 
     669                $this->paging_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s&#8211;%s of %s' ) . '</span>%s', 
    670670                    number_format_i18n( ( $this->page - 1 ) * $this->users_per_page + 1 ), 
    671671                    number_format_i18n( min( $this->page * $this->users_per_page, $this->total_users_for_query ) ), 
  • trunk/wp-admin/options-general.php

    r9390 r9589  
    154154    echo '  <label><input type="radio" name="date_format" id="date_format_custom_radio" value="\c\u\s\t\o\m"'; 
    155155    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"; 
    157157 
    158158    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"; 
     
    186186    echo '  <label><input type="radio" name="time_format" id="time_format_custom_radio" value="\c\u\s\t\o\m"'; 
    187187    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"; 
    189189?> 
    190190    </fieldset> 
  • trunk/wp-admin/press-this.php

    r9326 r9589  
    523523                    <textarea name="content" id="content" style="width:100%;" class="mceEditor" rows="15"> 
    524524                    <?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>'; } ?> 
    526526                    </textarea> 
    527527                </div> 
  • trunk/wp-admin/themes.php

    r9567 r9589  
    126126 
    127127<?php if ( $page_links ) : ?> 
    128 <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s&#8211;%s of %s' ) . '</span>' . __( '%s' ), 
     128<div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s&#8211;%s of %s' ) . '</span>%s', 
    129129    number_format_i18n( $start + 1 ), 
    130130    number_format_i18n( min( $page * $per_page, $theme_total ) ), 
  • trunk/wp-admin/upload.php

    r9565 r9589  
    237237 
    238238if ( $page_links ) : ?> 
    239 <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s&#8211;%s of %s' ) . '</span>' . __( '%s' ), 
     239<div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s&#8211;%s of %s' ) . '</span>%s', 
    240240    number_format_i18n( ( $_GET['paged'] - 1 ) * $wp_query->query_vars['posts_per_page'] + 1 ), 
    241241    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.