Make WordPress Core


Ignore:
Timestamp:
04/20/2004 04:15:18 AM (21 years ago)
Author:
rboren
Message:

Mark strings for translation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form.php

    r956 r1106  
    55$allowed_users = explode(" ", trim(get_settings('fileupload_allowedusers')));
    66
    7 $submitbutton_text = 'Blog this!';
    8 $toprow_title = 'New Post';
     7$submitbutton_text = __('Blog this!');
     8$toprow_title = __('New Post');
    99$form_action = 'post';
    1010$form_extra = '';
     
    1212    $form_pingback = '<input type="checkbox" class="checkbox" name="post_pingback" value="1" ';
    1313    if ($post_pingback) $form_pingback .= 'checked="checked" ';
    14     $form_pingback .= 'tabindex="7" id="pingback" /> <label for="pingback"><strong>PingBack</strong> the <acronym title="Uniform Resource Locators">URL</acronym>s in this post</label> <a href="http://wordpress.org/docs/reference/post/#pingback" title="Help on Pingbacks">?</a><br />';
     14    $form_pingback .= 'tabindex="7" id="pingback" /> <label for="pingback">' . sprintf(__('<strong>PingBack</strong> the <acronym title="Uniform Resource Locators">URL</acronym>s in this post</label> <a href="%s" title="Help on Pingbacks">?</a><br />'), 'http://wordpress.org/docs/reference/post/#pingback');
    1515} else {
    1616    $form_pingback = '';
    1717}
    1818if (get_settings('use_trackback')) {
    19     $form_trackback = '<p><label for="trackback"><a href="http://wordpress.org/docs/reference/post/#trackback" title="Help on trackbacks"><strong>TrackBack</strong> an <acronym title="Uniform Resource Locator">URL</acronym></a>:</label> (Separate multiple <acronym title="Uniform Resource Locator">URL</acronym>s with spaces.)<br />
    20     <input type="text" name="trackback_url" style="width: 360px" id="trackback" tabindex="7" /></p>';
     19    $form_trackback = '<p><label for="trackback">' . sprintf(__('<a href="%s" title="Help on trackbacks"><strong>TrackBack</strong> an <acronym title="Uniform Resource Locator">URL</acronym></a>:</label> (Separate multiple <acronym title="Uniform Resource Locator">URL</acronym>s with spaces.)<br />'), 'http://wordpress.org/docs/reference/post/#trackback') .
     20    '<input type="text" name="trackback_url" style="width: 360px" id="trackback" tabindex="7" /></p>';
    2121    if ('' != $pinged) {
    22         $form_trackback .= '<p>Already pinged:</p><ul>';
     22        $form_trackback .= '<p>' . __('Already pinged:') . '</p><ul>';
    2323        $already_pinged = explode("\n", trim($pinged));
    2424        foreach ($already_pinged as $pinged_url) {
     
    6262<div id="poststuff">
    6363    <fieldset id="titlediv">
    64       <legend><a href="http://wordpress.org/docs/reference/post/#title" title="Help on titles">Title</a></legend>
     64      <legend><a href="http://wordpress.org/docs/reference/post/#title" title="<?php _e('Help on titles') ?>"><?php _e('Title') ?></a></legend>
    6565      <div><input type="text" name="post_title" size="30" tabindex="1" value="<?php echo $edited_post_title; ?>" id="title" /></div>
    6666    </fieldset>
    6767
    6868    <fieldset id="categorydiv">
    69       <legend><a href="http://wordpress.org/docs/reference/post/#category" title="Help on categories">Categories</a></legend>
     69      <legend><a href="http://wordpress.org/docs/reference/post/#category" title="<?php _e('Help on categories') ?>"><?php _e('Categories') ?></a></legend>
    7070      <div><?php dropdown_categories($default_post_cat); ?></div>
    7171    </fieldset>
     
    7373<br />
    7474<fieldset id="postdiv">
    75 <legend><a href="http://wordpress.org/docs/reference/post/#post" title="Help with post field">Post</a></legend>
     75    <legend><a href="http://wordpress.org/docs/reference/post/#post" title="<?php _e('Help with post field') ?>"><?php _e('Post') ?></a></legend>
    7676        <div id="quicktags">
    7777<?php
    7878if (get_settings('use_quicktags') && 'bookmarklet' != $mode) {
    79     echo '<a href="http://wordpress.org/docs/reference/post/#quicktags" title="Help with quicktags">Quicktags</a>: ';
     79    echo '<a href="http://wordpress.org/docs/reference/post/#quicktags" title="' . __('Help with quicktags') . '">' . __('Quicktags') . '</a>: ';
    8080    include('quicktags.php');
    8181}
     
    104104<?php echo $form_prevstatus ?>
    105105<?php echo $form_trackback; ?>
    106 <p><input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" value="Save as Draft" />
    107   <input name="saveasprivate" type="submit" id="saveasprivate" tabindex="10" value="Save as Private" />
    108   <input name="publish" type="submit" id="publish" tabindex="6" style="font-weight: bold;" value="Publish" />
     106<p><input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" value="<?php _e('Save as Draft') ?>" />
     107  <input name="saveasprivate" type="submit" id="saveasprivate" tabindex="10" value="<?php _e('Save as Private') ?>" />
     108  <input name="publish" type="submit" id="publish" tabindex="6" style="font-weight: bold;" value="<?php _e('Publish') ?>" />
    109109  <?php if ('bookmarklet' != $mode) {
    110       echo '<input name="advanced" type="submit" id="advancededit" tabindex="7" value="Advanced Editing &raquo;" />';
     110      echo '<input name="advanced" type="submit" id="advancededit" tabindex="7" value="' .  __('Advanced Editing &raquo;') . '" />';
    111111  } ?>
    112112  <input name="referredby" type="hidden" id="referredby" value="<?php echo $HTTP_SERVER_VARS['HTTP_REFERER']; ?>" />
Note: See TracChangeset for help on using the changeset viewer.