Making WordPress.org

Changeset 4968


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

CampTix Attendance: Internationalize strings

Fixes #1903
Props kossmann, SergeyBiryukov

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/camptix-attendance/addons/attendance.php

    r2007 r4968  
    249249     */
    250250    public function setup_sections( $sections ) {
    251         $sections['attendance-ui'] = __( 'Attendance UI', 'camptix' );
     251        $sections['attendance-ui'] = esc_html__( 'Attendance UI', 'wordcamporg' );
    252252        return $sections;
    253253    }
     
    262262            return;
    263263
    264         add_settings_section( 'general', __( 'Attendance UI', 'camptix' ), array( $this, 'setup_controls_section' ), 'camptix_options' );
     264        add_settings_section( 'general', esc_html__( 'Attendance UI', 'wordcamporg' ), array( $this, 'setup_controls_section' ), 'camptix_options' );
    265265
    266266        // Fields
    267         $camptix->add_settings_field_helper( 'attendance-enabled', __( 'Enabled', 'camptix' ), 'field_yesno', 'general',
    268             __( "Don't forget to disable the UI after the event is over.", 'camptix' )
     267        $camptix->add_settings_field_helper( 'attendance-enabled', esc_html__( 'Enabled', 'wordcamporg' ), 'field_yesno', 'general',
     268            esc_html__( "Don't forget to disable the UI after the event is over.", 'wordcamporg' )
    269269        );
    270270
    271         add_settings_field( 'attendance-secret', __( 'Secret Link' ), array( $this, 'field_secret' ), 'camptix_options', 'general' );
     271        add_settings_field( 'attendance-secret', esc_html__( 'Secret Link', 'wordcamporg' ), array( $this, 'field_secret' ), 'camptix_options', 'general' );
    272272    }
    273273
     
    285285
    286286        <input id="camptix-attendance-generate" type="checkbox" name="camptix_options[attendance-generate]" value="1" />
    287         <label for="camptix-attendance-generate"><?php _e( 'Generate a new secret link (old links will expire)', 'camptix' ); ?></label>
     287        <label for="camptix-attendance-generate"><?php esc_html_e( 'Generate a new secret link (old links will expire)', 'wordcamporg' ); ?></label>
    288288        <?php
    289289    }
     
    294294    public function setup_controls_section() {
    295295        ?>
    296         <p>The Attendance UI addon is useful for tracking attendance at the event. It allows registration volunteers to access a mobile-friendly UI during the event, and mark attendees as "attended" or "did not attend" as they register. The UI also offers live search and filters for your convenience.</p>
    297 
    298         <p><strong>Note</strong>: Anyone with the secret link can access the attendance UI and change attendance data. Please keep this URL secret and change it if necessary.</p>
     296        <p><?php esc_html_e( 'The Attendance UI addon is useful for tracking attendance at the event. It allows registration volunteers to access a mobile-friendly UI during the event, and mark attendees as "attended" or "did not attend" as they register. The UI also offers live search and filters for your convenience.', 'wordcamporg' ); ?></p>
     297
     298        <p><strong><?php esc_html_e( 'Note: Anyone with the secret link can access the attendance UI and change attendance data. Please keep this URL secret and change it if necessary.', 'wordcamporg' ); ?></strong></p>
    299299        <?php
    300300    }
Note: See TracChangeset for help on using the changeset viewer.