Making WordPress.org

Ticket #1903: 1903.2.diff

File 1903.2.diff, 3.3 KB (added by kossmann, 8 years ago)

v2

  • addons/attendance.php

     
    248248         * Add a new section to the Setup screen.
    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        }
    254254
     
    261261                if ( 'attendance-ui' != $section )
    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
    274274        /**
     
    284284                <textarea class="large-text" rows="4" readonly><?php echo esc_textarea( $secret_url ); ?></textarea>
    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        }
    290290
     
    293293         */
    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>
     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>
    297297
    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>
     298                <p><strong><?php esc_html_e( 'Note:', 'wordcamporg' ); ?></strong> <?php esc_html_e( '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' ); ?></p>
    299299                <?php
    300300        }
    301301
     
    346346        }
    347347}
    348348
    349 CampTix_Attendance::register_addon();
    350  No newline at end of file
     349CampTix_Attendance::register_addon();