WordPress.org

Make WordPress Core

Changeset 29821


Ignore:
Timestamp:
10/02/2014 08:00:11 PM (5 years ago)
Author:
SergeyBiryukov
Message:
  • Use correct context for 'Name' and 'Parent' strings on taxonomy screens.
  • Remove unnecessary context for 'Slug' and 'Description' strings.

props andg.
fixes #29824.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

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

    r29820 r29821  
    8282    <table class="form-table">
    8383        <tr class="form-field form-required term-name-wrap">
    84             <th scope="row"><label for="name"><?php _ex('Name', 'Taxonomy Name'); ?></label></th>
     84            <th scope="row"><label for="name"><?php _ex( 'Name', 'term name' ); ?></label></th>
    8585            <td><input name="name" id="name" type="text" value="<?php if ( isset( $tag->name ) ) echo esc_attr($tag->name); ?>" size="40" aria-required="true" />
    8686            <p class="description"><?php _e('The name is how it appears on your site.'); ?></p></td>
     
    8888<?php if ( !global_terms_enabled() ) { ?>
    8989        <tr class="form-field term-slug-wrap">
    90             <th scope="row"><label for="slug"><?php _ex('Slug', 'Taxonomy Slug'); ?></label></th>
     90            <th scope="row"><label for="slug"><?php _e( 'Slug' ); ?></label></th>
    9191            <?php
    9292            /**
     
    104104<?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?>
    105105        <tr class="form-field term-parent-wrap">
    106             <th scope="row"><label for="parent"><?php _ex('Parent', 'Taxonomy Parent'); ?></label></th>
     106            <th scope="row"><label for="parent"><?php _ex( 'Parent', 'term parent' ); ?></label></th>
    107107            <td>
    108108                <?php wp_dropdown_categories(array('hide_empty' => 0, 'hide_if_empty' => false, 'name' => 'parent', 'orderby' => 'name', 'taxonomy' => $taxonomy, 'selected' => $tag->parent, 'exclude_tree' => $tag->term_id, 'hierarchical' => true, 'show_option_none' => __('None'))); ?>
     
    114114<?php endif; // is_taxonomy_hierarchical() ?>
    115115        <tr class="form-field term-description-wrap">
    116             <th scope="row"><label for="description"><?php _ex('Description', 'Taxonomy Description'); ?></label></th>
     116            <th scope="row"><label for="description"><?php _e( 'Description' ); ?></label></th>
    117117            <td><textarea name="description" id="description" rows="5" cols="50" class="large-text"><?php echo $tag->description; // textarea_escaped ?></textarea>
    118118            <p class="description"><?php _e('The description is not prominent by default; however, some themes may show it.'); ?></p></td>
  • trunk/src/wp-admin/edit-tags.php

    r29803 r29821  
    449449
    450450<div class="form-field form-required term-name-wrap">
    451     <label for="tag-name"><?php _ex('Name', 'Taxonomy Name'); ?></label>
     451    <label for="tag-name"><?php _ex( 'Name', 'term name' ); ?></label>
    452452    <input name="tag-name" id="tag-name" type="text" value="" size="40" aria-required="true" />
    453453    <p><?php _e('The name is how it appears on your site.'); ?></p>
     
    455455<?php if ( ! global_terms_enabled() ) : ?>
    456456<div class="form-field term-slug-wrap">
    457     <label for="tag-slug"><?php _ex('Slug', 'Taxonomy Slug'); ?></label>
     457    <label for="tag-slug"><?php _e( 'Slug' ); ?></label>
    458458    <input name="slug" id="tag-slug" type="text" value="" size="40" />
    459459    <p><?php _e('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p>
     
    462462<?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?>
    463463<div class="form-field term-parent-wrap">
    464     <label for="parent"><?php _ex('Parent', 'Taxonomy Parent'); ?></label>
     464    <label for="parent"><?php _ex( 'Parent', 'term parent' ); ?></label>
    465465    <?php
    466466    $dropdown_args = array(
     
    502502<?php endif; // is_taxonomy_hierarchical() ?>
    503503<div class="form-field term-description-wrap">
    504     <label for="tag-description"><?php _ex('Description', 'Taxonomy Description'); ?></label>
     504    <label for="tag-description"><?php _e( 'Description' ); ?></label>
    505505    <textarea name="description" id="tag-description" rows="5" cols="40"></textarea>
    506506    <p><?php _e('The description is not prominent by default; however, some themes may show it.'); ?></p>
Note: See TracChangeset for help on using the changeset viewer.