WordPress.org

Making WordPress.org

Ticket #2234: 2234.diff

File 2234.diff, 2.2 KB (added by Thomas Vitale, 4 years ago)

Added translation functions for all hard-coded strings.

  • wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/metabox-vendor.php

    diff --git a/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/metabox-vendor.php b/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/metabox-vendor.php
    index b8951f3..92a71de 100644
    a b  
    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>