Make WordPress Core


Ignore:
Timestamp:
09/05/2006 06:52:24 PM (19 years ago)
Author:
ryan
Message:

i18n fixes from nbachiyski. fixes #3109

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/mt.php

    r3785 r4165  
    3333        $users = $wpdb->get_results("SELECT * FROM $wpdb->users ORDER BY ID");
    3434?><select name="userselect[<?php echo $n; ?>]">
    35     <option value="#NONE#">- Select -</option>
     35    <option value="#NONE#"><?php _e('- Select -') ?></option>
    3636    <?php
    3737
     
    149149        foreach ($authors as $author) {
    150150            ++ $j;
    151             echo '<li>Current author: <strong>'.$author.'</strong><br />'.'Create user <input type="text" value="'.$author.'" name="'.'user[]'.'" maxlength="30"> <br /> or map to existing ';
     151            echo '<li>'.__('Current author:').' <strong>'.$author.'</strong><br />'.sprintf(__('Create user %1$s or map to existing'), ' <input type="text" value="'.$author.'" name="'.'user[]'.'" maxlength="30"> <br />');
    152152            $this->users_form($j);
    153153            echo '</li>';
    154154        }
    155155
    156         echo '<input type="submit" value="Submit">'.'<br/>';
     156        echo '<input type="submit" value="'.__('Submit').'">'.'<br/>';
    157157        echo '</form>';
    158158        echo '</ol></div>';
     
    164164        if ( isset($file['error']) ) {
    165165            $this->header();
    166             echo '<p>Sorry, there has been an error.</p>';
     166            echo '<p>'.__('Sorry, there has been an error').'.</p>';
    167167            echo '<p><strong>' . $file['error'] . '</strong></p>';
    168168            $this->footer();
     
    335335                }
    336336                if ( $num_comments )
    337                     printf(__(' (%s comments)'), $num_comments);
     337                    printf(' '.__('(%s comments)'), $num_comments);
    338338
    339339                // Finally the pings
     
    383383                }
    384384                if ( $num_pings )
    385                     printf(__(' (%s pings)'), $num_pings);
     385                    printf(' '.__('(%s pings)'), $num_pings);
    386386
    387387                echo "</li>";
     
    431431$mt_import = new MT_Import();
    432432
    433 register_importer('mt', 'Movable Type and Typepad', __('Imports <strong>posts and comments</strong> from your Movable Type or Typepad blog'), array ($mt_import, 'dispatch'));
     433register_importer('mt', __('Movable Type and Typepad'), __('Imports <strong>posts and comments</strong> from your Movable Type or Typepad blog'), array ($mt_import, 'dispatch'));
    434434?>
Note: See TracChangeset for help on using the changeset viewer.