Make WordPress Core

Changeset 1174


Ignore:
Timestamp:
04/25/2004 11:25:31 PM (20 years ago)
Author:
rboren
Message:

Mark strings for translation.

File:
1 edited

Legend:

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

    r1108 r1174  
    66
    77$parent_file = 'link-manager.php';
    8 $title = 'Import Blogroll';
     8$title = __('Import Blogroll');
    99$this_file = 'link-import.php';
    1010
     
    1919        include_once('admin-header.php');
    2020        if ($user_level < get_settings('links_minadminlevel'))
    21             die ("Cheatin&#8217; uh?");
     21            die (__("Cheatin&#8217; uh?"));
    2222
    2323        $opmltype = 'blogrolling'; // default.
     
    2525
    2626<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>
    3131</ul>
    3232
    3333<div class="wrap">
    3434
    35     <h2>Import your blogroll from another system </h2>
     35    <h2><?php _e('Import your blogroll from another system') ?> </h2>
    3636    <!-- <form name="blogroll" action="link-import.php" method="get"> -->
    3737    <form enctype="multipart/form-data" action="link-import.php" method="post" name="blogroll">
    3838
    3939    <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 then
     40    <li><?php _e('Go to <a href="http://www.blogrolling.com">Blogrolling.com</a>
     41    and sign in. Once you&#8217;ve done that, click on <strong>Get Code</strong>, and then
    4242    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 done
    45     that in the 'Welcome Back' box on the right, click on <strong>share</strong>, and then
     43    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&#8217;ve done
     45    that in the \'Welcome Back\' box on the right, click on <strong>share</strong>, and then
    4646    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 />
    4949       <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" />
    5151    </li>
    5252    <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 />
    5454       <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>
    5656    </li>
    5757
    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">
    6060<?php
    6161    $categories = $wpdb->get_results("SELECT cat_id, cat_name, auto_toggle FROM $tablelinkcategories ORDER BY cat_id");
     
    7070    </li>
    7171
    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>
    7373    </ol>
    7474    </form>
     
    8383                include_once('admin-header.php');
    8484                if ($user_level < get_settings('links_minadminlevel'))
    85                     die ("Cheatin' uh ?");
     85                    die (__("Cheatin' uh ?"));
    8686?>
    8787<div class="wrap">
    8888
    89      <h2>Importing...</h2>
     89     <h2><?php _e('Importing...') ?></h2>
    9090<?php
    9191                $cat_id = $_POST['cat_id'];
     
    109109                        $opml_url = $uploadfile;
    110110                    } else {
    111                         echo "Upload error<p />";
     111                        echo __("Upload error<p />");
    112112                    }
    113113                }
     
    126126                                VALUES('{$urls[$i]}', '".addslashes($names[$i])."', '', $cat_id, '".addslashes($descriptions[$i])."', $user_ID, '{$feeds[$i]}')\n";
    127127                        $result = $wpdb->query($query);
    128                         echo "<p>Inserted <strong>{$names[$i]}</strong></p>";
     128                        echo sprintf(__("<p>Inserted <strong>%s</strong></p>"), $names[$i]);
    129129                    }
    130130?>
    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>
    132132<?php
    133133                } // end if got url
    134134                else
    135135                {
    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";
    137137                } // end else
    138138
Note: See TracChangeset for help on using the changeset viewer.