Making WordPress.org

Changeset 757


Ignore:
Timestamp:
07/22/2014 06:13:52 PM (11 years ago)
Author:
iandunn
Message:

Email Post Changes Specific Post: Internationalize strings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/email-post-changes-specific-post/widget-subscribe.php

    r107 r757  
    1515        $widget_options  = array(
    1616            'classname'   => 'epcsp_subscribe',
    17             'description' => __( 'Allow visitors to subscribe to email notifications for a specific post or page' )
     17            'description' => __( 'Allow visitors to subscribe to email notifications for a specific post or page', 'wordcamporg' ),
    1818        );
    1919        $control_options = array( 'width' => 300 );
    2020       
    21         parent::__construct( 'epcsp_subscribe', __( 'Subscribe to Specific Post' ), $widget_options, $control_options );
     21        parent::__construct( 'epcsp_subscribe', __( 'Subscribe to Specific Post', 'wordcamporg' ), $widget_options, $control_options );
    2222
    2323        add_action( 'wp_head', array( $this, 'output_css' ) );
     
    4747                }
    4848            } else {
    49                 $message = 'You have been subscribed to this post.';
     49                $message = __( 'You have been subscribed to this post.', 'wordcamporg' );
    5050            }
    5151        }
     
    9292
    9393        <form id="epcsp_subscribe" name="epcsp_subscribe" action="" method="POST">
    94             <label for="epcsp_subscribe_address">Email Address:</label>
     94            <label for="epcsp_subscribe_address"><?php _e( 'Email Address:', 'wordcamporg' ); ?></label>
    9595            <input id="epcsp_subscribe_address" name="epcsp_subscribe_address" type="text" />
    9696            <input name="epcsp_subscribe_submit" type="submit" value="Subscribe" />
     
    137137           
    138138            if ( isset( $subscribed_addresses[ $post_id ] ) && in_array( $email, $subscribed_addresses[ $post_id ] ) ) {
    139                 $errors[] = 'You are already subscribed to this post.';
     139                $errors[] = __( 'You are already subscribed to this post.', 'wordcamporg' );
    140140            } else {
    141141                $subscribed_addresses[ $post_id ][] = sanitize_email( $email );
     
    145145            }
    146146        } else {
    147             $errors[] = 'The email address you entered was not valid.';
     147            $errors[] = __( 'The email address you entered was not valid.', 'wordcamporg' );
    148148        }
    149149       
Note: See TracChangeset for help on using the changeset viewer.