Make WordPress Core

Changeset 37016


Ignore:
Timestamp:
03/16/2016 04:57:36 PM (11 years ago)
Author:
ocean90
Message:

I18N: Move translatable Codex URLs to separate strings in wp-admin/includes/meta-boxes.php.

Props ramiy.
Fixes #35751.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/meta-boxes.php

    r36612 r37016  
    570570?>
    571571<label class="screen-reader-text" for="excerpt"><?php _e('Excerpt') ?></label><textarea rows="1" cols="40" name="excerpt" id="excerpt"><?php echo $post->post_excerpt; // textarea_escaped ?></textarea>
    572 <p><?php _e('Excerpts are optional hand-crafted summaries of your content that can be used in your theme. <a href="https://codex.wordpress.org/Excerpt" target="_blank">Learn more about manual excerpts.</a>'); ?></p>
     572<p><?php
     573        printf(
     574                /* translators: %s: Codex URL */
     575                __( 'Excerpts are optional hand-crafted summaries of your content that can be used in your theme. <a href="%s">Learn more about manual excerpts</a>.' ),
     576                __( 'https://codex.wordpress.org/Excerpt' )
     577        );
     578?></p>
    573579<?php
    574580}
    … …  
    599605</p>
    600606<p id="trackback-url-desc" class="howto"><?php _e( 'Separate multiple URLs with spaces' ); ?></p>
    601 <p><?php _e('Trackbacks are a way to notify legacy blog systems that you&#8217;ve linked to them. If you link other WordPress sites, they&#8217;ll be notified automatically using <a href="https://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments" target="_blank">pingbacks</a>, no other action necessary.'); ?></p>
     607<p><?php
     608        printf(
     609                /* translators: %s: Codex URL */
     610                __( 'Trackbacks are a way to notify legacy blog systems that you&#8217;ve linked to them. If you link other WordPress sites, they&#8217;ll be notified automatically using <a href="%s">pingbacks</a>, no other action necessary.' ),
     611                __( 'https://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments' )
     612        );
     613?></p>
    602614<?php
    603615if ( ! empty($pings) )
    … …  
    625637meta_form( $post ); ?>
    626638</div>
    627 <p><?php _e('Custom fields can be used to add extra metadata to a post that you can <a href="https://codex.wordpress.org/Using_Custom_Fields" target="_blank">use in your theme</a>.'); ?></p>
     639<p><?php
     640        printf(
     641                /* translators: %s: Codex URL */
     642                __( 'Custom fields can be used to add extra metadata to a post that you can <a href="%s">use in your theme</a>.' ),
     643                __( 'https://codex.wordpress.org/Using_Custom_Fields' )
     644        );
     645?></p>
    628646<?php
    629647}
    … …  
    641659<p class="meta-options">
    642660        <label for="comment_status" class="selectit"><input name="comment_status" type="checkbox" id="comment_status" value="open" <?php checked($post->comment_status, 'open'); ?> /> <?php _e( 'Allow comments.' ) ?></label><br />
    643         <label for="ping_status" class="selectit"><input name="ping_status" type="checkbox" id="ping_status" value="open" <?php checked($post->ping_status, 'open'); ?> /> <?php printf( __( 'Allow <a href="%s" target="_blank">trackbacks and pingbacks</a> on this page.' ), __( 'https://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments' ) ); ?></label>
     661        <label for="ping_status" class="selectit"><input name="ping_status" type="checkbox" id="ping_status" value="open" <?php checked($post->ping_status, 'open'); ?> /> <?php
     662                printf(
     663                        /* translators: %s: Codex URL */
     664                        __( 'Allow <a href="%s">trackbacks and pingbacks</a> on this page.' ),
     665                        __( 'https://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments' ) );
     666                ?></label>
    644667        <?php
    645668        /**
Note: See TracChangeset for help on using the changeset viewer.