Make WordPress Core


Ignore:
Timestamp:
03/02/2009 07:20:19 PM (18 years ago)
Author:
ryan
Message:

Use _x() and extracted comments. Props nbachiyski. see #9112

File:
1 edited

Legend:

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

    r10662 r10680  
    736736        $posts_columns = array();
    737737        $posts_columns['cb'] = '<input type="checkbox" />';
    738         $posts_columns['title'] = _c('Post|noun');
     738        /* translators: manage posts column name */
     739        $posts_columns['title'] = _x('Post', 'column name');
    739740        $posts_columns['author'] = __('Author');
    740741        $posts_columns['categories'] = __('Categories');
    … …  
    760761        $posts_columns['cb'] = '<input type="checkbox" />';
    761762        $posts_columns['icon'] = '';
    762         $posts_columns['media'] = _c('File|media column header');
     763        /* translators: column name */
     764        $posts_columns['media'] = _x('File', 'column name');
    763765        $posts_columns['author'] = __('Author');
    764766        //$posts_columns['tags'] = _c('Tags|media column header');
    765         $posts_columns['parent'] = _c('Attached to|media column header');
     767        /* translators: column name */
     768        $posts_columns['parent'] = _x('Attached to', 'column name');
    766769        $posts_columns['comments'] = '<div class="vers"><img alt="Comments" src="images/comment-grey-bubble.png" /></div>';
    767770        //$posts_columns['comments'] = __('Comments');
    768         $posts_columns['date'] = _c('Date|media column header');
     771        /* translators: column name */
     772        $posts_columns['date'] = _x('Date', 'column name');
    769773        $posts_columns = apply_filters('manage_media_columns', $posts_columns);
    770774
    … …  
    824828                                'cb' => '<input type="checkbox" />',
    825829                                'author' => __('Author'),
    826                                 'comment' => _c('Comment|noun'),
     830                                /* translators: column name */
     831                                'comment' => _x('Comment', 'column name'),
    827832                                //'date' => __('Submitted'),
    828833                                'response' => __('In Response To')
    … …  
    10611066                        </label>
    10621067
    1063                         <em style="margin:5px 10px 0 0" class="alignleft"><?php echo _c( '&ndash;OR&ndash;|Between password field and private checkbox on post quick edit interface' ); ?></em>
    1064 
     1068                        <em style="margin:5px 10px 0 0" class="alignleft">
     1069                                <?php
     1070                                /* translators: Between password field and private checkbox on post quick edit interface */
     1071                                echo __( '&ndash;OR&ndash;' );
     1072                                ?>
     1073                        </em>
    10651074                        <label class="alignleft inline-edit-private">
    10661075                                <input type="checkbox" name="keep_private" value="private" />
    … …  
    21052114                                        }
    21062115                                        if ( 'spam' != $the_comment_status )
    2107                                                 $actions['spam'] = "<a href='$spam_url' class='delete:the-comment-list:comment-$comment->comment_ID::spam=1 vim-s vim-destructive' title='" . __( 'Mark this comment as spam' ) . "'>" . _c( 'Spam|verb' ) . '</a>';
     2116                                                $actions['spam'] = "<a href='$spam_url' class='delete:the-comment-list:comment-$comment->comment_ID::spam=1 vim-s vim-destructive' title='" . __( 'Mark this comment as spam' ) . "'>" . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . '</a>';
    21082117                                        $actions['delete'] = "<a href='$delete_url' class='delete:the-comment-list:comment-$comment->comment_ID delete vim-d vim-destructive'>" . __('Delete') . '</a>';
    21092118                                        $actions['edit'] = "<a href='comment.php?action=editcomment&amp;c={$comment->comment_ID}' title='" . __('Edit comment') . "'>". __('Edit') . '</a>';
    … …  
    25102519        $hour = '<input type="text" ' . ( $multi ? '' : 'id="hh" ' ) . 'name="hh" value="' . $hh . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';
    25112520        $minute = '<input type="text" ' . ( $multi ? '' : 'id="mn" ' ) . 'name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';
    2512         printf(_c('%1$s%2$s, %3$s @ %4$s : %5$s|1: month input, 2: day input, 3: year input, 4: hour input, 5: minute input'), $month, $day, $year, $hour, $minute);
     2521        /* translators: 1: month input, 2: day input, 3: year input, 4: hour input, 5: minute input */
     2522        printf(__('%1$s%2$s, %3$s @ %4$s : %5$s'), $month, $day, $year, $hour, $minute);
    25132523
    25142524        echo '<input type="hidden" id="ss" name="ss" value="' . $ss . '" />';
    … …  
    32793289                $post_states[] = __('Draft');
    32803290        if ( 'pending' == $post->post_status && 'pending' != $post_status )
    3281                 $post_states[] = _c('Pending|post state');
     3291                /* translators: post state */
     3292                $post_states[] = _x('Pending', 'post state');
    32823293        if ( is_sticky($post->ID) )
    32833294                $post_states[] = __('Sticky');
Note: See TracChangeset for help on using the changeset viewer.