Ticket #6901: 6901.patch
File 6901.patch, 2.0 KB (added by , 9 years ago) |
---|
-
src/bp-notifications/classes/class-bp-notifications-component.php
122 122 if ( bp_is_user() && bp_user_has_access() ) { 123 123 $count = bp_notifications_get_unread_notification_count( bp_displayed_user_id() ); 124 124 $class = ( 0 === $count ) ? 'no-count' : 'count'; 125 $nav_name = sprintf( _x( 'Notifications <span class="%s">%s</span>', 'Profile screen nav', 'buddypress' ), esc_attr( $class ), bp_core_number_format( $count ) ); 125 $nav_name = sprintf( 126 _x( 'Notifications %s', 'Profile screen nav', 'buddypress' ), 127 sprintf( 128 '<span class="%s">%s</span>', 129 esc_attr( $class ), 130 bp_core_number_format( $count ) 131 ) 132 ); 126 133 } else { 127 134 $nav_name = _x( 'Notifications', 'Profile screen nav', 'buddypress' ); 128 135 } … … 185 192 // Pending notification requests. 186 193 $count = bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ); 187 194 if ( ! empty( $count ) ) { 188 $title = sprintf( _x( 'Notifications <span class="count">%s</span>', 'My Account Notification pending', 'buddypress' ), bp_core_number_format( $count ) ); 189 $unread = sprintf( _x( 'Unread <span class="count">%s</span>', 'My Account Notification pending', 'buddypress' ), bp_core_number_format( $count ) ); 195 $title = sprintf( 196 _x( 'Notifications %s', 'My Account Notification pending', 'buddypress' ), 197 '<span class="count">' . bp_core_number_format( $count ) . '</span>' 198 ); 199 $unread = sprintf( 200 _x( 'Unread %s', 'My Account Notification pending', 'buddypress' ), 201 '<span class="count">' . bp_core_number_format( $count ) . '</span>' 202 ); 190 203 } else { 191 204 $title = _x( 'Notifications', 'My Account Notification', 'buddypress' ); 192 205 $unread = _x( 'Unread', 'My Account Notification sub nav', 'buddypress' );