Make WordPress Core


Ignore:
Timestamp:
04/24/2004 11:07:51 PM (20 years ago)
Author:
rboren
Message:

Mark strings for translation. Partial.

File:
1 edited

Legend:

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

    r1136 r1155  
    55require_once('../wp-config.php');
    66
    7 $title = 'Manage Links';
     7$title = __('Manage Links');
    88$this_file = 'link-manager.php';
    99
     
    8888    // check the current user's level first.
    8989    if ($user_level < get_settings('links_minadminlevel'))
    90       die ("Cheatin' uh ?");
     90      die (__("Cheatin' uh ?"));
    9191
    9292    //for each link id (in $linkcheck[]): if the current user level >= the
     
    119119    // check the current user's level first.
    120120    if ($user_level < get_settings('links_minadminlevel'))
    121       die ("Cheatin' uh ?");
     121      die (__("Cheatin' uh ?"));
    122122
    123123    //for each link id (in $linkcheck[]): toggle the visibility
     
    156156    // check the current user's level first.
    157157    if ($user_level < get_settings('links_minadminlevel'))
    158       die ("Cheatin' uh ?");
     158      die (__("Cheatin' uh ?"));
    159159
    160160    //for each link id (in $linkcheck[]) change category to selected value
     
    190190
    191191    if ($user_level < get_settings('links_minadminlevel'))
    192       die ("Cheatin' uh ?");
     192      die (__("Cheatin' uh ?"));
    193193
    194194    // if we are in an auto toggle category and this one is visible then we
     
    238238
    239239      if ($user_level < get_settings('links_minadminlevel'))
    240         die ("Cheatin' uh ?");
     240        die (__("Cheatin' uh ?"));
    241241
    242242      // if we are in an auto toggle category and this one is visible then we
     
    269269
    270270    if ($user_level < get_settings('links_minadminlevel'))
    271       die ("Cheatin' uh ?");
     271      die (__("Cheatin' uh ?"));
    272272
    273273    $wpdb->query("DELETE FROM $tablelinks WHERE link_id = $link_id");
     
    291291    include_once ('admin-header.php');
    292292    if ($user_level < get_settings('links_minadminlevel')) {
    293       die('You have do not have sufficent permissions to edit the links for this blog.');
     293      die(__('You have do not have sufficent permissions to edit the links for this blog.'));
    294294    }
    295295
     
    314314?>
    315315<ul id="adminmenu2">
    316   <li><a href="link-manager.php" class="current">Manage Links</a></li>
    317   <li><a href="link-add.php">Add Link</a></li>
    318   <li><a href="link-categories.php">Link Categories</a></li>
    319   <li class="last"><a href="link-import.php">Import Blogroll</a></li>
     316  <li><a href="link-manager.php" class="current"><?php _e('Manage Links') ?></a></li>
     317  <li><a href="link-add.php"><?php _e('Add Link') ?></a></li>
     318  <li><a href="link-categories.php"><?php _e('Link Categories') ?></a></li>
     319  <li class="last"><a href="link-import.php"><?php _e('Import Blogroll') ?></a></li>
    320320</ul>
    321321<style media="screen" type="text/css">
     
    324324<div class="wrap">
    325325  <form action="" method="post" name="editlink" id="editlink">
    326   <h2>Edit a link:</h2>
     326  <h2><?php _e('Edit a link:') ?></h2>
    327327<fieldset class="options">
    328     <legend>Basics</legend>
     328    <legend><?php _e('Basics') ?></legend>
    329329        <table class="editform" width="100%" cellspacing="2" cellpadding="5">
    330330         <tr>
    331            <th width="33%" scope="row">URI:</th>
     331           <th width="33%" scope="row"><?php _e('URI:') ?></th>
    332332           <td width="67%"><input type="text" name="linkurl" value="<?php echo $link_url; ?>" style="width: 95%; /"></td>
    333333         </tr>
    334334         <tr>
    335            <th scope="row">Link Name:</th>
     335           <th scope="row"><?php _e('Link Name:') ?></th>
    336336           <td><input type="text" name="name" value="<?php echo $link_name; ?>" style="width: 95%" /></td>
    337337         </tr>
    338338         <tr>
    339             <th scope="row">Short description:</th>
     339            <th scope="row"><?php _e('Short description:') ?></th>
    340340            <td><input type="text" name="description" value="<?php echo $link_description; ?>" style="width: 95%" /></td>
    341341            </tr>
    342342        <tr>
    343            <th scope="row">Category:</th>
     343           <th scope="row"><?php _e('Category:') ?></th>
    344344           <td><?php category_dropdown('category', $link_category); ?></td>
    345345         </tr>
     
    347347</fieldset>
    348348       <p class="submit">
    349          <input type="submit" name="submit" value="Save Changes &raquo;" />
     349       <input type="submit" name="submit" value="<?php _e('Save Changes &raquo;') ?>" />
    350350       </p>
    351351    <fieldset class="options">
    352     <legend>Link Relationship (XFN)</legend>
     352        <legend><?php _e('Link Relationship (XFN)') ?></legend>
    353353        <table class="editform" width="100%" cellspacing="2" cellpadding="5">
    354354            <tr>
    355                 <th width="33%" scope="row">rel:</th>
     355                <th width="33%" scope="row"><?php _e('rel:') ?></th>
    356356                <td width="67%"><input type="text" name="rel" id="rel" size="50" value="<?php echo $link_rel; ?>"></td>
    357357            </tr>
    358358            <tr>
    359                 <th scope="row"><a href="http://gmpg.org/xfn/">XFN</a> Creator:</th>
     359                <th scope="row"><?php _e('<a href="http://gmpg.org/xfn/">XFN</a> Creator:') ?></th>
    360360                <td><table cellpadding="3" cellspacing="5">
    361361            <tr>
    362               <th scope="row"> friendship </th>
     362              <th scope="row"> <?php _e('friendship') ?> </th>
    363363              <td>
    364364                <label for="label">
    365                 <input class="valinp" type="radio" name="friendship" value="acquaintance" id="label" <?php xfn_check('friendship', 'acquaintance', 'radio'); ?> />  acquaintance</label>
     365                <input class="valinp" type="radio" name="friendship" value="acquaintance" id="label" <?php xfn_check('friendship', 'acquaintance', 'radio'); ?> />  <?php _e('acquaintance') ?></label>
    366366                <label for="label2">
    367                 <input class="valinp" type="radio" name="friendship" value="friend" id="label2" <?php xfn_check('friendship', 'friend', 'radio'); ?> /> friend</label>
     367                <input class="valinp" type="radio" name="friendship" value="friend" id="label2" <?php xfn_check('friendship', 'friend', 'radio'); ?> /> <?php _e('friend') ?></label>
    368368                <label for="label3">
    369369                <input name="friendship" type="radio" class="valinp" id="label3" value="" <?php xfn_check('friendship', '', 'radio'); ?> />
    370           none</label>
     370                <?php _e('none') ?></label>
    371371              </td>
    372372            </tr>
    373373            <tr>
    374               <th scope="row"> physical </th>
     374              <th scope="row"> <?php _e('physical') ?> </th>
    375375              <td>
    376376                <label for="label4">
    377377                <input class="valinp" type="checkbox" name="physical" value="met" id="label4" <?php xfn_check('physical', 'met'); ?> />
    378           met</label>
     378          <?php _e('met') ?></label>
    379379              </td>
    380380            </tr>
    381381            <tr>
    382               <th scope="row"> professional </th>
     382              <th scope="row"> <?php _e('professional') ?> </th>
    383383              <td>
    384384                <label for="label5">
    385385                <input class="valinp" type="checkbox" name="professional" value="co-worker" id="label5" <?php xfn_check('professional', 'co-worker'); ?> />
    386           co-worker</label>
     386          <?php _e('co-worker') ?></label>
    387387                <label for="label6">
    388388                <input class="valinp" type="checkbox" name="professional" value="colleague" id="label6" <?php xfn_check('professional', 'colleague'); ?> />
    389           colleague</label>
     389          <?php _e('colleague') ?></label>
    390390              </td>
    391391            </tr>
    392392            <tr>
    393               <th scope="row"> geographical </th>
     393              <th scope="row"> <?php _e('geographical') ?> </th>
    394394              <td>
    395395                <label for="label7">
    396396                <input class="valinp" type="radio" name="geographical" value="co-resident" id="label7" <?php xfn_check('geographical', 'co-resident', 'radio'); ?> />
    397           co-resident</label>
     397          <?php _e('co-resident') ?></label>
    398398                <label for="label8">
    399399                <input class="valinp" type="radio" name="geographical" value="neighbor" id="label8" <?php xfn_check('geographical', 'neighbor', 'radio'); ?> />
    400           neighbor</label>
     400          <?php _e('neighbor') ?></label>
    401401                <label for="label9">
    402402                <input class="valinp" type="radio" name="geographical" value="" id="label9" <?php xfn_check('geographical', '', 'radio'); ?> />
    403           none</label>
     403          <?php _e('none') ?></label>
    404404              </td>
    405405            </tr>
     
    409409                <label for="label10">
    410410                <input class="valinp" type="radio" name="family" value="child" id="label10" <?php xfn_check('family', 'child', 'radio'); ?>  />
    411           child</label>
     411          <?php _e('child') ?></label>
    412412                <label for="label11">
    413413                <input class="valinp" type="radio" name="family" value="parent" id="label11" <?php xfn_check('family', 'parent', 'radio'); ?> />
    414           parent</label>
     414          <?php _e('parent') ?></label>
    415415                <label for="label12">
    416416                <input class="valinp" type="radio" name="family" value="sibling" id="label12" <?php xfn_check('family', 'sibling', 'radio'); ?> />
    417           sibling</label>
     417          <?php _e('sibling') ?></label>
    418418                <label for="label13">
    419419                <input class="valinp" type="radio" name="family" value="spouse" id="label13" <?php xfn_check('family', 'spouse', 'radio'); ?> />
    420           spouse</label>
     420          <?php _e('spouse') ?></label>
    421421                <label for="label14">
    422422                <input class="valinp" type="radio" name="family" value="" id="label14" <?php xfn_check('family', '', 'radio'); ?> />
    423           none</label>
     423          <?php _e('none') ?></label>
    424424              </td>
    425425            </tr>
    426426            <tr>
    427               <th scope="row"> romantic </th>
     427              <th scope="row"> <?php _e('romantic') ?> </th>
    428428              <td>
    429429                <label for="label15">
    430430                <input class="valinp" type="checkbox" name="romantic" value="muse" id="label15" <?php xfn_check('romantic', 'muse'); ?> />
    431           muse</label>
     431         <?php _e('muse') ?></label>
    432432                <label for="label16">
    433433                <input class="valinp" type="checkbox" name="romantic" value="crush" id="label16" <?php xfn_check('romantic', 'crush'); ?> />
    434           crush</label>
     434         <?php _e('crush') ?></label>
    435435                <label for="label17">
    436436                <input class="valinp" type="checkbox" name="romantic" value="date" id="label17" <?php xfn_check('romantic', 'date'); ?> />
    437           date</label>
     437         <?php _e('date') ?></label>
    438438                <label for="label18">
    439439                <input class="valinp" type="checkbox" name="romantic" value="sweetheart" id="label18" <?php xfn_check('romantic', 'sweetheart'); ?> />
    440           sweetheart</label>
     440         <?php _e('sweetheart') ?></label>
    441441              </td>
    442442            </tr>
     
    446446</fieldset>
    447447       <p class="submit">
    448          <input type="submit" name="submit" value="Save Changes &raquo;" />
     448       <input type="submit" name="submit" value="<?php _e('Save Changes &raquo;') ?>" />
    449449       </p>
    450450<fieldset class="options">
    451     <legend>Advanced</legend>
     451        <legend><?php _e('Advanced') ?></legend>
    452452        <table class="editform" width="100%" cellspacing="2" cellpadding="5">
    453453         <tr>
    454            <th width="33%" scope="row">Image URI:</th>
     454           <th width="33%" scope="row"><?php _e('Image URI:') ?></th>
    455455           <td width="67%"><input type="text" name="image" size="50" value="<?php echo $link_image; ?>" style="width: 95%" /></td>
    456456         </tr>
    457457<tr>
    458            <th scope="row">RSS URI: </th>
     458           <th scope="row"><?php _e('RSS URI:') ?> </th>
    459459           <td><input name="rss_uri" type="text" id="rss_uri" value="<?php echo $link_rss_uri; ?>" size="50" style="width: 95%" /></td>
    460460         </tr>
    461461         <tr>
    462            <th scope="row">Notes:</th>
     462           <th scope="row"><?php _e('Notes:') ?></th>
    463463           <td><textarea name="notes" cols="50" rows="10" style="width: 95%"><?php echo $link_notes; ?></textarea></td>
    464464         </tr>
    465465         <tr>
    466            <th scope="row">Rating:</th>
     466           <th scope="row"><?php _e('Rating:') ?></th>
    467467           <td><select name="rating" size="1">
    468468<?php
     
    475475?>
    476476           </select>
    477            &nbsp;(Leave at 0 for no rating.) </td>
     477         &nbsp;<?php _e('(Leave at 0 for no rating.)') ?> </td>
    478478         </tr>
    479479         <tr>
    480            <th scope="row">Target</th>
     480           <th scope="row"><?php _e('Target') ?></th>
    481481           <td><label>
    482482          <input type="radio" name="target" value="_blank"   <?php echo(($link_target == '_blank') ? 'checked="checked"' : ''); ?> />
     
    487487<label>
    488488<input type="radio" name="target" value=""     <?php echo(($link_target == '') ? 'checked="checked"' : ''); ?> />
    489 none</label><br />
    490 (Note that the <code>target</code> attribute is illegal in XHTML 1.1 and 1.0 Strict.)</td>
     489<?php _e('none') ?></label><br />
     490<?php _e('(Note that the <code>target</code> attribute is illegal in XHTML 1.1 and 1.0 Strict.)') ?></td>
    491491         </tr>
    492492         <tr>
    493            <th scope="row">Visible:</th>
     493           <th scope="row"><?php _e('Visible:') ?></th>
    494494           <td><label>
    495495             <input type="radio" name="visible" <?php if ($link_visible == 'Y') echo "checked='checked'"; ?> value="Y" />
    496 Yes</label><br /><label>
     496<?php _e('Yes') ?></label><br /><label>
    497497<input type="radio" name="visible" <?php if ($link_visible == 'N') echo "checked='checked'"; ?> value="N" />
    498 No</label></td>
     498<?php _e('No') ?></label></td>
    499499         </tr>
    500500</table>
    501501</fieldset>
    502 <p class="submit"><input type="submit" name="submit" value="Save Changes &raquo;" />
     502<p class="submit"><input type="submit" name="submit" value="<?php _e('Save Changes &raquo;') ?>" />
    503503          <input type="hidden" name="action" value="editlink" />
    504504          <input type="hidden" name="link_id" value="<?php echo $link_id; ?>" />
     
    510510    break;
    511511  } // end linkedit
    512   case "Show":
     512  case __("Show"):
    513513  {
    514514    if (!isset($cat_id) || ($cat_id == '')) {
     
    552552    include_once ("./admin-header.php");
    553553    if ($user_level < get_settings('links_minadminlevel')) {
    554       die("You have do not have sufficient permissions to edit the links for this blog.");
     554      die(__("You have do not have sufficient permissions to edit the links for this blog."));
    555555    }
    556556
     
    584584</script>
    585585<ul id="adminmenu2">
    586     <li><a href="link-manager.php" class="current">Manage Links</a></li>
    587     <li><a href="link-add.php">Add Link</a></li>
    588     <li><a href="link-categories.php">Link Categories</a></li>
    589     <li class="last"><a href="link-import.php">Import Blogroll</a></li>
     586    <li><a href="link-manager.php" class="current"><?php _e('Manage Links') ?></a></li>
     587    <li><a href="link-add.php"><?php _e('Add Link') ?></a></li>
     588    <li><a href="link-categories.php"><?php _e('Link Categories') ?></a></li>
     589    <li class="last"><a href="link-import.php"><?php _e('Import Blogroll') ?></a></li>
    590590</ul>
    591591<div class="wrap">
     
    624624        <td>
    625625          <select name="order_by">
    626             <option value="order_id"     <?php if ($order_by == 'order_id')     echo " selected='selected'";?>>Link ID</option>
    627             <option value="order_name"   <?php if ($order_by == 'order_name')   echo " selected='selected'";?>>Name</option>
    628             <option value="order_url"    <?php if ($order_by == 'order_url')    echo " selected='selected'";?>>URI</option>
    629             <option value="order_desc"   <?php if ($order_by == 'order_desc')   echo " selected='selected'";?>>Description</option>
    630             <option value="order_owner"  <?php if ($order_by == 'order_owner')  echo " selected='selected'";?>>Owner</option>
    631             <option value="order_rating" <?php if ($order_by == 'order_rating') echo " selected='selected'";?>>Rating</option>
     626            <option value="order_id"     <?php if ($order_by == 'order_id')     echo " selected='selected'";?>><?php _e('Link ID') ?></option>
     627            <option value="order_name"   <?php if ($order_by == 'order_name')   echo " selected='selected'";?>><?php _e('Name') ?></option>
     628            <option value="order_url"    <?php if ($order_by == 'order_url')    echo " selected='selected'";?>><?php _e('URI') ?></option>
     629            <option value="order_desc"   <?php if ($order_by == 'order_desc')   echo " selected='selected'";?>><?php _e('Description') ?></option>
     630            <option value="order_owner"  <?php if ($order_by == 'order_owner')  echo " selected='selected'";?>><?php _e('Owner') ?></option>
     631            <option value="order_rating" <?php if ($order_by == 'order_rating') echo " selected='selected'";?>><?php _e('Rating') ?></option>
    632632          </select>
    633633        </td>
    634634        <td>
    635           <input type="submit" name="action" value="Show" />
     635          <input type="submit" name="action" value="<?php _e('Show') ?>" />
    636636          <?php echo gethelp_link($this_file,'show');?>
    637637        </td>
     
    651651  <table width="100%" cellpadding="3" cellspacing="3">
    652652    <tr>
    653       <th width="15%"><?php echo gethelp_link($this_file,'list_o_links');?> Name</th>
     653      <th width="15%"><?php echo gethelp_link($this_file,'list_o_links');?> <?php _e('Name') ?></th>
    654654      <th>URI</th>
    655655      <th>Category</th>
Note: See TracChangeset for help on using the changeset viewer.