Ticket #1903: 1903.3.diff
File 1903.3.diff, 3.3 KB (added by , 8 years ago) |
---|
-
addons/attendance.php
248 248 * Add a new section to the Setup screen. 249 249 */ 250 250 public function setup_sections( $sections ) { 251 $sections['attendance-ui'] = __( 'Attendance UI', 'camptix' );251 $sections['attendance-ui'] = esc_html__( 'Attendance UI', 'wordcamporg' ); 252 252 return $sections; 253 253 } 254 254 … … 261 261 if ( 'attendance-ui' != $section ) 262 262 return; 263 263 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' ); 265 265 266 266 // 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' ) 269 269 ); 270 270 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' ); 272 272 } 273 273 274 274 /** … … 284 284 <textarea class="large-text" rows="4" readonly><?php echo esc_textarea( $secret_url ); ?></textarea> 285 285 286 286 <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> 288 288 <?php 289 289 } 290 290 … … 293 293 */ 294 294 public function setup_controls_section() { 295 295 ?> 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> 297 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>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> 299 299 <?php 300 300 } 301 301 … … 346 346 } 347 347 } 348 348 349 CampTix_Attendance::register_addon(); 350 No newline at end of file 349 CampTix_Attendance::register_addon();