Make WordPress Core

Ticket #35751: 35751.2.patch

File 35751.2.patch, 4.3 KB (added by ramiy, 7 years ago)

few more translation strings

  • wp-admin/includes/meta-boxes.php

     
    574574function post_excerpt_meta_box($post) {
    575575?>
    576576<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>
    577 <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>
     577<p><?php _e( 'Excerpts are optional hand-crafted summaries of your content that can be used in your theme.' ); ?> <a href="<?php echo esc_url( __( 'https://codex.wordpress.org/Excerpt' ) ); ?>" target="_blank"><?php _e( 'Learn more about manual excerpts.' ); ?></a></p>
    578578<?php
    579579}
    580580
     
    603603        <?php echo $form_trackback; ?>
    604604</p>
    605605<p id="trackback-url-desc" class="howto"><?php _e( 'Separate multiple URLs with spaces' ); ?></p>
    606 <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>
     606<p><?php printf(
     607        __( '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" target="_blank">pingbacks</a>, no other action necessary.' )
     608        esc_url( __( 'https://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments' ) )
     609); ?></p>
    607610<?php
    608611if ( ! empty($pings) )
    609612        echo $pings;
     
    629632list_meta( $metadata );
    630633meta_form( $post ); ?>
    631634</div>
    632 <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>
     635<p><?php printf(
     636        __( 'Custom fields can be used to add extra metadata to a post that you can <a href="%s" target="_blank">use in your theme</a>.' ),
     637        esc_url( __( 'https://codex.wordpress.org/Using_Custom_Fields' ) )
     638); ?></p>
    633639<?php
    634640}
    635641
     
    644650?>
    645651<input name="advanced_view" type="hidden" value="1" />
    646652<p class="meta-options">
    647         <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 />
    648         <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>
     653        <label for="comment_status" class="selectit">
     654                <input name="comment_status" type="checkbox" id="comment_status" value="open" <?php checked($post->comment_status, 'open'); ?> />
     655                <?php _e( 'Allow comments.' ); ?>
     656        </label><br />
     657        <label for="ping_status" class="selectit">
     658                <input name="ping_status" type="checkbox" id="ping_status" value="open" <?php checked($post->ping_status, 'open'); ?> />
     659                <?php printf(
     660                        /* translators: %s: trackbacks and pingbacks url. */
     661                        __( 'Allow %s on this page.' ),
     662                        '<a href="' . esc_url( __( 'https://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments' ) ) . '" target="_blank">' . __( 'trackbacks and pingbacks' ) . '</a>'
     663                ); ?>
     664        </label>
    649665        <?php
    650666        /**
    651667         * Fires at the end of the Discussion meta box on the post editing screen.
     
    11261142        </tr>
    11271143
    11281144</table>
    1129 <p><?php _e('If the link is to a person, you can specify your relationship with them using the above form. If you would like to learn more about the idea check out <a href="http://gmpg.org/xfn/">XFN</a>.'); ?></p>
     1145<p><?php printf(
     1146        __( 'If the link is to a person, you can specify your relationship with them using the above form. If you would like to learn more about the idea check out %s.' ),
     1147        '<a href="http://gmpg.org/xfn/">XFN</a>'
     1148); ?></p>
    11301149<?php
    11311150}
    11321151