Make WordPress Core


Ignore:
Timestamp:
05/14/2010 12:34:04 AM (15 years ago)
Author:
nbachiyski
Message:

I18n for custom taxonomies. Fixes #13357

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r14593 r14614  
    6464    <p class="inline-edit-save submit">
    6565        <a accesskey="c" href="#inline-edit" title="<?php _e('Cancel'); ?>" class="cancel button-secondary alignleft"><?php _e('Cancel'); ?></a>
    66         <?php $update_text = sprintf( __('Update %s'), $tax->singular_label ); ?>
     66        <?php $update_text = $tax->labels->update_item; ?>
    6767        <a accesskey="s" href="#inline-edit" title="<?php echo esc_attr( $update_text ); ?>" class="save button-primary alignright"><?php echo $update_text; ?></a>
    6868        <img class="waiting" style="display:none;" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />
     
    977977<?php foreach ( $hierarchical_taxonomies as $taxonomy ) : ?>
    978978
    979         <span class="title inline-edit-categories-label"><?php echo esc_html($taxonomy->label) ?>
     979        <span class="title inline-edit-categories-label"><?php echo esc_html($taxonomy->labels->name) ?>
    980980            <span class="catshow"><?php _e('[more]'); ?></span>
    981981            <span class="cathide" style="display:none;"><?php _e('[less]'); ?></span>
     
    10411041
    10421042        <label class="inline-edit-tags">
    1043             <span class="title"><?php echo esc_html($taxonomy->label) ?></span>
     1043            <span class="title"><?php echo esc_html($taxonomy->labels->name) ?></span>
    10441044            <textarea cols="22" rows="1" name="tax_input[<?php echo esc_attr($taxonomy->name)?>]" class="tax_input_<?php echo esc_attr($taxonomy->name)?>"></textarea>
    10451045        </label>
     
    15671567        $edit_link = get_edit_post_link( $page->ID );
    15681568        ?>
    1569         <td <?php echo $attributes ?>><strong><?php if ( current_user_can($post_type_object->cap->edit_post, $page->ID) && $post->post_status != 'trash' ) { ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo esc_attr(sprintf(__('Edit &#8220;%s&#8221;'), $title)); ?>"><?php echo $pad; echo $title ?></a><?php } else { echo $pad; echo $title; }; _post_states($page); echo isset($parent_name) ? ' | ' . $post_type_object->labels->parent . ' ' . esc_html($parent_name) : ''; ?></strong>
     1569        <td <?php echo $attributes ?>><strong><?php if ( current_user_can($post_type_object->cap->edit_post, $page->ID) && $post->post_status != 'trash' ) { ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo esc_attr(sprintf(__('Edit &#8220;%s&#8221;'), $title)); ?>"><?php echo $pad; echo $title ?></a><?php } else { echo $pad; echo $title; }; _post_states($page); echo isset($parent_name) ? ' | ' . $post_type_object->labels->parent_item_colon . ' ' . esc_html($parent_name) : ''; ?></strong>
    15701570        <?php
    15711571        $actions = array();
     
    37633763        case 'edit-tags':
    37643764            global $tax;
    3765             $per_page_label = $tax->label;
     3765            $per_page_label = $tax->labels->name;
    37663766            break;
    37673767        case 'plugins':
Note: See TracChangeset for help on using the changeset viewer.