Make WordPress Core

Changeset 3259


Ignore:
Timestamp:
12/02/2005 05:39:36 PM (20 years ago)
Author:
ryan
Message:

i18n updates from nbachiyski. #2006

File:
1 edited

Legend:

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

    r3062 r3259  
    223223            // The user must provide a Blogger username and password.
    224224            if ( ! ( $_POST['user'] && $_POST['pass'] ) ) {
    225                 $this->login_form(__('The script will log into your Blogger account, change some settings so it can read your blog, and restore the original settings when it\'s done. Here\'s what you do:</p><ol><li>Back up your Blogger template.</li><li>Back up any other Blogger settings you might need later.</li><li>Log out of Blogger</li><li>Log in <em>here</em> with your Blogger username and password.</li><li>On the next screen, click one of your Blogger blogs.</li><li>Do not close this window or navigate away until the process is complete.</li></ol>'));
     225                $this->login_form(__('The script will log into your Blogger account, change some settings so it can read your blog, and restore the original settings when it\'s done. Here\'s what you do:').'</p><ol><li>'.__('Back up your Blogger template.').'</li><li>'.__('Back up any other Blogger settings you might need later.').'</li><li>'.__('Log out of Blogger').'</li><li>'.__('Log in <em>here</em> with your Blogger username and password.').'</li><li>'.__('On the next screen, click one of your Blogger blogs.').'</li><li>'.__('Do not close this window or navigate away until the process is complete.').'</li></ol>');
    226226            }
    227227       
     
    229229            $this->import['cookies'] = $this->login_blogger($_POST['user'], $_POST['pass']);
    230230            if ( !is_array( $this->import['cookies'] ) ) {
    231                 $this->login_form("Login failed. Please enter your credentials again.");
     231                $this->login_form(__('Login failed. Please enter your credentials again.'));
    232232            }
    233233           
     
    238238            // Get the Blogger welcome page and scrape the blog numbers and names from it
    239239            $response = $this->get_blogger('http://www.blogger.com/home', $this->import['cookies']);
    240             if (! stristr($response['body'], 'signed in as') ) $this->login_form("Login failed. Please re-enter your username and password.");
     240            if (! stristr($response['body'], 'signed in as') ) $this->login_form(__('Login failed. Please re-enter your username and password.'));
    241241            $blogsary = array();
    242242            preg_match_all('#posts\.g\?blogID=(\d+)">([^<]+)</a>#U', $response['body'], $blogsary);
     
    291291    // Step 2: Backup the Blogger options pages, updating some of them.
    292292    function backup_settings() {
    293         $output.= "<h1>Backing up Blogger options</h1>\n";
     293        $output.= '<h1>'.__('Backing up Blogger options')."</h1>\n";
    294294        $form = false;
    295295        foreach ($this->import['blogs'][$_GET['blog']]['options'] as $blog_opt => $optary) {
     
    421421                            $user_password = substr(md5(uniqid(microtime())), 0, 6);
    422422                            $result = wp_create_user( $user_login, $user_password, $user_email );
    423                             $status.= "Registered user <strong>$user_login</strong>. ";
     423                            $status.= sprintf('Registered user <strong>%s</strong>.', $user_login);
    424424                            $this->import['blogs'][$_GET['blog']]['newusers'][] = $user_login;
    425425                        }
     
    509509                    }
    510510                }
    511                 $status = "$postcount ".__('post(s) parsed,')." $skippedpostcount ".__('skipped...')." $commentcount ".__('comment(s) parsed,')." $skippedcommentcount ".__('skipped...').' <strong>'.__('Done').'</strong>';
     511                $status = sprintf(__('%s post(s) parsed, %s skipped...'), $postcount,  $skippedpostcount).' '.
     512                    sprintf(__('%s comment(s) parsed, %s skipped...'), $commentcoun, $skippedcommentcount).' '.
     513                    ' <strong>'.__('Done').'</strong>';
    512514                $import = $this->import;
    513515                $import['blogs'][$_GET['blog']]['archives']["$url"] = $status;
     
    553555                        $this->import['blogs'][$_GET['blog']]['options']["$blog_opt"]['error'] = true;
    554556                        update_option('import-blogger', $this->import);
    555                         $output .= "<p><strong>$blog_opt</strong> ".__('failed. Trying again.').'</p>';
     557                        $output .= sprintf(__('%s failed. Trying again.'), "<p><strong>$blog_opt</strong> ").'</p>';
    556558                    } else {
    557559                        $this->import['blogs'][$_GET['blog']]['options']["$blog_opt"]['restored'] = true;
    558560                        update_option('import-blogger', $this->import);
    559                         $output .= "<p><strong>$blog_opt</strong> ".__('restored.').'</p>';
     561                        $output .= sprintf(__('%s restored.'), "<p><strong>$blog_opt</strong> ").'</p>';
    560562                    }
    561563                }
     
    586588            echo '<li>'.__('In case you haven\'t done it already, you can import the posts from your other blogs:'). $this->show_blogs() . '</li>';
    587589        if ( $n = count($this->import['blogs'][$_GET['blog']]['newusers']) )
    588             echo '<li>'.__('Go to <a href="users.php" target="_parent">Authors & Users</a>, where you can modify the new user(s) or delete them. If you want to make all of the imported posts yours, you will be given that option when you delete the new authors.').'</li>';
     590            echo '<li>'.sptintf(__('Go to <a href="%s" target="%s">Authors &amp; Users</a>, where you can modify the new user(s) or delete them. If you want to make all of the imported posts yours, you will be given that option when you delete the new authors.'), 'users.php', '_parent').'</li>';
    589591        echo '<li>'.__('For security, click the link below to reset this importer. That will clear your Blogger credentials and options from the database.').'</li>';
    590592        echo '</ul>';
Note: See TracChangeset for help on using the changeset viewer.