mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 09:07:59 +01:00
gettext comments. Props nbachiyski. see #9112
git-svn-id: http://svn.automattic.com/wordpress/trunk@10774 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8b11ce3acb
commit
b1222311f7
@ -869,7 +869,9 @@ case 'autosave' : // The name of this action is hardcoded in edit_post()
|
||||
$do_lock = true;
|
||||
|
||||
$data = '';
|
||||
$message = sprintf( __('Draft Saved at %s.'), date_i18n( __('g:i:s a') ) );
|
||||
/* translators: draft saved date format, see http://php.net/date */
|
||||
$draft_saved_date_format = __('g:i:s a');
|
||||
$message = sprintf( __('Draft Saved at %s.'), date_i18n( $draft_saved_date_format ) );
|
||||
|
||||
$supplemental = array();
|
||||
|
||||
@ -1200,6 +1202,7 @@ case 'find_posts':
|
||||
if ( '0000-00-00 00:00:00' == $post->post_date ) {
|
||||
$time = '';
|
||||
} else {
|
||||
/* translators: date format in table columns, see http://php.net/date */
|
||||
$time = mysql2date(__('Y/m/d'), $post->post_date);
|
||||
}
|
||||
|
||||
|
@ -171,7 +171,7 @@ foreach ($posts_columns as $column_name => $column_display_name ) {
|
||||
$pending_phrase = sprintf( __('%s pending'), number_format( $left ) );
|
||||
if ( $left )
|
||||
echo '<strong>';
|
||||
comments_number("<a href='edit-comments.php?p=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('0') . '</span></a>', "<a href='edit-comments.php?p=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('1') . '</span></a>', "<a href='edit-comments.php?p=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('%') . '</span></a>');
|
||||
comments_number("<a href='edit-comments.php?p=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . /* translators: comment count link */ _x('0', 'comment count') . '</span></a>', "<a href='edit-comments.php?p=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . /* translators: comment count link */ _x('1', 'comment count') . '</span></a>', "<a href='edit-comments.php?p=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . /* translators: comment count link: % will be substituted by comment count */ _x('%', 'comment count') . '</span></a>');
|
||||
if ( $left )
|
||||
echo '</strong>';
|
||||
?>
|
||||
|
@ -184,104 +184,104 @@ function link_xfn_meta_box($link) {
|
||||
?>
|
||||
<table class="editform" style="width: 100%;" cellspacing="2" cellpadding="5">
|
||||
<tr>
|
||||
<th style="width: 20%;" scope="row"><label for="link_rel"><?php _e('rel:') ?></label></th>
|
||||
<th style="width: 20%;" scope="row"><label for="link_rel"><?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('rel:') ?></label></th>
|
||||
<td style="width: 80%;"><input type="text" name="link_rel" id="link_rel" size="50" value="<?php echo ( isset( $link->link_rel ) ? $link->link_rel : ''); ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table cellpadding="3" cellspacing="5" class="form-table">
|
||||
<tr>
|
||||
<th scope="row"> <?php _e('identity') ?> </th>
|
||||
<td><fieldset><legend class="hidden"> <?php _e('identity') ?> </legend>
|
||||
<th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('identity') ?> </th>
|
||||
<td><fieldset><legend class="hidden"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('identity') ?> </legend>
|
||||
<label for="me">
|
||||
<input type="checkbox" name="identity" value="me" id="me" <?php xfn_check('identity', 'me'); ?> />
|
||||
<?php _e('another web address of mine') ?></label>
|
||||
</fieldset></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"> <?php _e('friendship') ?> </th>
|
||||
<td><fieldset><legend class="hidden"> <?php _e('friendship') ?> </legend>
|
||||
<th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('friendship') ?> </th>
|
||||
<td><fieldset><legend class="hidden"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('friendship') ?> </legend>
|
||||
<label for="contact">
|
||||
<input class="valinp" type="radio" name="friendship" value="contact" id="contact" <?php xfn_check('friendship', 'contact', 'radio'); ?> /> <?php _e('contact') ?></label>
|
||||
<input class="valinp" type="radio" name="friendship" value="contact" id="contact" <?php xfn_check('friendship', 'contact', 'radio'); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('contact') ?></label>
|
||||
<label for="acquaintance">
|
||||
<input class="valinp" type="radio" name="friendship" value="acquaintance" id="acquaintance" <?php xfn_check('friendship', 'acquaintance', 'radio'); ?> /> <?php _e('acquaintance') ?></label>
|
||||
<input class="valinp" type="radio" name="friendship" value="acquaintance" id="acquaintance" <?php xfn_check('friendship', 'acquaintance', 'radio'); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('acquaintance') ?></label>
|
||||
<label for="friend">
|
||||
<input class="valinp" type="radio" name="friendship" value="friend" id="friend" <?php xfn_check('friendship', 'friend', 'radio'); ?> /> <?php _e('friend') ?></label>
|
||||
<input class="valinp" type="radio" name="friendship" value="friend" id="friend" <?php xfn_check('friendship', 'friend', 'radio'); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('friend') ?></label>
|
||||
<label for="friendship">
|
||||
<input name="friendship" type="radio" class="valinp" value="" id="friendship" <?php xfn_check('friendship', '', 'radio'); ?> /> <?php _e('none') ?></label>
|
||||
<input name="friendship" type="radio" class="valinp" value="" id="friendship" <?php xfn_check('friendship', '', 'radio'); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('none') ?></label>
|
||||
</fieldset></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"> <?php _e('physical') ?> </th>
|
||||
<td><fieldset><legend class="hidden"> <?php _e('physical') ?> </legend>
|
||||
<th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('physical') ?> </th>
|
||||
<td><fieldset><legend class="hidden"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('physical') ?> </legend>
|
||||
<label for="met">
|
||||
<input class="valinp" type="checkbox" name="physical" value="met" id="met" <?php xfn_check('physical', 'met'); ?> />
|
||||
<?php _e('met') ?></label>
|
||||
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('met') ?></label>
|
||||
</fieldset></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"> <?php _e('professional') ?> </th>
|
||||
<td><fieldset><legend class="hidden"> <?php _e('professional') ?> </legend>
|
||||
<th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('professional') ?> </th>
|
||||
<td><fieldset><legend class="hidden"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('professional') ?> </legend>
|
||||
<label for="co-worker">
|
||||
<input class="valinp" type="checkbox" name="professional" value="co-worker" id="co-worker" <?php xfn_check('professional', 'co-worker'); ?> />
|
||||
<?php _e('co-worker') ?></label>
|
||||
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('co-worker') ?></label>
|
||||
<label for="colleague">
|
||||
<input class="valinp" type="checkbox" name="professional" value="colleague" id="colleague" <?php xfn_check('professional', 'colleague'); ?> />
|
||||
<?php _e('colleague') ?></label>
|
||||
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('colleague') ?></label>
|
||||
</fieldset></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"> <?php _e('geographical') ?> </th>
|
||||
<td><fieldset><legend class="hidden"> <?php _e('geographical') ?> </legend>
|
||||
<th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('geographical') ?> </th>
|
||||
<td><fieldset><legend class="hidden"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('geographical') ?> </legend>
|
||||
<label for="co-resident">
|
||||
<input class="valinp" type="radio" name="geographical" value="co-resident" id="co-resident" <?php xfn_check('geographical', 'co-resident', 'radio'); ?> />
|
||||
<?php _e('co-resident') ?></label>
|
||||
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('co-resident') ?></label>
|
||||
<label for="neighbor">
|
||||
<input class="valinp" type="radio" name="geographical" value="neighbor" id="neighbor" <?php xfn_check('geographical', 'neighbor', 'radio'); ?> />
|
||||
<?php _e('neighbor') ?></label>
|
||||
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('neighbor') ?></label>
|
||||
<label for="geographical">
|
||||
<input class="valinp" type="radio" name="geographical" value="" id="geographical" <?php xfn_check('geographical', '', 'radio'); ?> />
|
||||
<?php _e('none') ?></label>
|
||||
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('none') ?></label>
|
||||
</fieldset></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"> <?php _e('family') ?> </th>
|
||||
<td><fieldset><legend class="hidden"> <?php _e('family') ?> </legend>
|
||||
<th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('family') ?> </th>
|
||||
<td><fieldset><legend class="hidden"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('family') ?> </legend>
|
||||
<label for="child">
|
||||
<input class="valinp" type="radio" name="family" value="child" id="child" <?php xfn_check('family', 'child', 'radio'); ?> />
|
||||
<?php _e('child') ?></label>
|
||||
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('child') ?></label>
|
||||
<label for="kin">
|
||||
<input class="valinp" type="radio" name="family" value="kin" id="kin" <?php xfn_check('family', 'kin', 'radio'); ?> />
|
||||
<?php _e('kin') ?></label>
|
||||
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('kin') ?></label>
|
||||
<label for="parent">
|
||||
<input class="valinp" type="radio" name="family" value="parent" id="parent" <?php xfn_check('family', 'parent', 'radio'); ?> />
|
||||
<?php _e('parent') ?></label>
|
||||
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('parent') ?></label>
|
||||
<label for="sibling">
|
||||
<input class="valinp" type="radio" name="family" value="sibling" id="sibling" <?php xfn_check('family', 'sibling', 'radio'); ?> />
|
||||
<?php _e('sibling') ?></label>
|
||||
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('sibling') ?></label>
|
||||
<label for="spouse">
|
||||
<input class="valinp" type="radio" name="family" value="spouse" id="spouse" <?php xfn_check('family', 'spouse', 'radio'); ?> />
|
||||
<?php _e('spouse') ?></label>
|
||||
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('spouse') ?></label>
|
||||
<label for="family">
|
||||
<input class="valinp" type="radio" name="family" value="" id="family" <?php xfn_check('family', '', 'radio'); ?> />
|
||||
<?php _e('none') ?></label>
|
||||
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('none') ?></label>
|
||||
</fieldset></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"> <?php _e('romantic') ?> </th>
|
||||
<td><fieldset><legend class="hidden"> <?php _e('romantic') ?> </legend>
|
||||
<th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('romantic') ?> </th>
|
||||
<td><fieldset><legend class="hidden"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('romantic') ?> </legend>
|
||||
<label for="muse">
|
||||
<input class="valinp" type="checkbox" name="romantic" value="muse" id="muse" <?php xfn_check('romantic', 'muse'); ?> />
|
||||
<?php _e('muse') ?></label>
|
||||
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('muse') ?></label>
|
||||
<label for="crush">
|
||||
<input class="valinp" type="checkbox" name="romantic" value="crush" id="crush" <?php xfn_check('romantic', 'crush'); ?> />
|
||||
<?php _e('crush') ?></label>
|
||||
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('crush') ?></label>
|
||||
<label for="date">
|
||||
<input class="valinp" type="checkbox" name="romantic" value="date" id="date" <?php xfn_check('romantic', 'date'); ?> />
|
||||
<?php _e('date') ?></label>
|
||||
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('date') ?></label>
|
||||
<label for="romantic">
|
||||
<input class="valinp" type="checkbox" name="romantic" value="sweetheart" id="romantic" <?php xfn_check('romantic', 'sweetheart'); ?> />
|
||||
<?php _e('sweetheart') ?></label>
|
||||
<?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('sweetheart') ?></label>
|
||||
</fieldset></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -75,11 +75,11 @@ $parent_file = 'edit-pages.php';
|
||||
wp_enqueue_script('inline-edit-post');
|
||||
|
||||
$post_stati = array( // array( adj, noun )
|
||||
'publish' => array(__('Published|page'), __('Published pages'), _n_noop('Published <span class="count">(%s)</span>|page', 'Published <span class="count">(%s)</span>')),
|
||||
'future' => array(__('Scheduled|page'), __('Scheduled pages'), _n_noop('Scheduled <span class="count">(%s)</span>|page', 'Scheduled <span class="count">(%s)</span>')),
|
||||
'pending' => array(__('Pending Review|page'), __('Pending pages'), _n_noop('Pending Review <span class="count">(%s)</span>|page', 'Pending Review <span class="count">(%s)</span>')),
|
||||
'draft' => array(__('Draft|page'), _c('Drafts|manage posts header'), _n_noop('Draft <span class="count">(%s)</span>|page', 'Drafts <span class="count">(%s)</span>')),
|
||||
'private' => array(__('Private|page'), __('Private pages'), _n_noop('Private <span class="count">(%s)</span>|page', 'Private <span class="count">(%s)</span>'))
|
||||
'publish' => array(_x('Published', 'page'), __('Published pages'), _nx_noop('Published <span class="count">(%s)</span>', 'Published <span class="count">(%s)</span>', 'page')),
|
||||
'future' => array(_x('Scheduled', 'page'), __('Scheduled pages'), _nx_noop('Scheduled <span class="count">(%s)</span>', 'Scheduled <span class="count">(%s)</span>', 'page')),
|
||||
'pending' => array(_x('Pending Review', 'page'), __('Pending pages'), _n_noop('Pending Review <span class="count">(%s)</span>', 'Pending Review <span class="count">(%s)</span>', 'page')),
|
||||
'draft' => array(_x('Draft', 'page'), _x('Drafts', 'manage posts header'), _nx_noop('Draft <span class="count">(%s)</span>', 'Drafts <span class="count">(%s)</span>', 'page')),
|
||||
'private' => array(_x('Private', 'page'), __('Private pages'), _nx_noop('Private <span class="count">(%s)</span>', 'Private <span class="count">(%s)</span>', 'page'))
|
||||
);
|
||||
|
||||
$query = array('post_type' => 'page', 'orderby' => 'menu_order title', 'what_to_show' => 'posts',
|
||||
@ -160,7 +160,7 @@ foreach ( $post_stati as $status => $label ) {
|
||||
if ( isset( $_GET['post_status'] ) && $status == $_GET['post_status'] )
|
||||
$class = ' class="current"';
|
||||
|
||||
$status_links[] = "<li><a href='edit-pages.php?post_status=$status'$class>" . sprintf( _nc( $label[2][0], $label[2][1], $num_posts->$status ), number_format_i18n( $num_posts->$status ) ) . '</a>';
|
||||
$status_links[] = "<li><a href='edit-pages.php?post_status=$status'$class>" . sprintf( _nx( $label[2][0], $label[2][1], $num_posts->$status, $label[2][2] ), number_format_i18n( $num_posts->$status ) ) . '</a>';
|
||||
}
|
||||
echo implode( " |</li>\n", $status_links ) . '</li>';
|
||||
unset($status_links);
|
||||
|
@ -743,7 +743,7 @@ function media_upload_library() {
|
||||
*/
|
||||
function image_align_input_fields($post, $checked='') {
|
||||
|
||||
$alignments = array('none' => 'None', 'left' => 'Left', 'center' => 'Center', 'right' => 'Right');
|
||||
$alignments = array('none' => __('None'), 'left' => __('Left'), 'center' => __('Center'), 'right' => __('Right'));
|
||||
if ( !array_key_exists($checked, $alignments) )
|
||||
$checked = 'none';
|
||||
|
||||
@ -752,7 +752,7 @@ function image_align_input_fields($post, $checked='') {
|
||||
|
||||
$out[] = "<input type='radio' name='attachments[{$post->ID}][align]' id='image-align-{$name}-{$post->ID}' value='$name'".
|
||||
( $checked == $name ? " checked='checked'" : "" ) .
|
||||
" /><label for='image-align-{$name}-{$post->ID}' class='align image-align-{$name}-label'>" . __($label) . "</label>";
|
||||
" /><label for='image-align-{$name}-{$post->ID}' class='align image-align-{$name}-label'>" . $label . "</label>";
|
||||
}
|
||||
return join("\n", $out);
|
||||
}
|
||||
|
@ -787,11 +787,11 @@ function wp_edit_posts_query( $q = false ) {
|
||||
$q['m'] = isset($q['m']) ? (int) $q['m'] : 0;
|
||||
$q['cat'] = isset($q['cat']) ? (int) $q['cat'] : 0;
|
||||
$post_stati = array( // array( adj, noun )
|
||||
'publish' => array(__('Published'), __('Published posts'), _n_noop('Published <span class="count">(%s)</span>', 'Published <span class="count">(%s)</span>')),
|
||||
'future' => array(__('Scheduled'), __('Scheduled posts'), _n_noop('Scheduled <span class="count">(%s)</span>', 'Scheduled <span class="count">(%s)</span>')),
|
||||
'pending' => array(__('Pending Review'), __('Pending posts'), _n_noop('Pending Review <span class="count">(%s)</span>', 'Pending Review <span class="count">(%s)</span>')),
|
||||
'draft' => array(__('Draft'), _x('Drafts', 'manage posts header'), _n_noop('Draft <span class="count">(%s)</span>', 'Drafts <span class="count">(%s)</span>')),
|
||||
'private' => array(__('Private'), __('Private posts'), _n_noop('Private <span class="count">(%s)</span>', 'Private <span class="count">(%s)</span>')),
|
||||
'publish' => array(_x('Published', 'post'), __('Published posts'), _n_noop('Published <span class="count">(%s)</span>', 'Published <span class="count">(%s)</span>')),
|
||||
'future' => array(_x('Scheduled', 'post'), __('Scheduled posts'), _n_noop('Scheduled <span class="count">(%s)</span>', 'Scheduled <span class="count">(%s)</span>')),
|
||||
'pending' => array(_x('Pending Review', 'post'), __('Pending posts'), _n_noop('Pending Review <span class="count">(%s)</span>', 'Pending Review <span class="count">(%s)</span>')),
|
||||
'draft' => array(_x('Draft', 'post'), _x('Drafts', 'manage posts header'), _n_noop('Draft <span class="count">(%s)</span>', 'Drafts <span class="count">(%s)</span>')),
|
||||
'private' => array(_x('Private', 'post'), __('Private posts'), _n_noop('Private <span class="count">(%s)</span>', 'Private <span class="count">(%s)</span>')),
|
||||
);
|
||||
|
||||
$post_stati = apply_filters('post_stati', $post_stati);
|
||||
|
@ -216,8 +216,11 @@ function populate_options() {
|
||||
'default_post_edit_rows' => 10,
|
||||
'posts_per_page' => 10,
|
||||
'what_to_show' => 'posts',
|
||||
/* translators: default date format, see http://php.net/date */
|
||||
'date_format' => __('F j, Y'),
|
||||
/* translators: default time format, see http://php.net/date */
|
||||
'time_format' => __('g:i a'),
|
||||
/* translators: links last updated date format, see http://php.net/date */
|
||||
'links_updated_date_format' => __('F j, Y g:i a'),
|
||||
'links_recently_updated_prepend' => '<em>',
|
||||
'links_recently_updated_append' => '</em>',
|
||||
|
@ -1496,7 +1496,7 @@ function _post_row($a_post, $pending_comments, $mode) {
|
||||
$pending_phrase = sprintf( __('%s pending'), number_format( $pending_comments ) );
|
||||
if ( $pending_comments )
|
||||
echo '<strong>';
|
||||
comments_number("<a href='edit-comments.php?p=$post->ID' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('0') . '</span></a>', "<a href='edit-comments.php?p=$post->ID' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('1') . '</span></a>', "<a href='edit-comments.php?p=$post->ID' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('%') . '</span></a>');
|
||||
comments_number("<a href='edit-comments.php?p=$post->ID' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . /* translators: comment count link */ _x('0', 'comment count') . '</span></a>', "<a href='edit-comments.php?p=$post->ID' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . /* translators: comment count link */ _x('1', 'comment count') . '</span></a>', "<a href='edit-comments.php?p=$post->ID' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . /* translators: comment count link: % will be substituted by comment count */ _x('%', 'comment count') . '</span></a>');
|
||||
if ( $pending_comments )
|
||||
echo '</strong>';
|
||||
?>
|
||||
@ -1660,7 +1660,7 @@ foreach ($posts_columns as $column_name=>$column_display_name) {
|
||||
$pending_phrase = sprintf( __('%s pending'), number_format( $left ) );
|
||||
if ( $left )
|
||||
echo '<strong>';
|
||||
comments_number("<a href='edit-comments.php?p=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('0') . '</span></a>', "<a href='edit-comments.php?p=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('1') . '</span></a>', "<a href='edit-comments.php?p=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('%') . '</span></a>');
|
||||
comments_number("<a href='edit-comments.php?p=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . /* translators: comment count link */ _x('0', 'comment count') . '</span></a>', "<a href='edit-comments.php?p=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . /* translators: comment count link */ _x('1', 'comment count') . '</span></a>', "<a href='edit-comments.php?p=$id' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . /* translators: comment count link: % will be substituted by comment count */ _x('%', 'comment count') . '</span></a>');
|
||||
if ( $left )
|
||||
echo '</strong>';
|
||||
?>
|
||||
@ -2183,7 +2183,7 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true,
|
||||
$pending_phrase = sprintf( __('%s pending'), number_format( $pending_comments ) );
|
||||
if ( $pending_comments )
|
||||
echo '<strong>';
|
||||
comments_number("<a href='edit-comments.php?p=$post->ID' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('0') . '</span></a>', "<a href='edit-comments.php?p=$post->ID' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('1') . '</span></a>', "<a href='edit-comments.php?p=$post->ID' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . __('%') . '</span></a>');
|
||||
comments_number("<a href='edit-comments.php?p=$post->ID' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . /* translators: comment count link */ _x('0', 'comment count') . '</span></a>', "<a href='edit-comments.php?p=$post->ID' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . /* translators: comment count link */ _x('1', 'comment count') . '</span></a>', "<a href='edit-comments.php?p=$post->ID' title='$pending_phrase' class='post-com-count'><span class='comment-count'>" . /* translators: comment count link: % will be substituted by comment count */ _x('%', 'comment count') . '</span></a>');
|
||||
if ( $pending_comments )
|
||||
echo '</strong>';
|
||||
echo '</span> ';
|
||||
|
@ -51,7 +51,7 @@ header( 'Content-Type: text/html; charset=utf-8' );
|
||||
function display_setup_form( $error = null ) {
|
||||
if ( ! is_null( $error ) ) {
|
||||
?>
|
||||
<p><strong><?php _e('ERROR'); ?></strong>: <?php echo $error; ?></p>
|
||||
<p><?php printf( __('<strong>ERROR</strong>: %s'), $error); ?></p>
|
||||
<?php } ?>
|
||||
<form id="setup" method="post" action="install.php?step=2">
|
||||
<table class="form-table">
|
||||
|
@ -14,6 +14,12 @@ function __() {}
|
||||
*/
|
||||
function _c() {}
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
function _x() {}
|
||||
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
|
@ -14,6 +14,12 @@ function __() {}
|
||||
*/
|
||||
function _c() {}
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
function _x() {}
|
||||
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
|
@ -984,8 +984,10 @@ function get_calendar($initial = true) {
|
||||
ORDER BY post_date ASC
|
||||
LIMIT 1");
|
||||
|
||||
/* translators: Calendar caption: 1: month name, 2: 4-digit year */
|
||||
$calendar_caption = _x('%1$s %2$s', 'calendar caption');
|
||||
echo '<table id="wp-calendar" summary="' . __('Calendar') . '">
|
||||
<caption>' . sprintf(_c('%1$s %2$s|Used as a calendar caption'), $wp_locale->get_month($thismonth), date('Y', $unixmonth)) . '</caption>
|
||||
<caption>' . sprintf($calendar_caption, $wp_locale->get_month($thismonth), date('Y', $unixmonth)) . '</caption>
|
||||
<thead>
|
||||
<tr>';
|
||||
|
||||
@ -1412,7 +1414,8 @@ function automatic_feed_links( $add = true ) {
|
||||
*/
|
||||
function feed_links( $args ) {
|
||||
$defaults = array(
|
||||
'seperator' => _c('»|Seperator character for feed titles in theme head'),
|
||||
/* translators: Separator between blog name and feed type in feed links */
|
||||
'separator' => _x('»', 'feed link'),
|
||||
'feedtitle' => __('%s Feed'),
|
||||
'comstitle' => __('%s Comments Feed'),
|
||||
);
|
||||
@ -1432,11 +1435,17 @@ function feed_links( $args ) {
|
||||
*/
|
||||
function feed_links_extra( $args ) {
|
||||
$defaults = array(
|
||||
'seperator' => _c('»|Seperator character for feed titles in theme head'),
|
||||
/* translators: Separator between blog name and feed type in feed links */
|
||||
'separator' => _x('»', 'feed link'),
|
||||
/* translators: 1: blog name, 2: separator(raquo), 3: post title */
|
||||
'singletitle' => __('%1$s %2$s %3$s Comments Feed'),
|
||||
/* translators: 1: blog name, 2: separator(raquo), 3: category name */
|
||||
'cattitle' => __('%1$s %2$s %3$s Category Feed'),
|
||||
/* translators: 1: blog name, 2: separator(raquo), 3: tag name */
|
||||
'tagtitle' => __('%1$s %2$s %3$s Tag Feed'),
|
||||
/* translators: 1: blog name, 2: separator(raquo), 3: author name */
|
||||
'authortitle' => __('%1$s %2$s Posts by %3$s Feed'),
|
||||
/* translators: 1: blog name, 2: separator(raquo), 3: search phrase */
|
||||
'searchtitle' => __('%1$s %2$s Search Results for "%3$s" Feed'),
|
||||
);
|
||||
|
||||
@ -1446,27 +1455,27 @@ function feed_links_extra( $args ) {
|
||||
$post = &get_post( $id = 0 );
|
||||
|
||||
if ( comments_open() || pings_open() || $post->comment_count > 0 ) {
|
||||
$title = attribute_escape(sprintf( $args['singletitle'], get_bloginfo('name'), $args['seperator'], wp_specialchars( get_the_title() ) ));
|
||||
$title = attribute_escape(sprintf( $args['singletitle'], get_bloginfo('name'), $args['separator'], wp_specialchars( get_the_title() ) ));
|
||||
$href = get_post_comments_feed_link( $post->ID );
|
||||
}
|
||||
} elseif ( is_category() ) {
|
||||
$cat_id = intval( get_query_var('cat') );
|
||||
|
||||
$title = attribute_escape(sprintf( $args['cattitle'], get_bloginfo('name'), $args['seperator'], get_cat_name( $cat_id ) ));
|
||||
$title = attribute_escape(sprintf( $args['cattitle'], get_bloginfo('name'), $args['separator'], get_cat_name( $cat_id ) ));
|
||||
$href = get_category_feed_link( $cat_id );
|
||||
} elseif ( is_tag() ) {
|
||||
$tag_id = intval( get_query_var('tag_id') );
|
||||
$tag = get_tag( $tag_id );
|
||||
|
||||
$title = attribute_escape(sprintf( $args['tagtitle'], get_bloginfo('name'), $args['seperator'], $tag->name ));
|
||||
$title = attribute_escape(sprintf( $args['tagtitle'], get_bloginfo('name'), $args['separator'], $tag->name ));
|
||||
$href = get_tag_feed_link( $tag_id );
|
||||
} elseif ( is_author() ) {
|
||||
$author_id = intval( get_query_var('author') );
|
||||
|
||||
$title = attribute_escape(sprintf( $args['authortitle'], get_bloginfo('name'), $args['seperator'], get_author_name( $author_id ) ));
|
||||
$title = attribute_escape(sprintf( $args['authortitle'], get_bloginfo('name'), $args['separator'], get_author_name( $author_id ) ));
|
||||
$href = get_author_feed_link( $author_id );
|
||||
} elseif ( is_search() ) {
|
||||
$title = attribute_escape(sprintf( $args['searchtitle'], get_bloginfo('name'), $args['seperator'], get_search_query() ));
|
||||
$title = attribute_escape(sprintf( $args['searchtitle'], get_bloginfo('name'), $args['separator'], get_search_query() ));
|
||||
$href = get_search_feed_link();
|
||||
}
|
||||
|
||||
|
@ -150,8 +150,8 @@ desc:"' . mce_escape( __('Toggle fullscreen mode') ) . ' (Alt+Shift+G)"
|
||||
},
|
||||
media:{
|
||||
desc:"' . mce_escape( __('Insert / edit embedded media') ) . '",
|
||||
delta_width:"' . mce_escape( _c('0| Extra width for the media popup in pixels') ) . '",
|
||||
delta_height:"' . mce_escape( _c('0| Extra height for the media popup in pixels') ) . '",
|
||||
delta_width:"' . /* translators: Extra width for the media popup in pixels */ mce_escape( _x('0', 'media popup width') ) . '",
|
||||
delta_height:"' . /* translators: Extra height for the media popup in pixels */ mce_escape( _x('0', 'media popup height') ) . '",
|
||||
edit:"' . mce_escape( __('Edit embedded media') ) . '"
|
||||
},
|
||||
fullpage:{
|
||||
@ -213,12 +213,12 @@ indent_desc:"' . mce_escape( __('Indent') ) . '",
|
||||
undo_desc:"' . mce_escape( __('Undo') ) . ' (Ctrl+Z)",
|
||||
redo_desc:"' . mce_escape( __('Redo') ) . ' (Ctrl+Y)",
|
||||
link_desc:"' . mce_escape( __('Insert/edit link') ) . ' (Alt+Shift+A)",
|
||||
link_delta_width:"' . mce_escape( _c('0| Extra width for the link popup in pixels') ) . '",
|
||||
link_delta_height:"' . mce_escape( _c('0| Extra height for the link popup in pixels') ) . '",
|
||||
link_delta_width:"' . /* translators: Extra width for the link popup in pixels */ mce_escape( _x('0', 'link popup width') ) . '",
|
||||
link_delta_height:"' . /* translators: Extra height for the link popup in pixels */ mce_escape( _x('0', 'link popup height') ) . '",
|
||||
unlink_desc:"' . mce_escape( __('Unlink') ) . ' (Alt+Shift+S)",
|
||||
image_desc:"' . mce_escape( __('Insert/edit image') ) . ' (Alt+Shift+M)",
|
||||
image_delta_width:"' . mce_escape( _c('0| Extra width for the image popup in pixels') ) . '",
|
||||
image_delta_height:"' . mce_escape( _c('0| Extra height for the image popup in pixels') ) . '",
|
||||
image_delta_width:"' . /* translators: Extra width for the image popup in pixels */ mce_escape( _x('0', 'image popup width') ) . '",
|
||||
image_delta_height:"' . /* translators: Extra height for the image popup in pixels */ mce_escape( _x('0', 'image popup height') ) . '",
|
||||
cleanup_desc:"' . mce_escape( __('Cleanup messy code') ) . '",
|
||||
code_desc:"' . mce_escape( __('Edit HTML Source') ) . '",
|
||||
sub_desc:"' . mce_escape( __('Subscript') ) . '",
|
||||
@ -242,8 +242,8 @@ path:"' . mce_escape( __('Path') ) . '",
|
||||
newdocument:"' . mce_escape( __('Are you sure you want to clear all contents?') ) . '",
|
||||
toolbar_focus:"' . mce_escape( __('Jump to tool buttons - Alt+Q, Jump to editor - Alt-Z, Jump to element path - Alt-X') ) . '",
|
||||
more_colors:"' . mce_escape( __('More colors') ) . '",
|
||||
colorpicker_delta_width:"' . mce_escape( _c('0| Extra width for the colorpicker popup in pixels') ) . '",
|
||||
colorpicker_delta_height:"' . mce_escape( _c('0| Extra height for the colorpicker popup in pixels') ) . '"
|
||||
colorpicker_delta_width:"' . /* translators: Extra width for the colorpicker popup in pixels */ mce_escape( _x('0', 'colorpicker popup width') ) . '",
|
||||
colorpicker_delta_height:"' . /* translators: Extra height for the colorpicker popup in pixels */ mce_escape( _x('0', 'colorpicker popup height') ) . '"
|
||||
});
|
||||
|
||||
tinyMCE.addI18n("' . $language . '.advanced_dlg",{
|
||||
|
@ -222,14 +222,22 @@ function __ngettext_noop() {
|
||||
* @since 2.5
|
||||
* @param $single Single form to be i18ned
|
||||
* @param $plural Plural form to be i18ned
|
||||
* @param $number Not used, here for compatibility with _n, optional
|
||||
* @param $domain Not used, here for compatibility with _n, optional
|
||||
* @return array array($single, $plural)
|
||||
*/
|
||||
function _n_noop( $single, $plural, $number = 1, $domain = 'default' ) {
|
||||
function _n_noop( $single, $plural ) {
|
||||
return array( $single, $plural );
|
||||
}
|
||||
|
||||
/**
|
||||
* Register plural strings with context in POT file, but don't translate them.
|
||||
*
|
||||
* @see _n_noop()
|
||||
*/
|
||||
function _nx_noop( $single, $plural, $context ) {
|
||||
return array( $single, $plural, $context );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Loads MO file into the list of domains.
|
||||
*
|
||||
|
@ -178,13 +178,16 @@ class WP_Locale {
|
||||
// Numbers formatting
|
||||
// See http://php.net/number_format
|
||||
|
||||
$trans = _c('number_format_decimals|$decimals argument for http://php.net/number_format, default is 0');
|
||||
/* translators: $decimals argument for http://php.net/number_format, default is 0 */
|
||||
$trans = __('number_format_decimals');
|
||||
$this->number_format['decimals'] = ('number_format_decimals' == $trans) ? 0 : $trans;
|
||||
|
||||
$trans = _c('number_format_decimal_point|$dec_point argument for http://php.net/number_format, default is .');
|
||||
/* translators: $dec_point argument for http://php.net/number_format, default is . */
|
||||
$trans = __('number_format_decimal_point');
|
||||
$this->number_format['decimal_point'] = ('number_format_decimal_point' == $trans) ? '.' : $trans;
|
||||
|
||||
$trans = _c('number_format_thousands_sep|$thousands_sep argument for http://php.net/number_format, default is ,');
|
||||
/* translators: $thousands_sep argument for http://php.net/number_format, default is , */
|
||||
$trans = __('number_format_thousands_sep');
|
||||
$this->number_format['thousands_sep'] = ('number_format_thousands_sep' == $trans) ? ',' : $trans;
|
||||
|
||||
// Import global locale vars set during inclusion of $locale.php.
|
||||
|
@ -1193,9 +1193,12 @@ function wp_post_revision_title( $revision, $link = true ) {
|
||||
if ( !in_array( $revision->post_type, array( 'post', 'page', 'revision' ) ) )
|
||||
return false;
|
||||
|
||||
$datef = _c( 'j F, Y @ G:i|revision date format');
|
||||
$autosavef = __( '%s [Autosave]' );
|
||||
$currentf = __( '%s [Current Revision]' );
|
||||
/* translators: revision date format, see http://php.net/date */
|
||||
$datef = _x( 'j F, Y @ G:i', 'revision date format');
|
||||
/* translators: 1: date */
|
||||
$autosavef = __( '%1$s [Autosave]' );
|
||||
/* translators: 1: date */
|
||||
$currentf = __( '%1$s [Current Revision]' );
|
||||
|
||||
$date = date_i18n( $datef, strtotime( $revision->post_modified_gmt . ' +0000' ) );
|
||||
if ( $link && current_user_can( 'edit_post', $revision->ID ) && $link = get_edit_post_link( $revision->ID ) )
|
||||
@ -1260,7 +1263,8 @@ function wp_list_post_revisions( $post_id = 0, $args = null ) {
|
||||
break;
|
||||
}
|
||||
|
||||
$titlef = _c( '%1$s by %2$s|post revision 1:datetime, 2:name' );
|
||||
/* translators: post revision: 1: when, 2: author name */
|
||||
$titlef = _x( '%1$s by %2$s', 'post revision' );
|
||||
|
||||
if ( $parent )
|
||||
array_unshift( $revisions, $post );
|
||||
|
@ -231,7 +231,8 @@ function wp_default_scripts( &$scripts ) {
|
||||
'empty' => __('Strength indicator'),
|
||||
'short' => __('Very weak'),
|
||||
'bad' => __('Weak'),
|
||||
'good' => _c('Medium|password strength'),
|
||||
/* translators: password strength */
|
||||
'good' => _x('Medium', 'password strength'),
|
||||
'strong' => __('Strong'),
|
||||
'l10n_print_after' => 'try{convertEntities(pwsL10n);}catch(e){};'
|
||||
) );
|
||||
|
@ -1446,7 +1446,7 @@ function wp_widget_recent_comments($args) {
|
||||
<?php echo $before_title . $title . $after_title; ?>
|
||||
<ul id="recentcomments"><?php
|
||||
if ( $comments ) : foreach ( (array) $comments as $comment) :
|
||||
echo '<li class="recentcomments">' . sprintf(__('%1$s on %2$s'), get_comment_author_link(), '<a href="' . clean_url( get_comment_link($comment->comment_ID) ) . '">' . get_the_title($comment->comment_post_ID) . '</a>') . '</li>';
|
||||
echo '<li class="recentcomments">' . /* translators: comments widget: 1: comment author, 2: post link */ sprintf(_x('%1$s on %2$s', 'widgets'), get_comment_author_link(), '<a href="' . clean_url( get_comment_link($comment->comment_ID) ) . '">' . get_the_title($comment->comment_post_ID) . '</a>') . '</li>';
|
||||
endforeach; endif;?></ul>
|
||||
<?php echo $after_widget; ?>
|
||||
<?php
|
||||
|
Loading…
Reference in New Issue
Block a user