Ticket #2376: 2376.diff
| File 2376.diff, 3.9 KB (added by , 13 years ago) |
|---|
-
includes/admin/metaboxes.php
47 47 48 48 <?php 49 49 $num = $r['forum_count']; 50 $text = _n ( 'Forum', 'Forums', $r['forum_count'], 'bbpress' );50 $text = _nx( 'Forum', 'Forums', $r['forum_count'], 'plural', 'bbpress' ); 51 51 if ( current_user_can( 'publish_forums' ) ) { 52 52 $link = add_query_arg( array( 'post_type' => bbp_get_forum_post_type() ), get_admin_url( null, 'edit.php' ) ); 53 53 $num = '<a href="' . $link . '">' . $num . '</a>'; … … 64 64 65 65 <?php 66 66 $num = $r['topic_count']; 67 $text = _n ( 'Topic', 'Topics', $r['topic_count'], 'bbpress' );67 $text = _nx( 'Topic', 'Topics', $r['topic_count'], 'plural', 'bbpress' ); 68 68 if ( current_user_can( 'publish_topics' ) ) { 69 69 $link = add_query_arg( array( 'post_type' => bbp_get_topic_post_type() ), get_admin_url( null, 'edit.php' ) ); 70 70 $num = '<a href="' . $link . '">' . $num . '</a>'; … … 81 81 82 82 <?php 83 83 $num = $r['reply_count']; 84 $text = _n ( 'Reply', 'Replies', $r['reply_count'], 'bbpress' );84 $text = _nx( 'Reply', 'Replies', $r['reply_count'], 'plural', 'bbpress' ); 85 85 if ( current_user_can( 'publish_replies' ) ) { 86 86 $link = add_query_arg( array( 'post_type' => bbp_get_reply_post_type() ), get_admin_url( null, 'edit.php' ) ); 87 87 $num = '<a href="' . $link . '">' . $num . '</a>'; … … 100 100 101 101 <?php 102 102 $num = $r['topic_tag_count']; 103 $text = _n ( 'Topic Tag', 'Topic Tags', $r['topic_tag_count'], 'bbpress' );103 $text = _nx( 'Topic Tag', 'Topic Tags', $r['topic_tag_count'], 'plural', 'bbpress' ); 104 104 if ( current_user_can( 'manage_topic_tags' ) ) { 105 105 $link = add_query_arg( array( 'taxonomy' => bbp_get_topic_tag_tax_id(), 'post_type' => bbp_get_topic_post_type() ), get_admin_url( null, 'edit-tags.php' ) ); 106 106 $num = '<a href="' . $link . '">' . $num . '</a>'; … … 132 132 133 133 <?php 134 134 $num = $r['user_count']; 135 $text = _n ( 'User', 'Users', $r['user_count'], 'bbpress' );135 $text = _nx( 'User', 'Users', $r['user_count'], 'plural', 'bbpress' ); 136 136 if ( current_user_can( 'edit_users' ) ) { 137 137 $link = get_admin_url( null, 'users.php' ); 138 138 $num = '<a href="' . $link . '">' . $num . '</a>'; … … 151 151 152 152 <?php 153 153 $num = $r['topic_count_hidden']; 154 $text = _n ( 'Hidden Topic', 'Hidden Topics', $r['topic_count_hidden'], 'bbpress' );154 $text = _nx( 'Hidden Topic', 'Hidden Topics', $r['topic_count_hidden'], 'plural', 'bbpress' ); 155 155 $link = add_query_arg( array( 'post_type' => bbp_get_topic_post_type() ), get_admin_url( null, 'edit.php' ) ); 156 156 if ( '0' != $num ) { 157 157 $link = add_query_arg( array( 'post_status' => bbp_get_spam_status_id() ), $link ); … … 173 173 174 174 <?php 175 175 $num = $r['reply_count_hidden']; 176 $text = _n ( 'Hidden Reply', 'Hidden Replies', $r['reply_count_hidden'], 'bbpress' );176 $text = _nx( 'Hidden Reply', 'Hidden Replies', $r['reply_count_hidden'], 'plural', 'bbpress' ); 177 177 $link = add_query_arg( array( 'post_type' => bbp_get_reply_post_type() ), get_admin_url( null, 'edit.php' ) ); 178 178 if ( '0' != $num ) { 179 179 $link = add_query_arg( array( 'post_status' => bbp_get_spam_status_id() ), $link ); … … 195 195 196 196 <?php 197 197 $num = $r['empty_topic_tag_count']; 198 $text = _n ( 'Empty Topic Tag', 'Empty Topic Tags', $r['empty_topic_tag_count'], 'bbpress' );198 $text = _nx( 'Empty Topic Tag', 'Empty Topic Tags', $r['empty_topic_tag_count'], 'plural', 'bbpress' ); 199 199 $link = add_query_arg( array( 'taxonomy' => bbp_get_topic_tag_tax_id(), 'post_type' => bbp_get_topic_post_type() ), get_admin_url( null, 'edit-tags.php' ) ); 200 200 $num = '<a href="' . $link . '">' . $num . '</a>'; 201 201 $text = '<a class="waiting" href="' . $link . '">' . $text . '</a>';
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)