Changeset 12592
- Timestamp:
- 03/28/2020 01:43:36 PM (4 years ago)
- Location:
- trunk/src/bp-messages
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-messages/actions/bulk-manage-star.php
r11925 r12592 53 53 } 54 54 55 /* translators: %s: number of starred messages */ 55 56 bp_core_add_message( sprintf( _n( '%s message was successfully starred', '%s messages were successfully starred', $count, 'buddypress' ), $count ) ); 56 57 break; … … 67 68 } 68 69 70 /* translators: %s: number of unstarred messages */ 69 71 bp_core_add_message( sprintf( _n( '%s message was successfully unstarred', '%s messages were successfully unstarred', $count, 'buddypress' ), $count ) ); 70 72 break; -
trunk/src/bp-messages/bp-messages-functions.php
r12448 r12592 94 94 // Set a default reply subject if none was sent. 95 95 if ( empty( $message->subject ) ) { 96 /* translators: %s: message subject */ 96 97 $message->subject = sprintf( __( 'Re: %s', 'buddypress' ), $thread->messages[0]->subject ); 97 98 } -
trunk/src/bp-messages/bp-messages-notifications.php
r12087 r12592 35 35 if ( $total_items > 1 ) { 36 36 $amount = 'multiple'; 37 $text = sprintf( __( 'You have %d new messages', 'buddypress' ), $total_items ); 37 38 /* translators: %s: number of new messages */ 39 $text = sprintf( __( 'You have %d new messages', 'buddypress' ), $total_items ); 38 40 39 41 } else { … … 46 48 47 49 if ( ! empty( $secondary_item_id ) ) { 50 /* translators: %s: member name */ 48 51 $text = sprintf( __( '%s sent you a new private message', 'buddypress' ), bp_core_get_user_displayname( $secondary_item_id ) ); 49 52 } else { 53 /* translators: %s: number of private messages */ 50 54 $text = sprintf( _n( 'You have %s new private message', 'You have %s new private messages', $total_items, 'buddypress' ), bp_core_number_format( $total_items ) ); 51 55 } -
trunk/src/bp-messages/bp-messages-template.php
r12415 r12592 640 640 '<span class="thread-count">(%1$s)</span> <span class="bp-screen-reader-text">%2$s</span>', 641 641 number_format_i18n( $total ), 642 /* translators: %d: number of unread messages */ 642 643 sprintf( _n( '%d unread', '%d unread', $unread, 'buddypress' ), number_format_i18n( $unread ) ) 643 644 ); … … 826 827 $message = __( 'Viewing 1 message', 'buddypress' ); 827 828 } else { 829 /* translators: 1: message from number. 2: message to number. 3: total messages. */ 828 830 $message = sprintf( _n( 'Viewing %1$s - %2$s of %3$s message', 'Viewing %1$s - %2$s of %3$s messages', $messages_template->total_thread_count, 'buddypress' ), $from_num, $to_num, $total ); 829 831 } … … 1676 1678 function bp_get_the_thread_recipients() { 1677 1679 if ( 5 <= bp_get_thread_recipients_count() ) { 1680 /* translators: %s: number of message recipients */ 1678 1681 $recipients = sprintf( __( '%s recipients', 'buddypress' ), number_format_i18n( bp_get_thread_recipients_count() ) ); 1679 1682 } else { … … 2067 2070 * @param string $value Default text of 'Sent x hours ago'. 2068 2071 */ 2069 return apply_filters( 'bp_get_the_thread_message_time_since', sprintf( __( 'Sent %s', 'buddypress' ), bp_core_time_since( bp_get_the_thread_message_date_sent() ) ) ); 2072 return apply_filters( 2073 'bp_get_the_thread_message_time_since', 2074 sprintf( 2075 /* translators: %s: last activity timestamp (e.g. "active 1 hour ago") */ 2076 __( 'Sent %s', 'buddypress' ), 2077 bp_core_time_since( bp_get_the_thread_message_date_sent() ) 2078 ) 2079 ); 2070 2080 } 2071 2081 -
trunk/src/bp-messages/classes/class-bp-messages-notices-list-table.php
r11870 r12592 17 17 18 18 class BP_Messages_Notices_List_Table extends WP_List_Table { 19 19 20 20 /** 21 21 * Constructor … … 110 110 public function column_subject( $item ) { 111 111 $actions = array( 112 'activate_deactivate' => sprintf( '<a href="%s" data-bp-notice-id="%d" data-bp-action="activate">%s</a>', 112 'activate_deactivate' => sprintf( '<a href="%s" data-bp-notice-id="%d" data-bp-action="activate">%s</a>', 113 113 esc_url( wp_nonce_url( add_query_arg( array( 114 114 'page' => 'bp-notices', … … 118 118 (int) $item->id, 119 119 esc_html__( 'Activate Notice', 'buddypress' ) ), 120 'delete' => sprintf( '<a href="%s" data-bp-notice-id="%d" data-bp-action="delete">%s</a>', 120 'delete' => sprintf( '<a href="%s" data-bp-notice-id="%d" data-bp-action="delete">%s</a>', 121 121 esc_url( wp_nonce_url( add_query_arg( array( 122 122 'page' => 'bp-notices', … … 129 129 130 130 if ( ! empty( $item->is_active ) ) { 131 /* translators: %s: notice subject */ 131 132 $item->subject = sprintf( _x( 'Active: %s', 'Tag prepended to active site-wide notice titles on WP Admin notices list table', 'buddypress' ), $item->subject ); 132 $actions['activate_deactivate'] = sprintf( '<a href="%s" data-bp-notice-id="%d" data-bp-action="deactivate">%s</a>', 133 $actions['activate_deactivate'] = sprintf( '<a href="%s" data-bp-notice-id="%d" data-bp-action="deactivate">%s</a>', 133 134 esc_url( wp_nonce_url( add_query_arg( array( 134 135 'page' => 'bp-notices', -
trunk/src/bp-messages/classes/class-bp-messages-thread.php
r12426 r12592 852 852 853 853 if ( count( $recipients ) >= 5 ) { 854 /* translators: %s: number of message recipients */ 854 855 return sprintf( __( '%s Recipients', 'buddypress' ), number_format_i18n( count( $recipients ) ) ); 855 856 } -
trunk/src/bp-messages/screens/view.php
r11925 r12592 52 52 $count = bp_get_total_unread_messages_count(); 53 53 $class = ( 0 === $count ) ? 'no-count' : 'count'; 54 $nav_name = sprintf( __( 'Messages <span class="%s">%s</span>', 'buddypress' ), esc_attr( $class ), bp_core_number_format( $count ) ); 54 55 /* translators: 1: class name. 2: number of messages */ 56 $nav_name = sprintf( __( 'Messages <span class="%1$s">%2$s</span>', 'buddypress' ), esc_attr( $class ), bp_core_number_format( $count ) ); 55 57 56 58 // Edit the Navigation name.
Note: See TracChangeset
for help on using the changeset viewer.