Mark strings for translation.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1174 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren 2004-04-25 23:25:31 +00:00
parent 3c2b90823d
commit ce2a3fa178
1 changed files with 27 additions and 27 deletions

View File

@ -5,7 +5,7 @@
require_once('../wp-config.php'); require_once('../wp-config.php');
$parent_file = 'link-manager.php'; $parent_file = 'link-manager.php';
$title = 'Import Blogroll'; $title = __('Import Blogroll');
$this_file = 'link-import.php'; $this_file = 'link-import.php';
$step = $_POST['step']; $step = $_POST['step'];
@ -18,45 +18,45 @@ switch ($step) {
$standalone = 0; $standalone = 0;
include_once('admin-header.php'); include_once('admin-header.php');
if ($user_level < get_settings('links_minadminlevel')) if ($user_level < get_settings('links_minadminlevel'))
die ("Cheatin&#8217; uh?"); die (__("Cheatin&#8217; uh?"));
$opmltype = 'blogrolling'; // default. $opmltype = 'blogrolling'; // default.
?> ?>
<ul id="adminmenu2"> <ul id="adminmenu2">
<li><a href="link-manager.php" >Manage Links</a></li> <li><a href="link-manager.php" ><?php _e('Manage Links') ?></a></li>
<li><a href="link-add.php">Add Link</a></li> <li><a href="link-add.php"><?php _e('Add Link') ?></a></li>
<li><a href="link-categories.php">Link Categories</a></li> <li><a href="link-categories.php"><?php _e('Link Categories') ?></a></li>
<li class="last"><a href="link-import.php" class="current">Import Blogroll</a></li> <li class="last"><a href="link-import.php" class="current"><?php _e('Import Blogroll') ?></a></li>
</ul> </ul>
<div class="wrap"> <div class="wrap">
<h2>Import your blogroll from another system </h2> <h2><?php _e('Import your blogroll from another system') ?> </h2>
<!-- <form name="blogroll" action="link-import.php" method="get"> --> <!-- <form name="blogroll" action="link-import.php" method="get"> -->
<form enctype="multipart/form-data" action="link-import.php" method="post" name="blogroll"> <form enctype="multipart/form-data" action="link-import.php" method="post" name="blogroll">
<ol> <ol>
<li>Go to <a href="http://www.blogrolling.com">Blogrolling.com</a> <li><?php _e('Go to <a href="http://www.blogrolling.com">Blogrolling.com</a>
and sign in. Once you've done that, click on <strong>Get Code</strong>, and then and sign in. Once you&#8217;ve done that, click on <strong>Get Code</strong>, and then
look for the <strong><abbr title="Outline Processor Markup Language">OPML</abbr> look for the <strong><abbr title="Outline Processor Markup Language">OPML</abbr>
code</strong><?php echo gethelp_link($this_file,'opml_code');?>.</li> code</strong>') ?><?php echo gethelp_link($this_file,'opml_code');?>.</li>
<li>Or go to <a href="http://blo.gs">Blo.gs</a> and sign in. Once you've done <li><?php _e('Or go to <a href="http://blo.gs">Blo.gs</a> and sign in. Once you&#8217;ve done
that in the 'Welcome Back' box on the right, click on <strong>share</strong>, and then that in the \'Welcome Back\' box on the right, click on <strong>share</strong>, and then
look for the <strong><abbr title="Outline Processor Markup Language">OPML</abbr> look for the <strong><abbr title="Outline Processor Markup Language">OPML</abbr>
link</strong> (favorites.opml)<?php echo gethelp_link($this_file,'opml_code');?>.</li> link</strong> (favorites.opml).') ?><?php echo gethelp_link($this_file,'opml_code');?></li>
<li>Select that text and copy it or copy the link/shortcut into the box below.<br /> <li><?php _e('Select that text and copy it or copy the link/shortcut into the box below.') ?><br />
<input type="hidden" name="step" value="1" /> <input type="hidden" name="step" value="1" />
Your OPML URL:<?php echo gethelp_link($this_file,'opml_code');?> <input type="text" name="opml_url" size="65" /> <?php _e('Your OPML URL:') ?><?php echo gethelp_link($this_file,'opml_code');?> <input type="text" name="opml_url" size="65" />
</li> </li>
<li> <li>
<strong>or</strong> you can upload an OPML file from your desktop aggregator:<br /> <?php _e('<strong>or</strong> you can upload an OPML file from your desktop aggregator:') ?><br />
<input type="hidden" name="MAX_FILE_SIZE" value="30000" /> <input type="hidden" name="MAX_FILE_SIZE" value="30000" />
<label>Upload this file: <input name="userfile" type="file" /></label> <label><?php _e('Upload this file:') ?> <input name="userfile" type="file" /></label>
</li> </li>
<li>Now select a category you want to put these links in.<br /> <li><?php _e('Now select a category you want to put these links in.') ?><br />
Category: <?php echo gethelp_link($this_file,'link_category');?><select name="cat_id"> <?php _e('Category:') ?> <?php echo gethelp_link($this_file,'link_category');?><select name="cat_id">
<?php <?php
$categories = $wpdb->get_results("SELECT cat_id, cat_name, auto_toggle FROM $tablelinkcategories ORDER BY cat_id"); $categories = $wpdb->get_results("SELECT cat_id, cat_name, auto_toggle FROM $tablelinkcategories ORDER BY cat_id");
foreach ($categories as $category) { foreach ($categories as $category) {
@ -69,7 +69,7 @@ switch ($step) {
</li> </li>
<li><input type="submit" name="submit" value="Import!" /><?php echo gethelp_link($this_file,'import');?></li> <li><input type="submit" name="submit" value="<?php _e('Import!') ?>" /><?php echo gethelp_link($this_file,'import');?></li>
</ol> </ol>
</form> </form>
@ -82,11 +82,11 @@ switch ($step) {
$standalone = 0; $standalone = 0;
include_once('admin-header.php'); include_once('admin-header.php');
if ($user_level < get_settings('links_minadminlevel')) if ($user_level < get_settings('links_minadminlevel'))
die ("Cheatin' uh ?"); die (__("Cheatin' uh ?"));
?> ?>
<div class="wrap"> <div class="wrap">
<h2>Importing...</h2> <h2><?php _e('Importing...') ?></h2>
<?php <?php
$cat_id = $_POST['cat_id']; $cat_id = $_POST['cat_id'];
if (($cat_id == '') || ($cat_id == 0)) { if (($cat_id == '') || ($cat_id == 0)) {
@ -108,7 +108,7 @@ switch ($step) {
$blogrolling = false; $blogrolling = false;
$opml_url = $uploadfile; $opml_url = $uploadfile;
} else { } else {
echo "Upload error<p />"; echo __("Upload error<p />");
} }
} }
@ -125,15 +125,15 @@ switch ($step) {
$query = "INSERT INTO $tablelinks (link_url, link_name, link_target, link_category, link_description, link_owner, link_rss) $query = "INSERT INTO $tablelinks (link_url, link_name, link_target, link_category, link_description, link_owner, link_rss)
VALUES('{$urls[$i]}', '".addslashes($names[$i])."', '', $cat_id, '".addslashes($descriptions[$i])."', $user_ID, '{$feeds[$i]}')\n"; VALUES('{$urls[$i]}', '".addslashes($names[$i])."', '', $cat_id, '".addslashes($descriptions[$i])."', $user_ID, '{$feeds[$i]}')\n";
$result = $wpdb->query($query); $result = $wpdb->query($query);
echo "<p>Inserted <strong>{$names[$i]}</strong></p>"; echo sprintf(__("<p>Inserted <strong>%s</strong></p>"), $names[$i]);
} }
?> ?>
<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> <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>
<?php <?php
} // end if got url } // end if got url
else else
{ {
echo "<p>You need to supply your OPML url. Press back on your browser and try again</p>\n"; echo "<p>" . __("You need to supply your OPML url. Press back on your browser and try again") . "</p>\n";
} // end else } // end else
?> ?>
@ -144,4 +144,4 @@ switch ($step) {
?> ?>
</div> </div>
</body> </body>
</html> </html>