Ticket #2102: meta-2102.patch
File meta-2102.patch, 5.5 KB (added by , 8 years ago) |
---|
-
sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/functions.php
173 173 $time_since = bbp_get_topic_freshness_link( $topic_id ); 174 174 175 175 // Singular/Plural 176 $voice_count = sprintf( _n( '%s participant', '%s participants', $voice_count, 'bbp ress' ), bbp_number_format( $voice_count ) );176 $voice_count = sprintf( _n( '%s participant', '%s participants', $voice_count, 'bbporg' ), bbp_number_format( $voice_count ) ); 177 177 $last_reply = bbp_get_topic_last_active_id( $topic_id ); 178 178 179 179 ?> 180 180 181 <li class="topic-forum">In: <a href="<?php bbp_forum_permalink( bbp_get_topic_forum_id() ); ?>"><?php bbp_topic_forum_title(); ?></a></li> 182 <?php if ( !empty( $reply_count ) ) : ?><li class="reply-count"><?php echo $reply_count; ?></li><?php endif; ?> 183 <?php if ( !empty( $voice_count ) ) : ?><li class="voice-count"><?php echo $voice_count; ?></li><?php endif; ?> 181 <li class="topic-forum"><?php 182 /* translators: %s: forum title */ 183 printf( __( 'In: %s', 'bbporg' ), 184 sprintf( '<a href="%s">%s</a>', 185 esc_url( bbp_get_forum_permalink( bbp_get_topic_forum_id() ) ), 186 bbp_get_topic_forum_title() 187 ) 188 ); 189 ?></li> 190 <?php if ( !empty( $reply_count ) ) : ?> 191 <li class="reply-count"><?php echo $reply_count; ?></li> 192 <?php endif; ?> 193 <?php if ( !empty( $voice_count ) ) : ?> 194 <li class="voice-count"><?php echo $voice_count; ?></li> 195 <?php endif; ?> 184 196 <?php if ( !empty( $last_reply ) ) : ?> 185 <li class="topic-freshness-author"><?php printf( __( 'Last reply from: %s', 'bbporg' ), bbp_get_author_link( array( 'type' => 'name', 'post_id' => $last_reply, 'size' => '15' ) ) ); ?></li> 197 <li class="topic-freshness-author"><?php 198 /* translators: %s: reply author link */ 199 printf( __( 'Last reply from: %s', 'bbporg' ), 200 bbp_get_author_link( array( 'type' => 'name', 'post_id' => $last_reply, 'size' => '15' ) ) 201 ); 202 ?></li> 186 203 <?php endif; ?> 187 <?php if ( !empty( $time_since ) ) : ?><li class="topic-freshness-time"><?php printf( __( 'Last activity: %s', 'bbporg' ), $time_since ); ?></li><?php endif; ?> 204 <?php if ( !empty( $time_since ) ) : ?> 205 <li class="topic-freshness-time"><?php 206 /* translators: %s: date/time link to the latest post */ 207 printf( __( 'Last activity: %s', 'bbporg' ), $time_since ); 208 ?></li> 209 <?php endif; ?> 188 210 <?php if ( is_user_logged_in() ) : ?> 189 211 <?php $_topic_id = bbp_is_reply_edit() ? bbp_get_reply_topic_id() : $topic_id; ?> 190 212 <li class="topic-subscribe"><?php bbp_topic_subscription_link( array( 'before' => '', 'topic_id' => $_topic_id ) ); ?></li> … … 207 229 208 230 // Has replies 209 231 if ( !empty( $reply_count ) ) { 210 $reply_text = sprintf( _n( '%s reply', '%s replies', $reply_count, 'bbp ress' ), bbp_number_format( $reply_count ) );232 $reply_text = sprintf( _n( '%s reply', '%s replies', $reply_count, 'bbporg' ), bbp_number_format( $reply_count ) ); 211 233 } 212 234 213 235 // Forum has active data … … 217 239 218 240 // Forum has no last active data 219 241 } else { 220 $topic_text = sprintf( _n( '%s topic', '%s topics', $topic_count, 'bbp ress' ), bbp_number_format( $topic_count ) );242 $topic_text = sprintf( _n( '%s topic', '%s topics', $topic_count, 'bbporg' ), bbp_number_format( $topic_count ) ); 221 243 } 222 244 ?> 223 245 224 <?php if ( bbp_get_forum_parent_id() ) : ?><li class="topic-parent">In: <a href="<?php bbp_forum_permalink( bbp_get_forum_parent_id() ); ?>"><?php bbp_forum_title( bbp_get_forum_parent_id() ); ?></a></li><?php endif; ?> 225 <?php if ( !empty( $topic_count ) ) : ?><li class="topic-count"><?php echo $topic_text; ?></li><?php endif; ?> 226 <?php if ( !empty( $reply_count ) ) : ?><li class="reply-count"><?php echo $reply_text; ?></li><?php endif; ?> 246 <?php if ( bbp_get_forum_parent_id() ) : ?> 247 <li class="topic-parent"><?php 248 /* translators: %s: forum title */ 249 printf( __( 'In: %s', 'bbporg' ), 250 sprintf( '<a href="%s">%s</a>', 251 esc_url( bbp_get_forum_permalink( bbp_get_forum_parent_id() ) ), 252 bbp_get_forum_title( bbp_get_forum_parent_id() ) 253 ) 254 ); 255 ?></li> 256 <?php endif; ?> 257 <?php if ( !empty( $topic_count ) ) : ?> 258 <li class="topic-count"><?php echo $topic_text; ?></li> 259 <?php endif; ?> 260 <?php if ( !empty( $reply_count ) ) : ?> 261 <li class="reply-count"><?php echo $reply_text; ?></li> 262 <?php endif; ?> 227 263 <?php if ( !empty( $last_active ) ) : ?> 228 <li class="forum-freshness-author"><?php printf( __( 'Last post by: %s', 'bbporg' ), bbp_get_author_link( array( 'type' => 'name', 'post_id' => $last_active ) ) ); ?></li> 264 <li class="forum-freshness-author"><?php 265 /* translators: %s: post author link */ 266 printf( __( 'Last post by: %s', 'bbporg' ), 267 bbp_get_author_link( array( 'type' => 'name', 'post_id' => $last_active ) ) 268 ); 269 ?></li> 229 270 <?php endif; ?> 230 <?php if ( !empty( $time_since ) ) : ?><li class="forum-freshness-time"><?php printf( __( 'Last activity: %s', 'bbporg' ), $time_since ); ?></li><?php endif; ?> 271 <?php if ( !empty( $time_since ) ) : ?> 272 <li class="forum-freshness-time"><?php 273 /* translators: %s: date/time link to the latest post */ 274 printf( __( 'Last activity: %s', 'bbporg' ), $time_since ); 275 ?></li> 276 <?php endif; ?> 231 277 <?php if ( is_user_logged_in() ) : ?> 232 278 <li class="forum-subscribe"><?php bbp_forum_subscription_link( array( 'forum_id' => $forum_id ) ); ?></li> 233 279 <?php endif;