Changeset 3260
- Timestamp:
- 12/02/2005 05:42:12 PM (20 years ago)
- Location:
- trunk/wp-admin/import
- Files:
-
- 2 edited
-
blogger.php (modified) (1 diff)
-
textpattern.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/blogger.php
r3259 r3260 342 342 $form.= $body; 343 343 $form.= "</div><script type='text/javascript'>forms=document.getElementsByTagName('form');for(i=0;i<forms.length;i++){if(forms[i].action.search('{$blog_opt}')){forms[i].submit();break;}}</script>"; 344 $output.= "<p><strong>$blog_opt</strong> in progress, please wait...</p>\n";344 $output.= '<p>'.sprintf('<strong>%s</strong> in progress, please wait...', $blog_opt)."</p>\n"; 345 345 } else { 346 346 $output.= "<p>$blog_opt</p>\n"; -
trunk/wp-admin/import/textpattern.php
r3253 r3260 43 43 echo '<div class="wrap">'; 44 44 echo '<h2>'.__('Import Textpattern').'</h2>'; 45 echo '<p>'.__('Steps may take a few minutes depending on the size of your database. Please be patient. </p>');45 echo '<p>'.__('Steps may take a few minutes depending on the size of your database. Please be patient.').'</p>'; 46 46 } 47 47 … … 53 53 function greet() 54 54 { 55 _e('<p>Howdy! This importer allows you to extract posts from any Textpattern 4.0.2+ into your blog. This has not been tested on previous versions of Textpattern. Mileage may vary.</p>');56 _e('<p>Your Textpattern Configuration settings are as follows:</p>');57 _e('<form action="admin.php?import=textpattern&step=1" method="post">');55 echo '<p>'.__('Howdy! This importer allows you to extract posts from any Textpattern 4.0.2+ into your blog. This has not been tested on previous versions of Textpattern. Mileage may vary.').'</p>'; 56 echo '<p>'.__('Your Textpattern Configuration settings are as follows:').'</p>'; 57 echo '<form action="admin.php?import=textpattern&step=1" method="post">'; 58 58 $this->db_form(); 59 _e('<input type="submit" name="submit" value="Import Categories" />');60 _e('</form>');59 echo '<input type="submit" name="submit" value="Import Categories" />'; 60 echo '</form>'; 61 61 } 62 62 … … 428 428 if(is_array($links)) 429 429 { 430 echo __('<p>Importing Links...<br /><br /></p>');430 echo '<p>'.__('Importing Links...').'<br /><br /></p>'; 431 431 foreach($links as $link) 432 432 { … … 463 463 } 464 464 add_option('txplinks2wplinks',$txplinks2wplinks); 465 echo __('<p>Done! <strong>'.$count.'</strong> Links imported.<br /><br /></p>'); 465 echo '<p>'; 466 printf(__('Done! <strong>%s</strong> Links imported'), $count); 467 echo '<br /><br /></p>'; 466 468 return true; 467 469 } … … 479 481 480 482 481 _e('<form action="admin.php?import=textpattern&step=2" method="post">');482 _e('<input type="submit" name="submit" value="Import Users" />');483 _e('</form>');483 echo '<form action="admin.php?import=textpattern&step=2" method="post">'; 484 printf('<input type="submit" name="submit" value="%s" />', __('Import Users')); 485 echo '</form>'; 484 486 485 487 } … … 491 493 $this->users2wp($users); 492 494 493 _e('<form action="admin.php?import=textpattern&step=3" method="post">');494 _e('<input type="submit" name="submit" value="Import Posts" />');495 _e('</form>');495 echo '<form action="admin.php?import=textpattern&step=3" method="post">'; 496 printf('<input type="submit" name="submit" value="%s" />', __('Import Posts')); 497 echo '</form>'; 496 498 } 497 499 … … 502 504 $this->posts2wp($posts); 503 505 504 _e('<form action="admin.php?import=textpattern&step=4" method="post">');505 _e('<input type="submit" name="submit" value="Import Comments" />');506 _e('</form>');506 echo '<form action="admin.php?import=textpattern&step=4" method="post">'; 507 printf('<input type="submit" name="submit" value="%s" />', __('Import Comments')); 508 echo '</form>'; 507 509 } 508 510 … … 513 515 $this->comments2wp($comments); 514 516 515 _e('<form action="admin.php?import=textpattern&step=5" method="post">');516 _e('<input type="submit" name="submit" value="Import Links" />');517 _e('</form>');517 echo '<form action="admin.php?import=textpattern&step=5" method="post">'; 518 printf('<input type="submit" name="submit" value="%s" />', __('Import Links')); 519 echo '</form>'; 518 520 } 519 521 … … 525 527 add_option('txp_links', $links); 526 528 527 _e('<form action="admin.php?import=textpattern&step=6" method="post">');528 _e('<input type="submit" name="submit" value="Finish" />');529 _e('</form>');529 echo '<form action="admin.php?import=textpattern&step=6" method="post">'; 530 printf('<input type="submit" name="submit" value="%s" />', __('Finish')); 531 echo '</form>'; 530 532 } 531 533 … … 548 550 function tips() 549 551 { 550 echo __('<p>Welcome to WordPress. We hope (and expect!) that you will find this platform incredibly rewarding! As a new WordPress user coming from Textpattern, there are some things that we would like to point out. Hopefully, they will help your transition go as smoothly as possible.</p>');551 echo __('<h3>Users</h3>');552 echo __('<p>You have already setup WordPress and have been assigned an administrative login and password. Forget it. You didn\'t have that login in Textpattern, why should you have it here? Instead we have taken care to import all of your users into our system. Unfortunately there is one downside. Because both WordPress and Textpattern uses a strong encryption hash with passwords, it is impossible to decrypt it and we are forced to assign temporary passwords to all your users. <strong>Every user has the same username, but their passwords are reset to password123.</strong> So <a href="/wp-login.php">Login</a> and change it.</p>');553 echo __('<h3>Preserving Authors</h3>');554 echo __('<p>Secondly, we have attempted to preserve post authors. If you are the only author or contributor to your blog, then you are safe. In most cases, we are successful in this preservation endeavor. However, if we cannot ascertain the name of the writer due to discrepancies between database tables, we assign it to you, the administrative user.</p>');555 echo __('<h3>Textile</h3>');556 echo __('<p>Also, since you\'re coming from Textpattern, you probably have been using Textile to format your comments and posts. If this is the case, we recommend downloading and installing <a href="http://www.huddledmasses.org/2004/04/19/wordpress-plugin-textile-20/">Textile for WordPress</a>. Trust me... You\'ll want it.</p>');557 echo __('<h3>WordPress Resources</h3>');558 echo __('<p>Finally, there are numerous WordPress resources around the internet. Some of them are:</p>');559 echo __('<ul>');560 echo __('<li><a href="http://www.wordpress.org">The official WordPress site</a></li>');561 echo __('<li><a href="http://wordpress.org/support/">The WordPress support forums</li>');562 echo __('<li><a href="http://codex.wordpress.org">The Codex (In other words, the WordPress Bible)</a></li>');563 echo __('</ul>');564 echo __('<p>That\'s it! What are you waiting for? Go <a href="/wp-login.php">login</a>!</p>');552 echo '<p>'.__('Welcome to WordPress. We hope (and expect!) that you will find this platform incredibly rewarding! As a new WordPress user coming from Textpattern, there are some things that we would like to point out. Hopefully, they will help your transition go as smoothly as possible.').'</p>'; 553 echo '<h3>'.__('Users').'</h3>'; 554 echo '<p>'.__('You have already setup WordPress and have been assigned an administrative login and password. Forget it. You didn\'t have that login in Textpattern, why should you have it here? Instead we have taken care to import all of your users into our system. Unfortunately there is one downside. Because both WordPress and Textpattern uses a strong encryption hash with passwords, it is impossible to decrypt it and we are forced to assign temporary passwords to all your users. <strong>Every user has the same username, but their passwords are reset to password123.</strong> So <a href="/wp-login.php">Login</a> and change it.').'</p>'; 555 echo '<h3>'.__('Preserving Authors').'</h3>'; 556 echo '<p>'.__('Secondly, we have attempted to preserve post authors. If you are the only author or contributor to your blog, then you are safe. In most cases, we are successful in this preservation endeavor. However, if we cannot ascertain the name of the writer due to discrepancies between database tables, we assign it to you, the administrative user.').'</p>'; 557 echo '<h3>'.__('Textile').'</h3>'; 558 echo '<p>'.__('Also, since you\'re coming from Textpattern, you probably have been using Textile to format your comments and posts. If this is the case, we recommend downloading and installing <a href="http://www.huddledmasses.org/2004/04/19/wordpress-plugin-textile-20/">Textile for WordPress</a>. Trust me... You\'ll want it.').'</p>'; 559 echo '<h3>'.__('WordPress Resources').'</h3>'; 560 echo '<p>'.__('Finally, there are numerous WordPress resources around the internet. Some of them are:').'</p>'; 561 echo '<ul>'; 562 echo '<li>'.__('<a href="http://www.wordpress.org">The official WordPress site</a>').'</li>'; 563 echo '<li>'.__('<a href="http://wordpress.org/support/">The WordPress support forums').'</li>'; 564 echo '<li>'.__('<a href="http://codex.wordpress.org">The Codex (In other words, the WordPress Bible)</a>').'</li>'; 565 echo '</ul>'; 566 echo '<p>'.__('That\'s it! What are you waiting for? Go <a href="/wp-login.php">login</a>!').'</p>'; 565 567 } 566 568 567 569 function db_form() 568 570 { 569 _e('<ul>');570 _e('<li><label for="dbuser">Textpattern Database User:</label> <input type="text" name="dbuser" /></li>');571 _e('<li><label for="dbpass">Textpattern Database Password:</label> <input type="password" name="dbpass" /></li>');572 _e('<li><label for="dbname">Textpattern Database Name:</label> <input type="text" name="dbname" /></li>');573 _e('<li><label for="dbhost">Textpattern Database Host:</label> <input type="text" name="dbhost" value="localhost" /></li>');574 _e('<li><label for="dbprefix">Textpattern Table prefix (if any)t:</label> <input type="text" name="dbprefix" /></li>');575 _e('</ul>');571 echo '<ul>'; 572 printf('<li><label for="dbuser">%s</label> <input type="text" name="dbuser" /></li>', __('Textpattern Database User:')); 573 printf('<li><label for="dbpass">%s</label> <input type="password" name="dbpass" /></li>', __('Textpattern Database Password:')); 574 printf('<li><label for="dbname">%s</label> <input type="text" name="dbname" /></li>', __('Textpattern Database Name:')); 575 printf('<li><label for="dbhost">%s</label> <input type="text" name="dbhost" value="localhost" /></li>', __('Textpattern Database Host:')); 576 printf('<li><label for="dbprefix">%s</label> <input type="text" name="dbprefix" /></li>', __('Textpattern Table prefix (if any):')); 577 echo '</ul>'; 576 578 } 577 579
Note: See TracChangeset
for help on using the changeset viewer.