WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/18/2006 02:31:21 AM (14 years ago)
Author:
ryan
Message:

i18n fixes.

File:
1 edited

Legend:

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

    r3999 r4021  
    7777<p><?php _e('Here you add links to sites that you visit often and share them on your blog. When you have a list of links in your sidebar to other blogs, it&#8217;s called a &#8220;blogroll.&#8221;'); ?></p>
    7878<form id="cats" method="get" action="">
    79 <p>Currently showing
    80 <?php $categories = get_categories("hide_empty=1&type=link"); ?>
    81 <select name="cat_id">
    82 <option value="all" <?php echo ($cat_id == 'all') ? " selected='selected'" : ''; ?>><?php _e('All') ?></option>
    83 <?php foreach ($categories as $cat): ?>
    84 <option value="<?php echo $cat->cat_ID; ?>"<?php echo ($cat->cat_ID == $cat_id) ? " selected='selected'" : ''; ?>><?php echo wp_specialchars($cat->cat_name); ?>
    85 </option>
    86 <?php endforeach; ?>
    87 </select>
    88 links ordered by
    89 <select name="order_by">
    90 <option value="order_id" <?php if ($order_by == 'order_id') echo " selected='selected'";?>><?php _e('Bookmark ID') ?></option>
    91 <option value="order_name" <?php if ($order_by == 'order_name') echo " selected='selected'";?>><?php _e('Name') ?></option>
    92 <option value="order_url" <?php if ($order_by == 'order_url') echo " selected='selected'";?>><?php _e('Address') ?></option>
    93 </select>
     79<p><?php
     80$categories = get_categories("hide_empty=1&type=link");
     81$select_cat = "<select name=\"cat_id\">\n";
     82$select_cat .= '<option value="all"'  . (($cat_id == 'all') ? " selected='selected'" : '') . '>' . __('All') . "</option>\n";
     83foreach ((array) $categories as $cat)
     84    $select_cat .= '<option value="' . $cat->cat_ID . '"' . (($cat->cat_ID == $cat_id) ? " selected='selected'" : '') . '>' . wp_specialchars($cat->cat_name) . "</option>\n";
     85$select_cat .= "</select>\n";
     86
     87$select_order = "<select name=\"order_by\">\n";
     88$select_order .= '<option value="order_id"' . (($order_by == 'order_id') ? " selected='selected'" : '') . '>' .  __('Bookmark ID') . "</option>\n";
     89$select_order .= '<option value="order_name"' . (($order_by == 'order_name') ? " selected='selected'" : '') . '>' .  __('Name') . "</option>\n";
     90$select_order .= '<option value="order_url"' . (($order_by == 'order_url') ? " selected='selected'" : '') . '>' .  __('Address') . "</option>\n";
     91$select_order .= "</select>\n";
     92
     93printf(__('Currently showing %1$s links ordered by %2$s'), $select_cat, $select_order);
     94?>
    9495<input type="submit" name="action" value="<?php _e('Update &raquo;') ?>" /></p>
    9596</form>
Note: See TracChangeset for help on using the changeset viewer.