Changeset 4967 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/payment-request.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/payment-request.php
r3800 r4967 42 42 public function register_post_type() { 43 43 $labels = array( 44 'name' => _x( 'Vendor Payments', 'post type general name', 'wordcamporg' ),45 'singular_name' => _x( 'Vendor Payment', 'post type singular name', 'wordcamporg' ),46 'menu_name' => _x( 'Vendor Payments', 'admin menu', 'wordcamporg' ),47 'name_admin_bar' => _x( 'Vendor Payment', 'add new on admin bar', 'wordcamporg' ),48 'add_new' => _x( 'Add New', 'payment', 'wordcamporg' ),49 50 'add_new_item' => __( 'Add New Vendor Payment', 'wordcamporg' ),51 'new_item' => __( 'New Vendor Payment', 'wordcamporg' ),52 'edit_item' => __( 'Edit Vendor Payment', 'wordcamporg' ),53 'view_item' => __( 'View Vendor Payment', 'wordcamporg' ),54 'all_items' => __( 'Vendor Payments', 'wordcamporg' ),55 'search_items' => __( 'Search Vendor Payments', 'wordcamporg' ),56 'parent_item_colon' => __( 'Parent Vendor Payments:', 'wordcamporg' ),57 'not_found' => __( 'No Vendor Payments found.', 'wordcamporg' ),58 'not_found_in_trash' => __( 'No Vendor Payments found in Trash.', 'wordcamporg' )44 'name' => esc_html_x( 'Vendor Payments', 'post type general name', 'wordcamporg' ), 45 'singular_name' => esc_html_x( 'Vendor Payment', 'post type singular name', 'wordcamporg' ), 46 'menu_name' => esc_html_x( 'Vendor Payments', 'admin menu', 'wordcamporg' ), 47 'name_admin_bar' => esc_html_x( 'Vendor Payment', 'add new on admin bar', 'wordcamporg' ), 48 'add_new' => esc_html_x( 'Add New', 'payment', 'wordcamporg' ), 49 50 'add_new_item' => esc_html__( 'Add New Vendor Payment', 'wordcamporg' ), 51 'new_item' => esc_html__( 'New Vendor Payment', 'wordcamporg' ), 52 'edit_item' => esc_html__( 'Edit Vendor Payment', 'wordcamporg' ), 53 'view_item' => esc_html__( 'View Vendor Payment', 'wordcamporg' ), 54 'all_items' => esc_html__( 'Vendor Payments', 'wordcamporg' ), 55 'search_items' => esc_html__( 'Search Vendor Payments', 'wordcamporg' ), 56 'parent_item_colon' => esc_html__( 'Parent Vendor Payments:', 'wordcamporg' ), 57 'not_found' => esc_html__( 'No Vendor Payments found.', 'wordcamporg' ), 58 'not_found_in_trash' => esc_html__( 'No Vendor Payments found in Trash.', 'wordcamporg' ) 59 59 ); 60 60 … … 81 81 'paid', 82 82 array( 83 'label' => _x( 'Paid', 'post', 'wordcamporg' ),83 'label' => esc_html_x( 'Paid', 'post', 'wordcamporg' ), 84 84 'label_count' => _nx_noop( 'Paid <span class="count">(%s)</span>', 'Paid <span class="count">(%s)</span>', 'wordcamporg' ), 85 85 'public' => true, … … 91 91 'unpaid', 92 92 array( 93 'label' => _x( 'Unpaid', 'post', 'wordcamporg' ),93 'label' => esc_html_x( 'Unpaid', 'post', 'wordcamporg' ), 94 94 'label_count' => _nx_noop( 'Unpaid <span class="count">(%s)</span>', 'Unpaid <span class="count">(%s)</span>', 'wordcamporg' ), 95 95 'public' => true, … … 101 101 'incomplete', 102 102 array( 103 'label' => _x( 'Incomplete', 'post', 'wordcamporg' ),103 'label' => esc_html_x( 'Incomplete', 'post', 'wordcamporg' ), 104 104 'label_count' => _nx_noop( 'Incomplete <span class="count">(%s)</span>', 'Incomplete <span class="count">(%s)</span>', 'wordcamporg' ), 105 105 'public' => true, … … 121 121 add_meta_box( 122 122 'submitdiv', 123 __( 'Status', 'wordcamporg' ),123 esc_html__( 'Status', 'wordcamporg' ), 124 124 array( $this, 'render_status_metabox' ), 125 125 self::POST_TYPE, … … 130 130 add_meta_box( 131 131 'wcp_general_info', 132 __( 'General Information', 'wordcamporg' ),132 esc_html__( 'General Information', 'wordcamporg' ), 133 133 array( $this, 'render_general_metabox' ), 134 134 self::POST_TYPE, … … 139 139 $introduction_message = sprintf( 140 140 '<p>%s</p> <p>%s</p>', 141 __( 'Direct Deposit or Wire is the fastest way to pay a vendor. Checks and credit card payments can take 3-5 days for us and/or the bank to process.', 'wordcamporg' ),142 __( 'Each wire transfer costs us processing fees, so please try to avoid multiple wire requests for one vendor.', 'wordcamporg' )141 esc_html__( 'Direct Deposit or Wire is the fastest way to pay a vendor. Checks and credit card payments can take 3-5 days for us and/or the bank to process.', 'wordcamporg' ), 142 esc_html__( 'Each wire transfer costs us processing fees, so please try to avoid multiple wire requests for one vendor.', 'wordcamporg' ) 143 143 ); 144 144 145 145 add_meta_box( 146 146 'wcp_payment_details', 147 __( 'Payment Details', 'wordcamporg' ),147 esc_html__( 'Payment Details', 'wordcamporg' ), 148 148 array( $this, 'render_payment_metabox' ), 149 149 self::POST_TYPE, … … 158 158 add_meta_box( 159 159 'wcp_vendor_details', 160 __( 'Vendor Details', 'wordcamporg' ),160 esc_html__( 'Vendor Details', 'wordcamporg' ), 161 161 array( $this, 'render_vendor_metabox' ), 162 162 self::POST_TYPE, … … 165 165 ); 166 166 167 add_meta_box( 'wcp_log', __( 'Log', 'wordcamporg' ), array( $this, 'render_log_metabox' ),167 add_meta_box( 'wcp_log', esc_html__( 'Log', 'wordcamporg' ), array( $this, 'render_log_metabox' ), 168 168 self::POST_TYPE, 'normal', 'high' ); 169 169 } … … 220 220 $editable_statuses = array( 'auto-draft', 'draft', 'wcb-incomplete' ); 221 221 $current_user_can_edit_request = false; 222 $submit_text = _x( 'Update', 'payment request', 'wordcamporg' );222 $submit_text = esc_html_x( 'Update', 'payment request', 'wordcamporg' ); 223 223 $submit_note = ''; 224 224 … … 226 226 $current_user_can_edit_request = true; 227 227 } elseif ( in_array( $post->post_status, $editable_statuses ) ) { 228 $submit_text = __( 'Submit for Review', 'wordcamporg' );229 $submit_note = __( 'Once submitted for review, this request can not be edited.', 'wordcamporg' );228 $submit_text = esc_html__( 'Submit for Review', 'wordcamporg' ); 229 $submit_note = esc_html__( 'Once submitted for review, this request can not be edited.', 'wordcamporg' ); 230 230 $current_user_can_edit_request = true; 231 231 } … … 832 832 $columns = array( 833 833 'cb' => $_columns['cb'], 834 'author' => __( 'Author' ),834 'author' => esc_html__( 'Author' ), 835 835 'title' => $_columns['title'], 836 836 'date' => $_columns['date'], 837 'due_by' => __( 'Due by', 'wordcamporg' ),838 'vendor_name' => __( 'Vendor', 'wordcamporg' ),839 'payment_amount' => __( 'Amount', 'wordcamporg' ),837 'due_by' => esc_html__( 'Due by', 'wordcamporg' ), 838 'vendor_name' => esc_html__( 'Vendor', 'wordcamporg' ), 839 'payment_amount' => esc_html__( 'Amount', 'wordcamporg' ), 840 840 ); 841 841
Note: See TracChangeset
for help on using the changeset viewer.