- <?php
- $themes_to_delete = count( $themes );
- echo '<h2>' . _n( 'Delete Theme', 'Delete Themes', $themes_to_delete ) . '</h2>';
- ?>
- <div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php echo _n( 'This theme may be active on other sites in the network.', 'These themes may be active on other sites in the network.', $themes_to_delete ); ?></p></div>
- <p><?php echo _n( 'You are about to remove the following theme:', 'You are about to remove the following themes:', $themes_to_delete ); ?></p>
+ <?php if ( 1 == $themes_to_delete ) : ?>
+ <h1><?php _e( 'Delete Theme' ); ?></h1>
+ <div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php _e( 'This theme may be active on other sites in the network.' ); ?></p></div>
+ <p><?php _e( 'You are about to remove the following theme:' ); ?></p>
+ <?php else : ?>
+ <h1><?php _e( 'Delete Themes' ); ?></h1>
+ <div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php _e( 'These themes may be active on other sites in the network.' ); ?></p></div>
+ <p><?php _e( 'You are about to remove the following themes:' ); ?></p>
+ <?php endif; ?>