Changeset 1174
- Timestamp:
- 04/25/2004 11:25:31 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/link-import.php
r1108 r1174 6 6 7 7 $parent_file = 'link-manager.php'; 8 $title = 'Import Blogroll';8 $title = __('Import Blogroll'); 9 9 $this_file = 'link-import.php'; 10 10 … … 19 19 include_once('admin-header.php'); 20 20 if ($user_level < get_settings('links_minadminlevel')) 21 die ( "Cheatin’ uh?");21 die (__("Cheatin’ uh?")); 22 22 23 23 $opmltype = 'blogrolling'; // default. … … 25 25 26 26 <ul id="adminmenu2"> 27 <li><a href="link-manager.php" >Manage Links</a></li>28 <li><a href="link-add.php"> Add Link</a></li>29 <li><a href="link-categories.php"> Link Categories</a></li>30 <li class="last"><a href="link-import.php" class="current"> Import Blogroll</a></li>27 <li><a href="link-manager.php" ><?php _e('Manage Links') ?></a></li> 28 <li><a href="link-add.php"><?php _e('Add Link') ?></a></li> 29 <li><a href="link-categories.php"><?php _e('Link Categories') ?></a></li> 30 <li class="last"><a href="link-import.php" class="current"><?php _e('Import Blogroll') ?></a></li> 31 31 </ul> 32 32 33 33 <div class="wrap"> 34 34 35 <h2> Import your blogroll from another system</h2>35 <h2><?php _e('Import your blogroll from another system') ?> </h2> 36 36 <!-- <form name="blogroll" action="link-import.php" method="get"> --> 37 37 <form enctype="multipart/form-data" action="link-import.php" method="post" name="blogroll"> 38 38 39 39 <ol> 40 <li> Go to <a href="http://www.blogrolling.com">Blogrolling.com</a>41 and sign in. Once you 've done that, click on <strong>Get Code</strong>, and then40 <li><?php _e('Go to <a href="http://www.blogrolling.com">Blogrolling.com</a> 41 and sign in. Once you’ve done that, click on <strong>Get Code</strong>, and then 42 42 look for the <strong><abbr title="Outline Processor Markup Language">OPML</abbr> 43 code</strong> <?php echo gethelp_link($this_file,'opml_code');?>.</li>44 <li> Or go to <a href="http://blo.gs">Blo.gs</a> and sign in. Once you've done45 that in the 'Welcome Back' box on the right, click on <strong>share</strong>, and then43 code</strong>') ?><?php echo gethelp_link($this_file,'opml_code');?>.</li> 44 <li><?php _e('Or go to <a href="http://blo.gs">Blo.gs</a> and sign in. Once you’ve done 45 that in the \'Welcome Back\' box on the right, click on <strong>share</strong>, and then 46 46 look for the <strong><abbr title="Outline Processor Markup Language">OPML</abbr> 47 link</strong> (favorites.opml) <?php echo gethelp_link($this_file,'opml_code');?>.</li>48 <li> Select that text and copy it or copy the link/shortcut into the box below.<br />47 link</strong> (favorites.opml).') ?><?php echo gethelp_link($this_file,'opml_code');?></li> 48 <li><?php _e('Select that text and copy it or copy the link/shortcut into the box below.') ?><br /> 49 49 <input type="hidden" name="step" value="1" /> 50 Your OPML URL:<?php echo gethelp_link($this_file,'opml_code');?> <input type="text" name="opml_url" size="65" />50 <?php _e('Your OPML URL:') ?><?php echo gethelp_link($this_file,'opml_code');?> <input type="text" name="opml_url" size="65" /> 51 51 </li> 52 52 <li> 53 < strong>or</strong> you can upload an OPML file from your desktop aggregator:<br />53 <?php _e('<strong>or</strong> you can upload an OPML file from your desktop aggregator:') ?><br /> 54 54 <input type="hidden" name="MAX_FILE_SIZE" value="30000" /> 55 <label> Upload this file:<input name="userfile" type="file" /></label>55 <label><?php _e('Upload this file:') ?> <input name="userfile" type="file" /></label> 56 56 </li> 57 57 58 <li> Now select a category you want to put these links in.<br />59 Category:<?php echo gethelp_link($this_file,'link_category');?><select name="cat_id">58 <li><?php _e('Now select a category you want to put these links in.') ?><br /> 59 <?php _e('Category:') ?> <?php echo gethelp_link($this_file,'link_category');?><select name="cat_id"> 60 60 <?php 61 61 $categories = $wpdb->get_results("SELECT cat_id, cat_name, auto_toggle FROM $tablelinkcategories ORDER BY cat_id"); … … 70 70 </li> 71 71 72 <li><input type="submit" name="submit" value=" Import!" /><?php echo gethelp_link($this_file,'import');?></li>72 <li><input type="submit" name="submit" value="<?php _e('Import!') ?>" /><?php echo gethelp_link($this_file,'import');?></li> 73 73 </ol> 74 74 </form> … … 83 83 include_once('admin-header.php'); 84 84 if ($user_level < get_settings('links_minadminlevel')) 85 die ( "Cheatin' uh ?");85 die (__("Cheatin' uh ?")); 86 86 ?> 87 87 <div class="wrap"> 88 88 89 <h2> Importing...</h2>89 <h2><?php _e('Importing...') ?></h2> 90 90 <?php 91 91 $cat_id = $_POST['cat_id']; … … 109 109 $opml_url = $uploadfile; 110 110 } else { 111 echo "Upload error<p />";111 echo __("Upload error<p />"); 112 112 } 113 113 } … … 126 126 VALUES('{$urls[$i]}', '".addslashes($names[$i])."', '', $cat_id, '".addslashes($descriptions[$i])."', $user_ID, '{$feeds[$i]}')\n"; 127 127 $result = $wpdb->query($query); 128 echo "<p>Inserted <strong>{$names[$i]}</strong></p>";128 echo sprintf(__("<p>Inserted <strong>%s</strong></p>"), $names[$i]); 129 129 } 130 130 ?> 131 <p> Inserted <?php echo $link_count ?> links into category <?php echo $cat_id; ?>. All done! Go <a href="link-manager.php">manage those links</a>.</p>131 <p><?php printf(__('Inserted %1$d links into category %2$s. All done! Go <a href="%3$s">manage those links</a>.'), $link_count, $cat_id, 'link-manager.php') ?></p> 132 132 <?php 133 133 } // end if got url 134 134 else 135 135 { 136 echo "<p> You need to supply your OPML url. Press back on your browser and try again</p>\n";136 echo "<p>" . __("You need to supply your OPML url. Press back on your browser and try again") . "</p>\n"; 137 137 } // end else 138 138
Note: See TracChangeset
for help on using the changeset viewer.