Make WordPress Core

Ticket #37799: 37799.1.diff

File 37799.1.diff, 1.2 KB (added by gma992, 8 years ago)

Added translatable strings via printf()

  • wp-admin/network/upgrade.php

     
    1515$title = __( 'Upgrade Network' );
    1616$parent_file = 'upgrade.php';
    1717
     18$total_sites = get_blog_count();
     19
    1820get_current_screen()->add_help_tab( array(
    1921        'id'      => 'overview',
    2022        'title'   => __('Overview'),
     
    108110                        do_action( 'wpmu_upgrade_site', $site_id );
    109111                }
    110112                echo "</ul>";
    111                 ?><p><?php _e( 'If your browser doesn&#8217;t start loading the next page automatically, click this link:' ); ?> <a class="button" href="upgrade.php?action=upgrade&amp;n=<?php echo ($n + 5) ?>"><?php _e("Next Sites"); ?></a></p>
     113
     114                $sites_left = $total_sites - $n;
     115                $x = $n - 4;
     116
     117                ?>
     118        <p><?php sprintf(_e('Upgrading sites %1$d-%2$d out of %3$d'), $x , $n , $total_sites);?></p>
     119        <p><?php _e( 'If your browser doesn&#8217;t start loading the next page automatically, click this link:' ); ?> <a class="button" href="upgrade.php?action=upgrade&amp;n=<?php echo ($n + 5) ?>"><?php _e("Next Sites"); ?></a></p>
     120
     121
    112122                <script type="text/javascript">
    113123                <!--
    114124                function nextpage() {