Making WordPress.org


Ignore:
Timestamp:
02/21/2017 12:03:58 AM (8 years ago)
Author:
iandunn
Message:

WordCamp Payments: Internationalize strings

I also converted uses of non-escapted i18n functions -- e.g., __() -- to their escaped counterparts -- e.g., esc_html__().

Fixes 2229
Props thomas-vitale

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/metabox-vendor.php

    r2701 r4967  
    11<table class="form-table">
    22    <?php
    3         $this->render_text_input( $post, 'Vendor Name', 'vendor_name' );
    4         $this->render_text_input( $post, 'Contact Person', 'vendor_contact_person' );
    5         $this->render_text_input( $post, 'Phone Number', 'vendor_phone_number', '', 'tel' );
    6         $this->render_text_input( $post, 'Email Address', 'vendor_email_address', '', 'email' );
    7         $this->render_text_input( $post, 'Street Address', 'vendor_street_address' );
    8         $this->render_text_input( $post, 'City', 'vendor_city' );
    9         $this->render_text_input( $post, 'State / Province', 'vendor_state' );
    10         $this->render_text_input( $post, 'ZIP / Postal Code', 'vendor_zip_code' );
    11         $this->render_country_input( $post, 'Country', 'vendor_country_iso3166' );
     3        $this->render_text_input( $post, __( 'Vendor Name', 'wordcamporg' ), 'vendor_name' );
     4        $this->render_text_input( $post, __( 'Contact Person', 'wordcamporg' ), 'vendor_contact_person' );
     5        $this->render_text_input( $post, __( 'Phone Number', 'wordcamporg' ), 'vendor_phone_number', '', 'tel' );
     6        $this->render_text_input( $post, __( 'Email Address', 'wordcamporg' ), 'vendor_email_address', '', 'email' );
     7        $this->render_text_input( $post, __( 'Street Address', 'wordcamporg' ), 'vendor_street_address' );
     8        $this->render_text_input( $post, __( 'City', 'wordcamporg' ), 'vendor_city' );
     9        $this->render_text_input( $post, __( 'State / Province', 'wordcamporg' ), 'vendor_state' );
     10        $this->render_text_input( $post, __( 'ZIP / Postal Code', 'wordcamporg' ), 'vendor_zip_code' );
     11        $this->render_country_input( $post, __( 'Country', 'wordcamporg' ), 'vendor_country_iso3166' );
    1212    ?>
    1313</table>
    1414
    1515<p class="wcb-form-required">
    16     <?php _e( '* required', 'wordcamporg' ); ?>
     16    <?php esc_html_e( '* required', 'wordcamporg' ); ?>
    1717</p>
Note: See TracChangeset for help on using the changeset viewer.