Changeset 4967 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/sponsor-invoice.php
- Timestamp:
- 02/21/2017 12:03:58 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/sponsor-invoice.php
r3307 r4967 35 35 function register_post_type() { 36 36 $labels = array( 37 'name' => _x( 'Sponsor Invoices', 'general sponsor invoices', 'wordcamporg' ),38 'singular_name' => _x( 'Sponsor Invoice', 'post type singular name', 'wordcamporg' ),39 'menu_name' => _x( 'Sponsor Invoices', 'admin menu', 'wordcamporg' ),40 'name_admin_bar' => _x( 'Sponsor Invoices', 'add new on admin bar', 'wordcamporg' ),41 'add_new' => _x( 'Add New', 'invoice', 'wordcamporg' ),42 43 'add_new_item' => __( 'Add New Sponsor Invoice', 'wordcamporg' ),44 'new_item' => __( 'New Invoice', 'wordcamporg' ),45 'edit_item' => __( 'Edit Invoice', 'wordcamporg' ),46 'view_item' => __( 'View Invoice', 'wordcamporg' ),47 'all_items' => __( 'Sponsor Invoices', 'wordcamporg' ),48 'search_items' => __( 'Search Invoices', 'wordcamporg' ),49 'not_found' => __( 'No invoice found.', 'wordcamporg' ),50 'not_found_in_trash' => __( 'No invoice found in Trash.', 'wordcamporg' ),37 'name' => esc_html_x( 'Sponsor Invoices', 'general sponsor invoices', 'wordcamporg' ), 38 'singular_name' => esc_html_x( 'Sponsor Invoice', 'post type singular name', 'wordcamporg' ), 39 'menu_name' => esc_html_x( 'Sponsor Invoices', 'admin menu', 'wordcamporg' ), 40 'name_admin_bar' => esc_html_x( 'Sponsor Invoices', 'add new on admin bar', 'wordcamporg' ), 41 'add_new' => esc_html_x( 'Add New', 'invoice', 'wordcamporg' ), 42 43 'add_new_item' => esc_html__( 'Add New Sponsor Invoice', 'wordcamporg' ), 44 'new_item' => esc_html__( 'New Invoice', 'wordcamporg' ), 45 'edit_item' => esc_html__( 'Edit Invoice', 'wordcamporg' ), 46 'view_item' => esc_html__( 'View Invoice', 'wordcamporg' ), 47 'all_items' => esc_html__( 'Sponsor Invoices', 'wordcamporg' ), 48 'search_items' => esc_html__( 'Search Invoices', 'wordcamporg' ), 49 'not_found' => esc_html__( 'No invoice found.', 'wordcamporg' ), 50 'not_found_in_trash' => esc_html__( 'No invoice found in Trash.', 'wordcamporg' ), 51 51 ); 52 52 … … 72 72 function get_custom_statuses() { 73 73 return array( 74 'wcbsi_submitted' => __( 'Submitted', 'wordcamporg' ),75 'wcbsi_approved' => __( 'Sent', 'wordcamporg' ),76 'wcbsi_paid' => __( 'Paid', 'wordcamporg' ),74 'wcbsi_submitted' => esc_html__( 'Submitted', 'wordcamporg' ), 75 'wcbsi_approved' => esc_html__( 'Sent', 'wordcamporg' ), 76 'wcbsi_paid' => esc_html__( 'Paid', 'wordcamporg' ), 77 77 ); 78 78 } … … 87 87 'wcbsi_submitted', 88 88 array( 89 'label' => _x( 'Submitted', 'post', 'wordcamporg' ),89 'label' => esc_html_x( 'Submitted', 'post', 'wordcamporg' ), 90 90 'label_count' => _nx_noop( 'Submitted <span class="count">(%s)</span>', 'Submitted <span class="count">(%s)</span>', 'wordcamporg' ), 91 91 'public' => true, … … 97 97 'wcbsi_approved', 98 98 array( 99 'label' => _x( 'Sent', 'post', 'wordcamporg' ),99 'label' => esc_html_x( 'Sent', 'post', 'wordcamporg' ), 100 100 'label_count' => _nx_noop( 'Sent <span class="count">(%s)</span>', 'Sent <span class="count">(%s)</span>', 'wordcamporg' ), 101 101 'public' => true, … … 107 107 'wcbsi_paid', 108 108 array( 109 'label' => _x( 'Paid', 'post', 'wordcamporg' ),109 'label' => esc_html_x( 'Paid', 'post', 'wordcamporg' ), 110 110 'label_count' => _nx_noop( 'Paid <span class="count">(%s)</span>', 'Paid <span class="count">(%s)</span>', 'wordcamporg' ), 111 111 'public' => true, … … 124 124 add_meta_box( 125 125 'submitdiv', 126 __( 'Status', 'wordcamporg' ),126 esc_html__( 'Status', 'wordcamporg' ), 127 127 __NAMESPACE__ . '\render_status_metabox', 128 128 POST_TYPE, … … 133 133 add_meta_box( 134 134 'wcbsi_sponsor_invoice', 135 __( 'Sponsor Invoice', 'wordcamporg' ),135 esc_html__( 'Sponsor Invoice', 'wordcamporg' ), 136 136 __NAMESPACE__ . '\render_sponsor_invoice_metabox', 137 137 POST_TYPE, … … 249 249 wp_nonce_field( 'status', 'status_nonce' ); 250 250 251 $delete_text = EMPTY_TRASH_DAYS ? __( 'Move to Trash' ) :__( 'Delete Permanently' );251 $delete_text = EMPTY_TRASH_DAYS ? esc_html__( 'Move to Trash' ) : esc_html__( 'Delete Permanently' ); 252 252 253 253 /* … … 431 431 $columns = array( 432 432 'cb' => $_columns['cb'], 433 'author' => __( 'Author' ),433 'author' => esc_html__( 'Author' ), 434 434 'title' => $_columns['title'], 435 435 'date' => $_columns['date'], 436 'sponsor_name' => __( 'Sponsor', 'wordcamporg' ),437 'payment_amount' => __( 'Amount', 'wordcamporg' ),436 'sponsor_name' => esc_html__( 'Sponsor', 'wordcamporg' ), 437 'payment_amount' => esc_html__( 'Amount', 'wordcamporg' ), 438 438 ); 439 439
Note: See TracChangeset
for help on using the changeset viewer.