Make WordPress Core


Ignore:
Timestamp:
01/21/2010 09:37:43 PM (16 years ago)
Author:
ryan
Message:

i18n fixes. Props nbachiyski. fixes #11954

File:
1 edited

Legend:

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

    r12783 r12789  
    10641064            $users_opt = array('include' => $authors, 'name' => 'post_author', 'class'=> 'authors', 'multi' => 1, 'echo' => 0);
    10651065            if ( $bulk )
    1066                 $users_opt['show_option_none'] = __('- No Change -');
     1066                $users_opt['show_option_none'] = __('— No Change —');
    10671067            $authors_dropdown  = '<label>';
    10681068            $authors_dropdown .= '<span class="title">' . __( 'Author' ) . '</span>';
     
    11251125    $dropdown_args = array('selected' => $post->post_parent, 'name' => 'post_parent', 'show_option_none' => __('Main Page (no parent)'), 'option_none_value' => 0, 'sort_column'=> 'menu_order, post_title');
    11261126    if ( $bulk )
    1127         $dropdown_args['show_option_no_change'] =  __('- No Change -');
     1127        $dropdown_args['show_option_no_change'] =  __('&mdash; No Change &mdash;');
    11281128    $dropdown_args = apply_filters('quick_edit_dropdown_pages_args', $dropdown_args);
    11291129    wp_dropdown_pages($dropdown_args);
     
    11441144            <select name="page_template">
    11451145<?php   if ( $bulk ) : ?>
    1146                 <option value="-1"><?php _e('- No Change -'); ?></option>
     1146                <option value="-1"><?php _e('&mdash; No Change &mdash;'); ?></option>
    11471147<?php   endif; // $bulk ?>
    11481148                <option value="default"><?php _e( 'Default Template' ); ?></option>
     
    11661166            <span class="title"><?php _e( 'Comments' ); ?></span>
    11671167            <select name="comment_status">
    1168                 <option value=""><?php _e('- No Change -'); ?></option>
     1168                <option value=""><?php _e('&mdash; No Change &mdash;'); ?></option>
    11691169                <option value="open"><?php _e('Allow'); ?></option>
    11701170                <option value="closed"><?php _e('Do not allow'); ?></option>
     
    11751175            <span class="title"><?php _e( 'Pings' ); ?></span>
    11761176            <select name="ping_status">
    1177                 <option value=""><?php _e('- No Change -'); ?></option>
     1177                <option value=""><?php _e('&mdash; No Change &mdash;'); ?></option>
    11781178                <option value="open"><?php _e('Allow'); ?></option>
    11791179                <option value="closed"><?php _e('Do not allow'); ?></option>
     
    12041204                <select name="_status">
    12051205<?php if ( $bulk ) : ?>
    1206                     <option value="-1"><?php _e('- No Change -'); ?></option>
     1206                    <option value="-1"><?php _e('&mdash; No Change &mdash;'); ?></option>
    12071207<?php endif; // $bulk ?>
    12081208                <?php if ( $can_publish ) : // Contributors only get "Unpublished" and "Pending Review" ?>
     
    12251225                <span class="title"><?php _e( 'Sticky' ); ?></span>
    12261226                <select name="sticky">
    1227                     <option value="-1"><?php _e( '- No Change -' ); ?></option>
     1227                    <option value="-1"><?php _e( '&mdash; No Change &mdash;' ); ?></option>
    12281228                    <option value="sticky"><?php _e( 'Sticky' ); ?></option>
    12291229                    <option value="unsticky"><?php _e( 'Not Sticky' ); ?></option>
     
    19651965                break;
    19661966            case 'email':
    1967                 $r .= "<td $attributes><a href='mailto:$email' title='" . sprintf( __('e-mail: %s' ), $email ) . "'>$email</a></td>";
     1967                $r .= "<td $attributes><a href='mailto:$email' title='" . sprintf( __('E-mail: %s' ), $email ) . "'>$email</a></td>";
    19681968                break;
    19691969            case 'role':
     
    21472147                echo "<td $attributes>";
    21482148                echo '<div id="submitted-on">';
    2149                 printf( __( '<a href="%1$s">%2$s at %3$s</a>' ), $comment_url, get_comment_date( __('Y/m/d') ), get_comment_date( __( 'g:ia' ) ) );
     2149                /* translators: 2: comment date, 3: comment time */
     2150                printf( __( '<a href="%1$s">%2$s at %3$s</a>' ), $comment_url,
     2151                    /* translators: comment date format. See http://php.net/date */ get_comment_date( __('Y/m/d') ),
     2152                    /* translators: comment time format. See http://php.net/date */ get_comment_date( get_option( 'time_format' ) ) );
    21502153
    21512154                if ( $comment->comment_parent ) {
     
    21532156                    $parent_link = esc_url( get_comment_link( $comment->comment_parent ) );
    21542157                    $name = apply_filters( 'get_comment_author', $parent->comment_author ); // there's no API function for this
    2155                     printf( __( ' | In reply to <a href="%1$s">%2$s</a>.' ), $parent_link, $name );
     2158                    printf( ' | '.__( 'In reply to <a href="%1$s">%2$s</a>.' ), $parent_link, $name );
    21562159                }
    21572160
     
    25452548        natcasesort($keys);
    25462549?>
    2547 <p><strong><?php _e( 'Add new custom field:' ) ?></strong></p>
     2550<p><strong><?php _e( 'Add New Custom Field:' ) ?></strong></p>
    25482551<table id="newmeta">
    25492552<thead>
     
    25592562<?php if ( $keys ) { ?>
    25602563<select id="metakeyselect" name="metakeyselect" tabindex="7">
    2561 <option value="#NONE#"><?php _e( '- Select -' ); ?></option>
     2564<option value="#NONE#"><?php _e( '&mdash; Select &mdash;' ); ?></option>
    25622565<?php
    25632566
Note: See TracChangeset for help on using the changeset viewer.