Plugin Directory

Changeset 1327792


Ignore:
Timestamp:
01/13/2016 09:07:06 PM (10 years ago)
Author:
dansod
Message:

Added .pot file and changed textdomain to string instead of constant

Location:
subscribe-to-category/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • subscribe-to-category/trunk/classes/class-main.php

    r1032176 r1327792  
    222222     */
    223223    public function load_plugin_textdomain() {
    224         load_plugin_textdomain( STC_TEXTDOMAIN, false, basename( plugin_dir_path( dirname( __FILE__ ) ) ) . '/languages/' );
     224        load_plugin_textdomain( 'stc_textdomain', false, basename( plugin_dir_path( dirname( __FILE__ ) ) ) . '/languages/' );
    225225    }
    226226
  • subscribe-to-category/trunk/classes/class-settings.php

    r1294734 r1327792  
    5353      $subscriber->stc_send_email();
    5454
    55       _e( 'Scheduled event successfully executed', STC_TEXTDOMAIN );
     55      _e( 'Scheduled event successfully executed', 'stc_textdomain' );
    5656
    5757      die();
     
    7777     
    7878      add_options_page(
    79         __( 'Subscribe to Category', STC_TEXTDOMAIN ),
    80         __( 'Subscribe', STC_TEXTDOMAIN ),
     79        __( 'Subscribe to Category', 'stc_textdomain' ),
     80        __( 'Subscribe', 'stc_textdomain' ),
    8181        'manage_options',
    8282        'stc-subscribe-settings',
     
    101101      <div class="wrap">
    102102        <?php screen_icon(); ?>
    103         <h2><?php _e('Settings for subscribe to category', STC_TEXTDOMAIN ); ?></h2>       
     103        <h2><?php _e('Settings for subscribe to category', 'stc_textdomain' ); ?></h2>       
    104104
    105105
     
    107107          <tbody>
    108108            <tr>
    109               <td class="desc"><strong><?php _e( 'Schedule: ', STC_TEXTDOMAIN ); ?></strong> <?php _e('E-mail is scheduled to be sent once every hour.', STC_TEXTDOMAIN ); ?></td>
     109              <td class="desc"><strong><?php _e( 'Schedule: ', 'stc_textdomain' ); ?></strong> <?php _e('E-mail is scheduled to be sent once every hour.', 'stc_textdomain' ); ?></td>
    110110              <td class="desc"></td>
    111               <td class="desc textright"><div class="stc-force-run-action"><button type="button" id="stc-force-run" class="button button-primary"><?php _e( 'Click here to run this action right now', STC_TEXTDOMAIN ); ?></button></div></td>
     111              <td class="desc textright"><div class="stc-force-run-action"><button type="button" id="stc-force-run" class="button button-primary"><?php _e( 'Click here to run this action right now', 'stc_textdomain' ); ?></button></div></td>
    112112            </tr>
    113113            <tr>
    114               <td class="desc" colspan="3"><?php printf( __('Next run is going to be <strong>%s</strong> and will include %s posts.', STC_TEXTDOMAIN ), $next_run, '<span id="stc-posts-in-que">' . $this->get_posts_in_que() . '</span>' ); ?></td>
     114              <td class="desc" colspan="3"><?php printf( __('Next run is going to be <strong>%s</strong> and will include %s posts.', 'stc_textdomain' ), $next_run, '<span id="stc-posts-in-que">' . $this->get_posts_in_que() . '</span>' ); ?></td>
    115115            </tr>
    116116          </tbody>
     
    188188        add_settings_section(
    189189            'setting_email_id', // ID
    190             __( 'E-mail settings', STC_TEXTDOMAIN ), // Title
     190            __( 'E-mail settings', 'stc_textdomain' ), // Title
    191191            '', //array( $this, 'print_section_info' ), // Callback
    192192            'stc-subscribe-settings' // Page
     
    195195        add_settings_field(
    196196            'stc_email_from',
    197             __( 'E-mail from: ', STC_TEXTDOMAIN ),
     197            __( 'E-mail from: ', 'stc_textdomain' ),
    198198            array( $this, 'stc_email_from_callback' ), // Callback
    199199            'stc-subscribe-settings', // Page
     
    203203        add_settings_field(
    204204            'stc_title',
    205             __( 'Email subject: ', STC_TEXTDOMAIN ),
     205            __( 'Email subject: ', 'stc_textdomain' ),
    206206            array( $this, 'stc_title_callback' ), // Callback
    207207            'stc-subscribe-settings', // Page
     
    213213        add_settings_section(
    214214            'setting_resend_id', // ID
    215             __( 'Resend post on update', STC_TEXTDOMAIN ), // Title
     215            __( 'Resend post on update', 'stc_textdomain' ), // Title
    216216            '', //array( $this, 'print_section_info' ), // Callback
    217217            'stc-resend-settings' // Page
     
    220220        add_settings_field(
    221221            'stc_resend',
    222             __( 'Resend:', STC_TEXTDOMAIN ),
     222            __( 'Resend:', 'stc_textdomain' ),
    223223            array( $this, 'stc_resend_callback' ), // Callback
    224224            'stc-resend-settings', // Page
     
    230230        add_settings_section(
    231231            'setting_style_id', // ID
    232             __( 'Stylesheet (CSS) settings', STC_TEXTDOMAIN ), // Title
     232            __( 'Stylesheet (CSS) settings', 'stc_textdomain' ), // Title
    233233            '', //array( $this, 'print_section_info' ), // Callback
    234234            'stc-style-settings' // Page
     
    237237        add_settings_field(
    238238            'stc_custom_css',
    239             __( 'Custom CSS: ', STC_TEXTDOMAIN ),
     239            __( 'Custom CSS: ', 'stc_textdomain' ),
    240240            array( $this, 'stc_css_callback' ), // Callback
    241241            'stc-style-settings', // Page
     
    247247        add_settings_section(
    248248            'setting_deactivation_id', // ID
    249             __( 'On plugin deactivation', STC_TEXTDOMAIN ), // Title
     249            __( 'On plugin deactivation', 'stc_textdomain' ), // Title
    250250            array( $this, 'section_deactivation_info' ), // Callback
    251251            'stc-deactivation-settings' // Page
     
    254254        add_settings_field(
    255255            'stc_remove_subscribers',
    256             __( 'Subscribers: ', STC_TEXTDOMAIN ),
     256            __( 'Subscribers: ', 'stc_textdomain' ),
    257257            array( $this, 'stc_remove_subscribers_callback' ), // Callback
    258258            'stc-deactivation-settings', // Page
     
    278278    public function section_deactivation_info(){
    279279      ?>
    280       <p><?php _e('The plugin will remove all data in database created by this plugin but there is an option regarding subscribers', STC_TEXTDOMAIN ); ?></p>
     280      <p><?php _e('The plugin will remove all data in database created by this plugin but there is an option regarding subscribers', 'stc_textdomain' ); ?></p>
    281281      <?php
    282282    }
     
    299299          if(! empty( $input['email_from'] )){
    300300            if ( ! is_email( $output['email_from'] ) ){
    301               add_settings_error( 'setting_email_id', 'invalid-email', __( 'You have entered an invalid email.', STC_TEXTDOMAIN ) );
     301              add_settings_error( 'setting_email_id', 'invalid-email', __( 'You have entered an invalid email.', 'stc_textdomain' ) );
    302302            }
    303303          }
     
    330330     */
    331331    public function print_section_info(){
    332       _e( 'Add your E-mail settings', STC_TEXTDOMAIN );
     332      _e( 'Add your E-mail settings', 'stc_textdomain' );
    333333    }
    334334
     
    343343      ?>
    344344        <input type="text" id="email_from" class="regular-text" name="stc_settings[email_from]" value="<?php echo isset( $this->options['email_from'] ) ? esc_attr( $this->options['email_from'] ) : '' ?>" />
    345         <p class="description"><?php printf( __( 'Enter the e-mail address for the sender, if empty the admin e-mail address %s is going to be used as sender.', STC_TEXTDOMAIN ), $default_email ); ?></p>
     345        <p class="description"><?php printf( __( 'Enter the e-mail address for the sender, if empty the admin e-mail address %s is going to be used as sender.', 'stc_textdomain' ), $default_email ); ?></p>
    346346        <?php
    347347    }
     
    356356      ?>
    357357        <input type="text" id="email_from" class="regular-text" name="stc_settings[title]" value="<?php echo isset( $this->options['title'] ) ? esc_attr( $this->options['title'] ) : '' ?>" />
    358         <p class="description"><?php _e( 'Enter e-mail subject for the e-mail notification, leave empty if you wish to use post title as email subject.', STC_TEXTDOMAIN ); ?></p>
     358        <p class="description"><?php _e( 'Enter e-mail subject for the e-mail notification, leave empty if you wish to use post title as email subject.', 'stc_textdomain' ); ?></p>
    359359        <?php
    360360    }
     
    374374      ?>
    375375
    376       <label for="resend_option"><input type="checkbox" value="1" id="resend_option" name="stc_settings[resend_option]" <?php checked( '1', $options['resend_option'] ); ?>><?php _e('Enable resend post option', STC_TEXTDOMAIN ); ?></label>
    377       <p class="description"><?php _e('Gives an option on edit post (in the publish panel) to resend a post on update.', STC_TEXTDOMAIN ); ?></p>
     376      <label for="resend_option"><input type="checkbox" value="1" id="resend_option" name="stc_settings[resend_option]" <?php checked( '1', $options['resend_option'] ); ?>><?php _e('Enable resend post option', 'stc_textdomain' ); ?></label>
     377      <p class="description"><?php _e('Gives an option on edit post (in the publish panel) to resend a post on update.', 'stc_textdomain' ); ?></p>
    378378    <?php
    379379    }   
     
    392392      ?>
    393393
    394       <label for="exclude_css"><input type="checkbox" value="1" id="exclude_css" name="stc_settings[exclude_css]" <?php checked( '1', $options['exclude_css'] ); ?>><?php _e('Exclude custom CSS', STC_TEXTDOMAIN ); ?></label>
    395       <p class="description"><?php _e('Check this option if your theme supports Bootstrap framework or if you want to place your own CSS for Subscribe to Category in your theme.', STC_TEXTDOMAIN ); ?></p>
     394      <label for="exclude_css"><input type="checkbox" value="1" id="exclude_css" name="stc_settings[exclude_css]" <?php checked( '1', $options['exclude_css'] ); ?>><?php _e('Exclude custom CSS', 'stc_textdomain' ); ?></label>
     395      <p class="description"><?php _e('Check this option if your theme supports Bootstrap framework or if you want to place your own CSS for Subscribe to Category in your theme.', 'stc_textdomain' ); ?></p>
    396396    <?php
    397397    }
     
    411411      ?>
    412412
    413       <label for="deactivation_remove_subscribers"><input type="checkbox" value="1" id="deactivation_remove_subscribers" name="stc_settings[deactivation_remove_subscribers]" <?php checked( '1', $options['deactivation_remove_subscribers'] ); ?>><?php _e('Delete all subscribers on deactivation', STC_TEXTDOMAIN ); ?></label>
     413      <label for="deactivation_remove_subscribers"><input type="checkbox" value="1" id="deactivation_remove_subscribers" name="stc_settings[deactivation_remove_subscribers]" <?php checked( '1', $options['deactivation_remove_subscribers'] ); ?>><?php _e('Delete all subscribers on deactivation', 'stc_textdomain' ); ?></label>
    414414    <?php
    415415    }       
     
    424424      $categories = get_categories( array( 'hide_empty' => false ) );
    425425      ?>
    426       <h3><?php _e( 'Export to excel', STC_TEXTDOMAIN ); ?></h3>
     426      <h3><?php _e( 'Export to excel', 'stc_textdomain' ); ?></h3>
    427427      <form method="post" action="options-general.php?page=stc-subscribe-settings">
    428428      <table class="form-table">
    429429        <tbody>
    430430          <tr>
    431             <th scope="row"><?php _e('Filter by categories', STC_TEXTDOMAIN ); ?></th>
     431            <th scope="row"><?php _e('Filter by categories', 'stc_textdomain' ); ?></th>
    432432            <td>
    433433              <?php if(! empty( $categories )) : ?>
     
    436436                <?php endforeach; ?>
    437437              <?php else: ?>
    438                 <?php _e('There are no categories to list yet', STC_TEXTDOMAIN ); ?>
     438                <?php _e('There are no categories to list yet', 'stc_textdomain' ); ?>
    439439              <?php endif; ?>
    440440            </td>
     
    507507      // print out filtered categories if there is
    508508      if(!empty( $in_category_name ))
    509         echo "\r\n", utf8_decode( __('Filtered by: ', STC_TEXTDOMAIN ) ) . utf8_decode( $in_category_name );
     509        echo "\r\n", utf8_decode( __('Filtered by: ', 'stc_textdomain' ) ) . utf8_decode( $in_category_name );
    510510     
    511511      foreach ($export as $row ) {
  • subscribe-to-category/trunk/classes/class-stc-widget.php

    r1294734 r1327792  
    99        parent::__construct(
    1010            'stc_widget', // Base ID
    11             __( 'Subscribe to Category', STC_TEXTDOMAIN ), // Name
    12             array( 'description' => __( 'Adding the subscribe form to a widget area.', STC_TEXTDOMAIN ), ) // Args
     11            __( 'Subscribe to Category', 'stc_textdomain' ), // Name
     12            array( 'description' => __( 'Adding the subscribe form to a widget area.', 'stc_textdomain' ), ) // Args
    1313        );
    1414    }
     
    4545     */
    4646    public function form( $instance ) {
    47         $title = ! empty( $instance['title'] ) ? $instance['title'] : __( 'Subscribe', STC_TEXTDOMAIN );
     47        $title = ! empty( $instance['title'] ) ? $instance['title'] : __( 'Subscribe', 'stc_textdomain' );
    4848        $categories_include = isset( $instance['categories_include'] ) ? $instance['categories_include'] : '';
    4949        $categories_exclude = isset( $instance['categories_exclude'] ) ? $instance['categories_exclude'] : '';
     
    6161
    6262        <p>
    63             <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Selectable categories for subscription: ', STC_TEXTDOMAIN ); ?></label>
     63            <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Selectable categories for subscription: ', 'stc_textdomain' ); ?></label>
    6464        </p>
    6565
     
    7575        <?php endif; ?>
    7676       
    77         <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Excluded selectable categories for subscription:', STC_TEXTDOMAIN ); ?></label></p>
     77        <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Excluded selectable categories for subscription:', 'stc_textdomain' ); ?></label></p>
    7878        <?php if(! empty( $categories ) ) : ?>
    7979            <div class="stc-category-exclude">
  • subscribe-to-category/trunk/classes/class-subscribe.php

    r1324298 r1327792  
    100100      ?>
    101101        <div class="misc-pub-section stc-section">
    102           <span class="dashicons dashicons-groups"></span> <label><?php _e('Resend post to subscribers', STC_TEXTDOMAIN ); ?> <input id="stc-resend" type="checkbox" name="stc_resend"></label>
     102          <span class="dashicons dashicons-groups"></span> <label><?php _e('Resend post to subscribers', 'stc_textdomain' ); ?> <input id="stc-resend" type="checkbox" name="stc_resend"></label>
    103103          <div id="stc-resend-info" style="display:none;">
    104             <p><i><?php printf( __( 'This post update will be re-sent to subscribers %s', STC_TEXTDOMAIN ), $next_run ); ?></i></p>
     104            <p><i><?php printf( __( 'This post update will be re-sent to subscribers %s', 'stc_textdomain' ), $next_run ); ?></i></p>
    105105          </div>
    106106        </div>
     
    156156      <div class="alert alert-success text-center">
    157157        <p><?php echo $this->notice[0]; ?></p>
    158         <p><a href="<?php echo get_bloginfo('url'); ?>"><?php _e( 'Take me to start page', STC_TEXTDOMAIN ); ?></a></p>
     158        <p><a href="<?php echo get_bloginfo('url'); ?>"><?php _e( 'Take me to start page', 'stc_textdomain' ); ?></a></p>
    159159      </div>
    160160    </div>
     
    185185      // notice on subscription
    186186      if (isset( $_GET['stc_status'] ) && $_GET['stc_status'] == 'success' ) {
    187         $this->notice[] = __( 'Thanks for your subscription!', STC_TEXTDOMAIN );
    188         $this->notice[] = __( 'If you want to unsubscribe there is a link for unsubscription attached in the email.', STC_TEXTDOMAIN );
     187        $this->notice[] = __( 'Thanks for your subscription!', 'stc_textdomain' );
     188        $this->notice[] = __( 'If you want to unsubscribe there is a link for unsubscription attached in the email.', 'stc_textdomain' );
    189189      }
    190190
     
    224224      wp_delete_post( $user_id );
    225225
    226       $notice[] = sprintf( __( 'We have successfully removed your email %s from our database.', STC_TEXTDOMAIN ), '<span class="stc-notice-email">' . $subscriber_email . '</span>' );
     226      $notice[] = sprintf( __( 'We have successfully removed your email %s from our database.', 'stc_textdomain' ), '<span class="stc-notice-email">' . $subscriber_email . '</span>' );
    227227     
    228228      return $this->notice = $notice;
     
    310310
    311311      // Setting subject
    312       $title = sprintf( __('Unsubscribe from %s', STC_TEXTDOMAIN),  get_bloginfo( 'name' ) );
     312      $title = sprintf( __('Unsubscribe from %s', 'stc_textdomain'),  get_bloginfo( 'name' ) );
    313313
    314314
     
    336336     
    337337      ?>
    338         <h3><?php printf( __('Unsubscribe from %s', STC_TEXTDOMAIN ), get_bloginfo( 'name' ) ); ?></h3>
    339         <div style="margin-top: 20px;"><a href="<?php echo get_bloginfo('url') . '/?stc_unsubscribe=' . $stc['hash'] . '&stc_user=' . $stc['email'] ?>"><?php _e('Follow this link to confirm your unsubscription', STC_TEXTDOMAIN ); ?></a></div>
     338        <h3><?php printf( __('Unsubscribe from %s', 'stc_textdomain' ), get_bloginfo( 'name' ) ); ?></h3>
     339        <div style="margin-top: 20px;"><a href="<?php echo get_bloginfo('url') . '/?stc_unsubscribe=' . $stc['hash'] . '&stc_user=' . $stc['email'] ?>"><?php _e('Follow this link to confirm your unsubscription', 'stc_textdomain' ); ?></a></div>
    340340      <?php
    341341
     
    361361            $data['email'] = $_POST['stc_email'];
    362362          else
    363             $error[] = __( 'You need to enter a valid email address', STC_TEXTDOMAIN );
     363            $error[] = __( 'You need to enter a valid email address', 'stc_textdomain' );
    364364         
    365365          // check if user exists and through error if not         
     
    370370
    371371            if( empty( $result ))
    372               $error[] = __( 'Email address not found in database', STC_TEXTDOMAIN );
     372              $error[] = __( 'Email address not found in database', 'stc_textdomain' );
    373373          }
    374374
     
    378378          $this->send_unsubscribe_mail( $result );
    379379
    380           $notice[] = __('We have received your request to unsubscribe from our newsfeed. Please check your email and confirm your unsubscription.', STC_TEXTDOMAIN );
     380          $notice[] = __('We have received your request to unsubscribe from our newsfeed. Please check your email and confirm your unsubscription.', 'stc_textdomain' );
    381381
    382382          return $this->notice = $notice;
     
    394394                    $data['email'] = $_POST['stc_email'];
    395395                else
    396                     $error[] = __( 'You need to enter a valid email address', STC_TEXTDOMAIN );
     396                    $error[] = __( 'You need to enter a valid email address', 'stc_textdomain' );
    397397
    398398       
     
    406406                    $data['categories'] = $_POST['stc_categories'];
    407407                else
    408                     $error[] = __( 'You need to select some categories', STC_TEXTDOMAIN );
     408                    $error[] = __( 'You need to select some categories', 'stc_textdomain' );
    409409
    410410
     
    542542      $post_id_match = '';
    543543      if(! is_email( $email ) ){
    544         set_transient( 'error', __( 'You need to enter a valid email address', STC_TEXTDOMAIN ) ); // set error if not valid
     544        set_transient( 'error', __( 'You need to enter a valid email address', 'stc_textdomain' ) ); // set error if not valid
    545545      } else {
    546546        $this->data['email'] = $email;
     
    549549       
    550550      if( $post_id_match != $post_id || empty( $post_id_match )){
    551         set_transient('error', __('E-mail address already exists', STC_TEXTDOMAIN ) ); // set error
     551        set_transient('error', __('E-mail address already exists', 'stc_textdomain' ) ); // set error
    552552      }
    553553
    554554      if( $sum_of_post_categories < 1 ){
    555        set_transient('error', __('No categories are selected', STC_TEXTDOMAIN ) );  // set error
     555       set_transient('error', __('No categories are selected', 'stc_textdomain' ) );  // set error
    556556      }
    557557
     
    595595        $error = get_transient( 'error' );
    596596
    597         $error .= __( ' - this post is set to draft', STC_TEXTDOMAIN );
     597        $error .= __( ' - this post is set to draft', 'stc_textdomain' );
    598598        printf( '<div id="message" class="error"><p><strong>%s</strong></p></div>', $error );
    599599        delete_transient( 'error' );
     
    859859            <form role="form" method="post">
    860860          <div class="form-group">
    861                   <label for="stc-email"><?php _e( 'E-mail Address: ', STC_TEXTDOMAIN ); ?></label>
     861                  <label for="stc-email"><?php _e( 'E-mail Address: ', 'stc_textdomain' ); ?></label>
    862862                  <input type="text" id="stc-email" class="form-control" name="stc_email" value="<?php echo !empty( $email ) ? $email : NULL; ?>"/>
    863863          </div>
     
    866866            <label>
    867867              <input type="checkbox" id="stc-unsubscribe-checkbox" name="stc-unsubscribe" value="1" <?php checked( '1', $post_stc_unsubscribe ); ?>>
    868               <?php _e( 'Unsubscribe me', STC_TEXTDOMAIN ) ?>
     868              <?php _e( 'Unsubscribe me', 'stc_textdomain' ) ?>
    869869            </label>
    870870          </div>
     
    873873            <?php if(! empty( $cats )) :?>
    874874              <?php if (count ($cats) > 1 ) : ?>
    875                 <h3><?php _e('Categories', STC_TEXTDOMAIN ); ?></h3>
     875                <h3><?php _e('Categories', 'stc_textdomain' ); ?></h3>
    876876                <?php if( $this->show_all_categories === true ) : ?>
    877877                  <div class="checkbox">
    878878                    <label>
    879879                      <input type="checkbox" id="stc-all-categories" name="stc_all_categories" value="1">
    880                       <?php _e('All categories', STC_TEXTDOMAIN ); ?>
     880                      <?php _e('All categories', 'stc_textdomain' ); ?>
    881881                    </label>
    882882                  </div>
     
    903903                <input type="hidden" name="action" value="stc_subscribe_me" />
    904904                <?php wp_nonce_field( 'wp_nonce_stc', 'stc_nonce', true, true ); ?>
    905           <button id="stc-subscribe-btn" type="submit" class="btn btn-default"<?php echo $post_stc_unsubscribe == 1 ? ' style="display:none;"' : NULL; ?>><?php _e( 'Subscribe me', STC_TEXTDOMAIN ) ?></button>
    906           <button id="stc-unsubscribe-btn" type="submit" class="btn btn-default"<?php echo $post_stc_unsubscribe != 1 ? ' style="display:none;"' : NULL; ?>><?php _e( 'Unsubscribe', STC_TEXTDOMAIN ) ?></button>
     905          <button id="stc-subscribe-btn" type="submit" class="btn btn-default"<?php echo $post_stc_unsubscribe == 1 ? ' style="display:none;"' : NULL; ?>><?php _e( 'Subscribe me', 'stc_textdomain' ) ?></button>
     906          <button id="stc-unsubscribe-btn" type="submit" class="btn btn-default"<?php echo $post_stc_unsubscribe != 1 ? ' style="display:none;"' : NULL; ?>><?php _e( 'Unsubscribe', 'stc_textdomain' ) ?></button>
    907907            </form>
    908908        <?php endif; ?>
     
    10281028        // add updated to title if its an update for post
    10291029        if( $this->is_stc_resend( $email['post_id'] ) )
    1030           $email_subject = __('Update | ', STC_TEXTDOMAIN ) . $email_subject;
     1030          $email_subject = __('Update | ', 'stc_textdomain' ) . $email_subject;
    10311031
    10321032        $subject = '=?UTF-8?B?'.base64_encode( $email_subject ).'?=';
     
    10911091
    10921092      $output['title']        = '<h3><a href="' . get_permalink( $email['post_id'] ) . '">' . $email['post']->post_title . '</a></h3>';
    1093       $output['link_to_post'] = '<div style="border-bottom: 1px solid #cccccc; padding-bottom: 10px;"><a href="' . get_permalink( $email['post_id'] ) .'">' . __('Click here to read full story', STC_TEXTDOMAIN ) . '</a></div>';
    1094       $output['unsubscribe']  = '<div style="margin-top: 20px;"><a href="' . get_bloginfo('url') . '/?stc_unsubscribe=' . $email['hash'] . '&stc_user=' . $email['email'] . '">' . __('Unsubscribe me', STC_TEXTDOMAIN ) . '</a></div>';
     1093      $output['link_to_post'] = '<div style="border-bottom: 1px solid #cccccc; padding-bottom: 10px;"><a href="' . get_permalink( $email['post_id'] ) .'">' . __('Click here to read full story', 'stc_textdomain' ) . '</a></div>';
     1094      $output['unsubscribe']  = '<div style="margin-top: 20px;"><a href="' . get_bloginfo('url') . '/?stc_unsubscribe=' . $email['hash'] . '&stc_user=' . $email['email'] . '">' . __('Unsubscribe me', 'stc_textdomain' ) . '</a></div>';
    10951095
    10961096      ?>
     
    11871187
    11881188            $labels = array(
    1189                 'name' => __( 'Subscribers', STC_TEXTDOMAIN ),
    1190                 'singular_name' => __( 'Subscribe', STC_TEXTDOMAIN ),
    1191                 'add_new' => __( 'Add new subscriber', STC_TEXTDOMAIN ),
    1192                 'add_new_item' => __( 'Add new subscriber', STC_TEXTDOMAIN ),
    1193                 'edit_item' => __( 'Edit subscriber', STC_TEXTDOMAIN ),
    1194                 'new_item' => __( 'New subscriber', STC_TEXTDOMAIN ),
    1195                 'view_item' => __( 'Show subscriber', STC_TEXTDOMAIN ),
    1196                 'search_items' => __( 'Search subscribers', STC_TEXTDOMAIN ),
    1197                 'not_found' => __( 'Not found', STC_TEXTDOMAIN ),
    1198                 'not_found_in_trash' => __( 'Nothing found in trash', STC_TEXTDOMAIN ),
    1199                 'menu_name' => __( 'Subscribers', STC_TEXTDOMAIN ),
     1189                'name' => __( 'Subscribers', 'stc_textdomain' ),
     1190                'singular_name' => __( 'Subscribe', 'stc_textdomain' ),
     1191                'add_new' => __( 'Add new subscriber', 'stc_textdomain' ),
     1192                'add_new_item' => __( 'Add new subscriber', 'stc_textdomain' ),
     1193                'edit_item' => __( 'Edit subscriber', 'stc_textdomain' ),
     1194                'new_item' => __( 'New subscriber', 'stc_textdomain' ),
     1195                'view_item' => __( 'Show subscriber', 'stc_textdomain' ),
     1196                'search_items' => __( 'Search subscribers', 'stc_textdomain' ),
     1197                'not_found' => __( 'Not found', 'stc_textdomain' ),
     1198                'not_found_in_trash' => __( 'Nothing found in trash', 'stc_textdomain' ),
     1199                'menu_name' => __( 'Subscribers', 'stc_textdomain' ),
    12001200            );
    12011201
  • subscribe-to-category/trunk/readme.txt

    r1324298 r1327792  
    44Requires at least: 3.9
    55Tested up to: 4.4.1
    6 Stable tag: 1.7.0
     6Stable tag: 1.8.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    114114
    115115== Changelog ==
     116= 1.8.2 =
     117* Added pot file to be used for translation.
     118* Bugfix - changed textdomain to string instead of constant.
    116119
    117120= 1.7.0 =
  • subscribe-to-category/trunk/subscribe-to-category.php

    r1324298 r1327792  
    44  Plugin URI: http://dcweb.nu
    55  Description: Lets your visitor subscribe to posts for one or several categories.
    6   Version: 1.7.0
     6  Version: 1.8.1
    77  Author: Daniel Söderström
    88  Author URI: http://dcweb.nu/
    99  License: GPLv2 or later
     10  Text Domain: stc_textdomain
     11  Domain Path: /languages
    1012*/
    1113
     
    1416    die();
    1517
    16   define( 'STC_TEXTDOMAIN', 'stc_textdomain' );
    1718  define( 'STC_SLUG', 'stc' );
    1819  define( 'STC_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.