Make WordPress Core


Ignore:
Timestamp:
05/14/2010 09:46:25 PM (14 years ago)
Author:
nacin
Message:

Introduce _ex(), a hybrid between _e() and _x() -- translate with context, then echo. props westi, see #13395.

File:
1 edited

Legend:

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

    r14614 r14647  
    349349
    350350<div class="form-field form-required">
    351     <label for="tag-name"><?php echo _x('Name', 'Taxonomy Name'); ?></label>
     351    <label for="tag-name"><?php _ex('Name', 'Taxonomy Name'); ?></label>
    352352    <input name="tag-name" id="tag-name" type="text" value="" size="40" aria-required="true" />
    353353    <p><?php _e('The name is how it appears on your site.'); ?></p>
     
    355355<?php if ( ! global_terms_enabled() ) : ?>
    356356<div class="form-field">
    357     <label for="tag-slug"><?php echo _x('Slug', 'Taxonomy Slug'); ?></label>
     357    <label for="tag-slug"><?php _ex('Slug', 'Taxonomy Slug'); ?></label>
    358358    <input name="slug" id="tag-slug" type="text" value="" size="40" />
    359359    <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>
     
    362362<?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?>
    363363<div class="form-field">
    364     <label for="parent"><?php echo _x('Parent', 'Taxonomy Parent'); ?></label>
     364    <label for="parent"><?php _ex('Parent', 'Taxonomy Parent'); ?></label>
    365365    <?php wp_dropdown_categories(array('hide_empty' => 0, 'hide_if_empty' => false, 'taxonomy' => $taxonomy, 'name' => 'parent', 'orderby' => 'name', 'hierarchical' => true, 'show_option_none' => __('None'))); ?>
    366366    <?php if ( 'category' == $taxonomy ) : // @todo: Generic text for hierarchical taxonomies ?>
     
    370370<?php endif; // is_taxonomy_hierarchical() ?>
    371371<div class="form-field">
    372     <label for="tag-description"><?php echo _x('Description', 'Taxonomy Description'); ?></label>
     372    <label for="tag-description"><?php _ex('Description', 'Taxonomy Description'); ?></label>
    373373    <textarea name="description" id="tag-description" rows="5" cols="40"></textarea>
    374374    <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.