Plugin Directory

Changeset 3276769


Ignore:
Timestamp:
04/18/2025 01:44:13 PM (10 months ago)
Author:
nwjames
Message:

Version 3.2

Location:
email-notice-wp-document-revisions
Files:
44 added
15 edited

Legend:

Unmodified
Added
Removed
  • email-notice-wp-document-revisions/trunk/css/wpdr-en-mail.css

    r3140478 r3276769  
    11/* Squeeze the entry details a little. */
    22#user-entry td {
    3     padding: 10px;
     3    padding: 5px;
    44}
    55/* Put the list title in bold. */
     
    77    font-weight: bold;
    88}
     9/* Adjust the user list column widths slightly to allow name/mail to be bigger */
     10#rec_num
     11#pause {
     12    width: 15%;
     13}
  • email-notice-wp-document-revisions/trunk/css/wpdr-en-mail.min.css

    r3140478 r3276769  
    1 #user-entry td{padding:10px}#user-list h2{font-weight:700}
     1#user-entry td{padding:5px}#user-list h2{font-weight:700}#rec_num #pause{width:15%}
  • email-notice-wp-document-revisions/trunk/css/wpdr-en-notice.css

    r3212640 r3276769  
    1010    flex-direction: row;
    1111    flex-wrap: wrap;
     12    column-gap: 15px;
    1213    vertical-align: center;
    1314}
  • email-notice-wp-document-revisions/trunk/css/wpdr-en-notice.min.css

    r3212640 r3276769  
    1 .wpdr-en-add-meta{display:flex;flex-direction:row;flex-wrap:wrap;column-gap:15px}.wpdr-en-add-text{display:flex;flex-direction:row;flex-wrap:wrap;vertical-align:center}
     1.wpdr-en-add-meta{display:flex;flex-direction:row;flex-wrap:wrap;column-gap:15px}.wpdr-en-add-text{display:flex;flex-direction:row;flex-wrap:wrap;column-gap:15px;vertical-align:center}
  • email-notice-wp-document-revisions/trunk/includes/class-wpdr-email-notice.php

    r3212640 r3276769  
    99// No direct access allowed to plugin php file.
    1010if ( ! defined( 'ABSPATH' ) ) {
    11     die( esc_html__( 'You are not allowed to call this file directly.', 'wpdr-email-notice' ) );
     11    die( esc_html__( 'You are not allowed to call this file directly.', 'email-notice-wp-document-revisions' ) );
    1212}
    1313
     
    4747
    4848    /**
    49      * Default e-mail content
     49     * Default email content
    5050     *
    5151     * @since 2.0.0
     
    5656
    5757    /**
    58      * Default e-mail content for external users
     58     * Default email content for external users
    5959     *
    6060     * @since 2.0.0
     
    6565
    6666    /**
    67      * Default e-mail repeat
     67     * Default email repeat
    6868     *
    6969     * @since 2.0.0
     
    125125        $table_name      = $wpdb->prefix . 'wpdr_notification_log';
    126126
    127         // Related post, user, e-mail sent (Time stamp), e-mail address, Status (successful/failed).
     127        // Related post, user, email sent (Time stamp), email address, Status (successful/failed).
    128128        $sql[] = "CREATE TABLE $table_name (
    129129          id bigint(20) NOT NULL AUTO_INCREMENT,     
     
    141141        $table_name = $wpdb->prefix . 'wpdr_ext_notice_log';
    142142
    143         // Related post, user, e-mail sent (Time stamp), e-mail address, Status (successful/failed).
     143        // Related post, user, email sent (Time stamp), email address, Status (successful/failed).
    144144        $sql[] = "CREATE TABLE $table_name (
    145145          id bigint(20) NOT NULL AUTO_INCREMENT,     
     
    290290        // create custom post type.
    291291        $labels = array(
    292             'name'               => _x( 'Document External Lists', 'post type general name', 'wpdr-email-notice' ),
    293             'singular_name'      => _x( 'Document External List', 'post type singular name', 'wpdr-email-notice' ),
    294             'add_new'            => __( 'Add Document External List', 'wpdr-email-notice' ),
    295             'add_new_item'       => __( 'Add New Document External List', 'wpdr-email-notice' ),
    296             'edit_item'          => __( 'Edit Document External List', 'wpdr-email-notice' ),
    297             'new_item'           => __( 'New Document External List', 'wpdr-email-notice' ),
    298             'view_item'          => __( 'View Document External List', 'wpdr-email-notice' ),
    299             'view_items'         => __( 'View Document External Lists', 'wpdr-email-notice' ),
    300             'search_items'       => __( 'Search Document External Lists', 'wpdr-email-notice' ),
    301             'not_found'          => __( 'No Document External List found', 'wpdr-email-notice' ),
    302             'not_found_in_trash' => __( 'No Document External Lists found in Trash', 'wpdr-email-notice' ),
     292            'name'               => _x( 'Document External Lists', 'post type general name', 'email-notice-wp-document-revisions' ),
     293            'singular_name'      => _x( 'Document External List', 'post type singular name', 'email-notice-wp-document-revisions' ),
     294            'add_new'            => __( 'Add Document External List', 'email-notice-wp-document-revisions' ),
     295            'add_new_item'       => __( 'Add New Document External List', 'email-notice-wp-document-revisions' ),
     296            'edit_item'          => __( 'Edit Document External List', 'email-notice-wp-document-revisions' ),
     297            'new_item'           => __( 'New Document External List', 'email-notice-wp-document-revisions' ),
     298            'view_item'          => __( 'View Document External List', 'email-notice-wp-document-revisions' ),
     299            'view_items'         => __( 'View Document External Lists', 'email-notice-wp-document-revisions' ),
     300            'search_items'       => __( 'Search Document External Lists', 'email-notice-wp-document-revisions' ),
     301            'not_found'          => __( 'No Document External List found', 'email-notice-wp-document-revisions' ),
     302            'not_found_in_trash' => __( 'No Document External Lists found in Trash', 'email-notice-wp-document-revisions' ),
    303303            'parent_item_colon'  => '',
    304             'menu_name'          => __( 'Document Emails', 'wpdr-email-notice' ),
    305             'all_items'          => __( 'All Document External Lists', 'wpdr-email-notice' ),
     304            'menu_name'          => __( 'Document Emails', 'email-notice-wp-document-revisions' ),
     305            'all_items'          => __( 'All Document External Lists', 'email-notice-wp-document-revisions' ),
    306306        );
    307307
     
    381381
    382382        // support languages.
    383         load_plugin_textdomain( 'wpdr-email-notice', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
     383        load_plugin_textdomain( 'email-notice-wp-document-revisions', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
    384384
    385385        // Adding settings to Settings->General.
    386         add_settings_section( 'wpdr_en_general_settings', __( 'Document Email Settings', 'wpdr-email-notice' ), array( $this, 'general_settings' ), 'general' );
    387         add_settings_field( 'wpdr_en_set_email_from', __( 'Email From', 'wpdr-email-notice' ), array( $this, 'set_email_from' ), 'general', 'wpdr_en_general_settings' );
    388         add_settings_field( 'wpdr_en_set_email_from_address', __( 'Email Address', 'wpdr-email-notice' ), array( $this, 'set_email_from_address' ), 'general', 'wpdr_en_general_settings' );
    389         register_setting( 'general', 'wpdr_en_set_email_from' );
    390         register_setting( 'general', 'wpdr_en_set_email_from_address' );
     386        register_setting(
     387            'general',
     388            'wpdr_en_set_email_from',
     389            array(
     390                'type'              => 'string',
     391                'sanitize_callback' => 'sanitize_text_field',
     392            ),
     393        );
     394        register_setting(
     395            'general',
     396            'wpdr_en_set_email_from_address',
     397            array(
     398                'type'              => 'string',
     399                'sanitize_callback' => 'sanitize_email',
     400            ),
     401        );
     402        add_settings_section( 'wpdr_en_general_settings', __( 'Document Email Settings', 'email-notice-wp-document-revisions' ), array( $this, 'general_settings' ), 'general' );
     403        add_settings_field( 'wpdr_en_set_email_from', __( 'Email From', 'email-notice-wp-document-revisions' ), array( $this, 'set_email_from' ), 'general', 'wpdr_en_general_settings' );
     404        add_settings_field( 'wpdr_en_set_email_from_address', __( 'Email Address', 'email-notice-wp-document-revisions' ), array( $this, 'set_email_from_address' ), 'general', 'wpdr_en_general_settings' );
     405
    391406        // Adding settings to Settings->Writing.
    392         add_settings_section( 'wpdr_en_writing_settings', __( 'Document Email Settings - ', 'wpdr-email-notice' ) . __( 'Notifications', 'wpdr-email-notice' ), array( $this, 'writing_settings' ), 'writing' );
    393         add_settings_field( 'wpdr_en_set_notification_mode', __( 'Internal Notice mode', 'wpdr-email-notice' ), array( $this, 'set_notification_mode' ), 'writing', 'wpdr_en_writing_settings' );
    394         add_settings_field( 'wpdr_en_set_notification_about', __( 'Notify internal users about', 'wpdr-email-notice' ), array( $this, 'set_notification_about' ), 'writing', 'wpdr_en_writing_settings' );
    395         add_settings_field( 'wpdr_en_set_subject', __( 'Notification e-mail subject', 'wpdr-email-notice' ), array( $this, 'set_subject' ), 'writing', 'wpdr_en_writing_settings' );
    396         add_settings_field( 'wpdr_en_set_content', __( 'Internal Notice e-mail content', 'wpdr-email-notice' ), array( $this, 'set_content' ), 'writing', 'wpdr_en_writing_settings' );
    397         add_settings_field( 'wpdr_en_set_exttext', __( 'External Notice e-mail content', 'wpdr-email-notice' ), array( $this, 'set_exttext' ), 'writing', 'wpdr_en_writing_settings' );
     407        register_setting(
     408            'writing',
     409            'wpdr_en_set_notification_mode',
     410            array(
     411                'type'              => 'integer',
     412                'sanitize_callback' => 'intval',
     413            ),
     414        );
     415        register_setting(
     416            'writing',
     417            'wpdr_en_set_notification_about',
     418            array(
     419                'type'              => 'string',
     420                'sanitize_callback' => 'sanitize_text_field',
     421            ),
     422        );
     423        register_setting(
     424            'writing',
     425            'wpdr_en_set_subject',
     426            array(
     427                'type'              => 'string',
     428                'sanitize_callback' => 'sanitize_text_field',
     429            ),
     430        );
     431        register_setting(
     432            'writing',
     433            'wpdr_en_set_content',
     434            array(
     435                'type'              => 'string',
     436                'sanitize_callback' => 'wp_kses_post',
     437            ),
     438        );
     439        register_setting(
     440            'writing',
     441            'wpdr_en_set_exttext',
     442            array(
     443                'type'              => 'string',
     444                'sanitize_callback' => 'wp_kses_post',
     445            ),
     446        );
     447        register_setting(
     448            'writing',
     449            'wpdr_en_set_ext_attach',
     450            array(
     451                'type'              => 'integer',
     452                'sanitize_callback' => 'intval',
     453            ),
     454        );
     455        register_setting(
     456            'writing',
     457            'wpdr_en_set_repeat',
     458            array(
     459                'type'              => 'string',
     460                'sanitize_callback' => 'wp_kses_post',
     461            ),
     462        );
     463        add_settings_section( 'wpdr_en_writing_settings', __( 'Document Email Settings - ', 'email-notice-wp-document-revisions' ) . __( 'Notifications', 'email-notice-wp-document-revisions' ), array( $this, 'writing_settings' ), 'writing' );
     464        add_settings_field( 'wpdr_en_set_notification_mode', __( 'Internal Notice mode', 'email-notice-wp-document-revisions' ), array( $this, 'set_notification_mode' ), 'writing', 'wpdr_en_writing_settings' );
     465        add_settings_field( 'wpdr_en_set_notification_about', __( 'Notify internal users about', 'email-notice-wp-document-revisions' ), array( $this, 'set_notification_about' ), 'writing', 'wpdr_en_writing_settings' );
     466        add_settings_field( 'wpdr_en_set_subject', __( 'Notification email subject', 'email-notice-wp-document-revisions' ), array( $this, 'set_subject' ), 'writing', 'wpdr_en_writing_settings' );
     467        add_settings_field( 'wpdr_en_set_content', __( 'Internal Notice email content', 'email-notice-wp-document-revisions' ), array( $this, 'set_content' ), 'writing', 'wpdr_en_writing_settings' );
     468        add_settings_field( 'wpdr_en_set_exttext', __( 'External Notice email content', 'email-notice-wp-document-revisions' ), array( $this, 'set_exttext' ), 'writing', 'wpdr_en_writing_settings' );
    398469        add_settings_field( 'wpdr_en_set_ext_attach', '', array( $this, 'set_ext_attach' ), 'writing', 'wpdr_en_writing_settings' );
    399         add_settings_field( 'wpdr_en_set_repeat', __( 'Notification e-mail repeat', 'wpdr-email-notice' ), array( $this, 'set_repeat' ), 'writing', 'wpdr_en_writing_settings' );
     470        add_settings_field( 'wpdr_en_set_repeat', __( 'Notification email repeat', 'email-notice-wp-document-revisions' ), array( $this, 'set_repeat' ), 'writing', 'wpdr_en_writing_settings' );
    400471        // phpcs:disable
    401472        // #TODO: purge.
    402         // add_settings_field( 'wpdr_en_set_notification_log', __( 'Logging', 'wpdr-email-notice' ), array( $this, 'set_notification_log' ), 'writing', 'wpdr_en_writing_settings' );
     473        // add_settings_field( 'wpdr_en_set_notification_log', __( 'Logging', 'email-notice-wp-document-revisions' ), array( $this, 'set_notification_log' ), 'writing', 'wpdr_en_writing_settings' );
    403474        // phpcs:enable
    404         register_setting( 'writing', 'wpdr_en_set_notification_mode' );
    405         register_setting( 'writing', 'wpdr_en_set_notification_about' );
    406         register_setting( 'writing', 'wpdr_en_set_subject' );
    407         register_setting( 'writing', 'wpdr_en_set_content' );
    408         register_setting( 'writing', 'wpdr_en_set_exttext' );
    409         register_setting( 'writing', 'wpdr_en_set_ext_attach' );
    410         register_setting( 'writing', 'wpdr_en_set_repeat' );
    411475        // phpcs:disable
    412476        // #TODO: purge.
     
    470534        add_action( 'admin_notices', array( $this, 'check_error_state' ) );
    471535
    472         // Overwrite default e-mail address only if user set new value.
     536        // Overwrite default email address only if user set new value.
    473537        if ( get_option( 'wpdr_en_set_email_from_address' ) ) {
    474538            add_filter( 'wp_mail_from', array( $this, 'wp_mail_from' ) );
    475539        }
    476         // Overwrite default e-mail from text only if user set new value.
     540        // Overwrite default email from text only if user set new value.
    477541        if ( get_option( 'wpdr_en_set_email_from' ) ) {
    478542            add_filter( 'wp_mail_from_name', array( $this, 'wp_mail_from_name' ) );
     
    510574        // phpcs:disable WordPress.Security.EscapeOutput, WordPress.WP.I18n
    511575        // translators: For this group, text surroundedby % symbols (like %recipient_name%) should not be translated.
    512         self::$default_content = __( 'Dear %recipient_name%,<br/><br/>', 'wpdr-email-notice' ) .
    513             __( 'A new document is published. Check it out!<br/><br/><strong>%title_with_permalink%</strong><br/>%words_50%%extra%%repeat%<br/>', 'wpdr-email-notice' ) .
     576        self::$default_content = __( 'Dear %recipient_name%,<br/><br/>', 'email-notice-wp-document-revisions' ) .
     577            __( 'A new document is published. Check it out!<br/><br/><strong>%title_with_permalink%</strong><br/>%words_50%%extra%%repeat%<br/>', 'email-notice-wp-document-revisions' ) .
    514578            // translators: %s is the link address of the user's profile. Do not translate.
    515             sprintf( __( '<small>In case you do not want to receive this kind of notification you can turn it off in your <a href="%s">profile</a>.</small>', 'wpdr-email-notice' ), admin_url( 'profile.php' ) ) .
    516             __( '<small><br/>Also go there if you wish to change whether you will receive the document as an attachment.</small>', 'wpdr-email-notice' );
    517         self::$default_exttext = __( 'Dear %recipient_name%,<br/><br/>', 'wpdr-email-notice' ) .
    518             __( 'A new document is published. Check it out!<br/><br/><strong>%title_with_permalink%</strong><br/>%words_50%%extra%%repeat%<br/>', 'wpdr-email-notice' ) .
    519             __( '<small>In case you do not want to receive this kind of notification you can reply with the message "Unsubscribe".</small>', 'wpdr-email-notice' );
    520         self::$default_repeat  = __( '<p>This document has previously been sent to you %num% time(s), with the latest sent on %last_date%.</p>', 'wpdr-email-notice' );
     579            sprintf( __( '<small>In case you do not want to receive this kind of notification you can turn it off in your <a href="%s">profile</a>.', 'email-notice-wp-document-revisions' ), admin_url( 'profile.php' ) ) .
     580            __( '<br/>Also go there if you wish to change whether you will receive the document as an attachment.</small>', 'email-notice-wp-document-revisions' );
     581        self::$default_exttext = __( 'Dear %recipient_name%,<br/><br/>', 'email-notice-wp-document-revisions' ) .
     582            __( 'A new document is published. Check it out!<br/><br/><strong>%title_with_permalink%</strong><br/>%words_50%%extra%%repeat%<br/>', 'email-notice-wp-document-revisions' ) .
     583            __( '<small>In case you do not want to receive this kind of notification you can reply with the message "Unsubscribe".</small>', 'email-notice-wp-document-revisions' );
     584        self::$default_repeat  = __( '<p>This document has previously been sent to you %num% time(s), with the latest sent on %last_date%.</p>', 'email-notice-wp-document-revisions' );
    521585        // phpcs:enable WordPress.Security.EscapeOutput, WordPress.WP.I18n
    522586        self::$default_content = wp_kses_post( self::$default_content );
     
    544608                'wpdr_en_nonce'    => wp_create_nonce( 'wpdr_en_nonce' ),
    545609                'ajaxurl'          => admin_url( 'admin-ajax.php' ),
    546                 'sending_mails'    => __( 'Sending email notifications...', 'wpdr-email-notice' ),
    547                 'error_sending'    => __( 'Error sending emails.', 'wpdr-email-notice' ),
    548                 'resend'           => __( 'Re-send notification email(s)', 'wpdr-email-notice' ),
    549                 'email_out_of'     => __( 'email(s) out of', 'wpdr-email-notice' ),
    550                 'notif_sent_check' => __( 'notification(s) sent. Check', 'wpdr-email-notice' ),
    551                 'sent_with'        => __( 'sent with', 'wpdr-email-notice' ),
    552                 'log_issues'       => __( 'log issues. Check', 'wpdr-email-notice' ),
    553                 'log'              => __( 'log', 'wpdr-email-notice' ),
    554                 'for_details'      => __( 'for details.', 'wpdr-email-notice' ),
     610                'sending_mails'    => __( 'Sending email notifications...', 'email-notice-wp-document-revisions' ),
     611                'error_sending'    => __( 'Error sending emails.', 'email-notice-wp-document-revisions' ),
     612                'resend'           => __( 'Re-send notification email(s)', 'email-notice-wp-document-revisions' ),
     613                'email_out_of'     => __( 'email(s) out of', 'email-notice-wp-document-revisions' ),
     614                'notif_sent_check' => __( 'notification(s) sent. Check', 'email-notice-wp-document-revisions' ),
     615                'sent_with'        => __( 'sent with', 'email-notice-wp-document-revisions' ),
     616                'log_issues'       => __( 'log issues. Check', 'email-notice-wp-document-revisions' ),
     617                'log'              => __( 'log', 'email-notice-wp-document-revisions' ),
     618                'for_details'      => __( 'for details.', 'email-notice-wp-document-revisions' ),
    555619            );
    556620        } elseif ( 'doc_ext_list' === $post->post_type ) {
     
    561625                'ajaxurl'       => admin_url( 'admin-ajax.php' ),
    562626                'user'          => get_current_user_id(),
    563                 'add_address'   => __( 'Add Address to List', 'wpdr-email-notice' ),
    564                 'edit_address'  => __( 'Edit existing Address', 'wpdr-email-notice' ),
     627                'add_address'   => __( 'Add Address to List', 'email-notice-wp-document-revisions' ),
     628                'edit_address'  => __( 'Edit existing Address', 'email-notice-wp-document-revisions' ),
    565629            );
    566630        } else {
     
    614678            $sitename = substr( $sitename, 4 );
    615679        }
    616         echo esc_html__( 'By default all notification e-mails received from "WordPress" < wordpress@', 'wpdr-email-notice' ) . esc_url( $sitename ) . ' >. ' . esc_html__( 'You can change these below.', 'wpdr-email-notice' );
     680        echo esc_html__( 'By default all notification emails received from "WordPress" < wordpress@', 'email-notice-wp-document-revisions' ) . esc_url( $sitename ) . ' >. ' . esc_html__( 'You can change these below.', 'email-notice-wp-document-revisions' );
    617681    }
    618682
     
    652716     */
    653717    public function writing_settings() {
    654         esc_html_e( 'Tags available to make e-mail subject and/or content dynamic:', 'wpdr-email-notice' );
     718        esc_html_e( 'Tags available to make email subject and/or content dynamic:', 'email-notice-wp-document-revisions' );
    655719        echo '<br/>';
    656         echo '<strong>%title%</strong> ' . esc_html__( 'means title of the post', 'wpdr-email-notice' ) . '<br/>';
    657         echo '<strong>%permalink%</strong> ' . esc_html__( 'means URL of the post', 'wpdr-email-notice' ) . '<br/>';
    658         echo '<strong>%title_with_permalink%</strong> ' . esc_html__( 'means URL with title of the post', 'wpdr-email-notice' ) . '<br/>';
    659         echo '<strong>%author_name%</strong> ' . esc_html__( 'means the name of the post author', 'wpdr-email-notice' ) . '<br/>';
    660         echo '<strong>%excerpt%</strong> ' . esc_html__( 'means excerpt of the post', 'wpdr-email-notice' ) . ' ' . esc_html__( 'Only available to those who can edit the document', 'wpdr-email-notice' ) . '<br/>';
    661         echo '<strong>%words_n%</strong> ' . esc_html__( 'means the first n (must be an integer number) number of word(s) extracted from the post', 'wpdr-email-notice' ) . '<br/>';
    662         echo '<strong>%recipient_name%</strong> ' . esc_html__( 'means display name of the user who receives the e-mail', 'wpdr-email-notice' ) . '<br/>';
    663         echo '<strong>%repeat%</strong> ' . esc_html__( 'means output the phrase if the document has been previously e-mailed.', 'wpdr-email-notice' ) . '<br/>';
     720        echo '<strong>%title%</strong> ' . esc_html__( 'means title of the post', 'email-notice-wp-document-revisions' ) . '<br/>';
     721        echo '<strong>%permalink%</strong> ' . esc_html__( 'means URL of the post', 'email-notice-wp-document-revisions' ) . '<br/>';
     722        echo '<strong>%title_with_permalink%</strong> ' . esc_html__( 'means URL with title of the post', 'email-notice-wp-document-revisions' ) . '<br/>';
     723        echo '<strong>%author_name%</strong> ' . esc_html__( 'means the name of the post author', 'email-notice-wp-document-revisions' ) . '<br/>';
     724        echo '<strong>%excerpt%</strong> ' . esc_html__( 'means excerpt of the post', 'email-notice-wp-document-revisions' ) . ' ' . esc_html__( 'Only available to those who can edit the document', 'email-notice-wp-document-revisions' ) . '<br/>';
     725        echo '<strong>%words_n%</strong> ' . esc_html__( 'means the first n (must be an integer number) number of word(s) extracted from the post', 'email-notice-wp-document-revisions' ) . '<br/>';
     726        echo '<strong>%recipient_name%</strong> ' . esc_html__( 'means display name of the user who receives the email', 'email-notice-wp-document-revisions' ) . '<br/>';
     727        echo '<strong>%repeat%</strong> ' . esc_html__( 'means output the phrase if the document has been previously emailed.', 'email-notice-wp-document-revisions' ) . '<br/>';
    664728        echo '<br/>';
    665         echo esc_html__( 'Tags available within the tag', 'wpdr-email-notice' ) . ' <strong>%repeat%</strong>';
     729        echo esc_html__( 'Tags available within the tag', 'email-notice-wp-document-revisions' ) . ' <strong>%repeat%</strong>';
    666730        echo '<br/>';
    667         echo '<strong>%num%</strong> ' . esc_html__( 'means the number of times the document has been previously e-mailed.', 'wpdr-email-notice' ) . '<br/>';
    668         echo '<strong>%last_date%</strong> ' . esc_html__( 'means the last date that the document was e-mailed.', 'wpdr-email-notice' ) . '<br/>';
    669         echo '<strong>%last_time%</strong> ' . esc_html__( 'means the last date incuding time that the document was e-mailed.', 'wpdr-email-notice' ) . '<br/>';
     731        echo '<strong>%num%</strong> ' . esc_html__( 'means the number of times the document has been previously emailed.', 'email-notice-wp-document-revisions' ) . '<br/>';
     732        echo '<strong>%last_date%</strong> ' . esc_html__( 'means the last date that the document was emailed.', 'email-notice-wp-document-revisions' ) . '<br/>';
     733        echo '<strong>%last_time%</strong> ' . esc_html__( 'means the last date incuding time that the document was emailed.', 'email-notice-wp-document-revisions' ) . '<br/>';
    670734        echo '<br/>';
    671         echo '<strong>%extra%</strong> ' . esc_html__( 'means output an optional extra phrase entered at the time of mailing.', 'wpdr-email-notice' ) . '<br/>';
     735        echo '<strong>%extra%</strong> ' . esc_html__( 'means output an optional extra phrase entered at the time of mailing.', 'email-notice-wp-document-revisions' ) . '<br/>';
    672736    }
    673737
     
    683747            $opt = 'Manual';
    684748        }
    685         echo '<input type="radio" name="wpdr_en_set_notification_mode" value="Auto" ' . checked( 'Auto', $opt, false ) . '>' . esc_html__( 'Auto', 'wpdr-email-notice' ) . '</input> ' . esc_html__( '(send e-mails automatically when you publish a post)', 'wpdr-email-notice' ) . '<br/>';
    686         echo '<input type="radio" name="wpdr_en_set_notification_mode" value="Manual" ' . checked( 'Manual', $opt, false ) . '>' . esc_html__( 'Manual', 'wpdr-email-notice' ) . '</input> ' . esc_html__( '(you need to press a button to send notification)', 'wpdr-email-notice' );
     749        echo '<input type="radio" name="wpdr_en_set_notification_mode" value="Auto" ' . checked( 'Auto', $opt, false ) . '>' . esc_html__( 'Auto', 'email-notice-wp-document-revisions' ) . '</input> ' . esc_html__( '(send emails automatically when you publish a post)', 'email-notice-wp-document-revisions' ) . '<br/>';
     750        echo '<input type="radio" name="wpdr_en_set_notification_mode" value="Manual" ' . checked( 'Manual', $opt, false ) . '>' . esc_html__( 'Manual', 'email-notice-wp-document-revisions' ) . '</input> ' . esc_html__( '(you need to press a button to send notification)', 'email-notice-wp-document-revisions' );
    687751    }
    688752
     
    709773            }
    710774        }
    711         echo '<input type="checkbox" id="Chkbx_Public" name="wpdr_en_set_notification_about[Chkbx_Public]" value="Public" ' . esc_attr( $public_checked ) . '>' . esc_html__( 'Public posts', 'wpdr-email-notice' ) . '</input><br/>';
    712         echo '<input type="checkbox" id="Chkbx_Password" name="wpdr_en_set_notification_about[Chkbx_Password]" value="Password"' . esc_attr( $password_checked ) . '>' . esc_html__( 'Password', 'wpdr-email-notice' ) . '</input> ' . esc_html__( 'protected posts (password will', 'wpdr-email-notice' ) . ' <strong>' . esc_html__( 'NOT', 'wpdr-email-notice' ) . '</strong> ' . esc_html__( 'be included in notification e-mail)', 'wpdr-email-notice' ) . '<br/>';
    713         echo '<input type="checkbox" id="Chkbx_Private" name="wpdr_en_set_notification_about[Chkbx_Private]" value="Private"' . esc_attr( $private_checked ) . '>' . esc_html__( 'Private posts', 'wpdr-email-notice' ) . '</input> ';
    714         echo '<br />' . esc_html__( 'Notifications are sent only to those Internal users who can read the document', 'wpdr-email-notice' );
    715         echo '<br />' . esc_html__( 'Notifications can only be sent to External users for Public documents.', 'wpdr-email-notice' );
     775        echo '<input type="checkbox" id="Chkbx_Public" name="wpdr_en_set_notification_about[Chkbx_Public]" value="Public" ' . esc_attr( $public_checked ) . '>' . esc_html__( 'Public posts', 'email-notice-wp-document-revisions' ) . '</input><br/>';
     776        echo '<input type="checkbox" id="Chkbx_Password" name="wpdr_en_set_notification_about[Chkbx_Password]" value="Password"' . esc_attr( $password_checked ) . '>' . esc_html__( 'Password', 'email-notice-wp-document-revisions' ) . '</input> ' . esc_html__( 'protected posts (password will', 'email-notice-wp-document-revisions' ) . ' <strong>' . esc_html__( 'NOT', 'email-notice-wp-document-revisions' ) . '</strong> ' . esc_html__( 'be included in notification email)', 'email-notice-wp-document-revisions' ) . '<br/>';
     777        echo '<input type="checkbox" id="Chkbx_Private" name="wpdr_en_set_notification_about[Chkbx_Private]" value="Private"' . esc_attr( $private_checked ) . '>' . esc_html__( 'Private posts', 'email-notice-wp-document-revisions' ) . '</input> ';
     778        echo '<br />' . esc_html__( 'Notifications are sent only to those Internal users who can read the document', 'email-notice-wp-document-revisions' );
     779        echo '<br />' . esc_html__( 'Notifications can only be sent to External users for Public documents.', 'email-notice-wp-document-revisions' );
    716780    }
    717781
     
    724788    public function set_subject() {
    725789        echo '<input class="regular-text ltr" type="text" id="wpdr_en_set_subject" name="wpdr_en_set_subject" placeholder="New document: %title%" value="' . esc_html( get_option( 'wpdr_en_set_subject' ) ) . '"></input>';
    726         echo '<br/><br/>' . esc_html__( 'Hint: HTML tags are not allowed here, e.g.: %title_with_permalink% will revert to %title%.', 'wpdr-email-notice' );
     790        echo '<br/><br/>' . esc_html__( 'Hint: HTML tags are not allowed here, e.g.: %title_with_permalink% will revert to %title%.', 'email-notice-wp-document-revisions' );
    727791    }
    728792
     
    743807        placeholder = "' . $place . '">' . $text . '</textarea>';
    744808        // phpcs:enable WordPress.Security.EscapeOutput
    745         echo '<br/><br/>' . esc_html__( 'Hint: HTML tags are welcome here to make your notification e-mails more personalized.', 'wpdr-email-notice' );
     809        echo '<br/><br/>' . esc_html__( 'Hint: HTML tags are welcome here to make your notification emails more personalized.', 'email-notice-wp-document-revisions' );
    746810    }
    747811
     
    762826        placeholder = "' . $place . '">' . $text . '</textarea>';
    763827        // phpcs:enable WordPress.Security.EscapeOutput
    764         echo '<br/><br/>' . esc_html__( 'Hint: HTML tags are welcome here to make your notification e-mails more personalized.', 'wpdr-email-notice' );
     828        echo '<br/><br/>' . esc_html__( 'Hint: HTML tags are welcome here to make your notification emails more personalized.', 'email-notice-wp-document-revisions' );
    765829    }
    766830
     
    775839        <label for="wpdr_en_set_ext_attach">
    776840        <input name="wpdr_en_set_ext_attach" type="checkbox" id="wpdr_en_set_ext_attach" value="1" <?php checked( '1', get_option( 'wpdr_en_set_ext_attach' ) ); ?> />
    777         <?php esc_html_e( 'Attach the document in emails to external users.', 'wpdr-email-notice' ); ?></label><br />
     841        <?php esc_html_e( 'Attach the Document in emails to external users.', 'email-notice-wp-document-revisions' ); ?></label><br />
    778842        <?php
    779         echo '<br/>' . esc_html__( 'Remember that Public documents may not always be accessible, so these may need to be attached.', 'wpdr-email-notice' );
     843        echo '<br/>' . esc_html__( 'Public documents may not always be accessible to External users, so these may need to be attached.', 'email-notice-wp-document-revisions' );
    780844    }
    781845
     
    791855        placeholder = "' . self::$default_repeat . '">' . wp_kses_post( get_option( 'wpdr_en_set_repeat' ) ) . '</textarea>';
    792856        // phpcs:enable WordPress.Security.EscapeOutput
    793         echo '<br/><br/>' . esc_html__( 'Hint: HTML tags are welcome here to make your notification e-mails more personalized.', 'wpdr-email-notice' );
     857        echo '<br/><br/>' . esc_html__( 'Hint: HTML tags are welcome here to make your notification emails more personalized.', 'email-notice-wp-document-revisions' );
    794858    }
    795859
     
    847911        // Header.
    848912        echo '<div class="wpdr_en-header">';
    849         echo '<h3>' . esc_html__( 'Document Email Settings', 'wpdr-email-notice' ) . '</h3>';
     913        echo '<h3>' . esc_html__( 'Document Email Settings', 'email-notice-wp-document-revisions' ) . '</h3>';
    850914        echo '</div>'; // wpdr_en-header end.
    851915
     
    858922
    859923        echo '<div class="wpdr_en-content">';
    860         echo '<input type="checkbox" name="wpdr_en_user_notification" value="1" ' . esc_attr( $wpdr_en_user_notification ) . '>' . esc_html__( 'Notify me by e-mail when a new document is published', 'wpdr-email-notice' ) . '</input><br/>';
    861 
    862         echo '<input type="checkbox" name="wpdr_en_user_attachment" value="1" ' . esc_attr( $wpdr_en_user_attachment ) . '>' . esc_html__( 'Also send me the document as an attachment by e-mail when a new document is published', 'wpdr-email-notice' ) . '</input><br/>';
     924        echo '<input type="checkbox" name="wpdr_en_user_notification" value="1" ' . esc_attr( $wpdr_en_user_notification ) . '>' . esc_html__( 'Notify me by email when a new document is published', 'email-notice-wp-document-revisions' ) . '</input><br/>';
     925
     926        echo '<input type="checkbox" name="wpdr_en_user_attachment" value="1" ' . esc_attr( $wpdr_en_user_attachment ) . '>' . esc_html__( 'Also send me the document as an attachment by email when a new document is published', 'email-notice-wp-document-revisions' ) . '</input><br/>';
    863927        echo '</div>'; // wpdr_en-content end.
    864928        echo '</div>'; // wpdr_en-wrapper end.
     
    9671031     */
    9681032    public function add_metabox_head() {
    969         add_meta_box( 'wpdr_en_sectionid', __( 'Document Email Notifications', 'wpdr-email-notice' ), array( $this, 'add_metabox' ), 'document', 'side', 'high' );
     1033        add_meta_box( 'wpdr_en_sectionid', __( 'Document Email Notifications', 'email-notice-wp-document-revisions' ), array( $this, 'add_metabox' ), 'document', 'side', 'high' );
    9701034    }
    9711035
     
    9811045        wp_nonce_field( 'wpdr_en_meta_box', 'wpdr_en_meta_box_nonce' );
    9821046        $pstatus = $this->post_status( $document_id );
     1047
     1048        // Is extra text possible?
     1049        $extra_int = str_contains( $this->get_content( -1 ), '%extra%' );
     1050        $extra_ext = str_contains( $this->get_content( 0 ), '%extra%' );
     1051        $extra     = $extra_int || $extra_ext;
     1052
     1053        echo '<div class="wpdr-en-add-meta"><div>';
     1054        if ( $extra ) {
     1055            echo '<div>' . esc_html__( 'Optional Extra text for this specific mailing', 'email-notice-wp-document-revisions' ) . '<fieldset>';
     1056            echo '<textarea rows="4" cols="30" name="wpdr-en-extra" id="wpdr-en-extra"' . ( $extra ? '' : ' disabled' ) . '></textarea><br />';
     1057            echo '<label class="screen-reader-text" for="wpdr-en-extra">' . esc_html__( 'Optional Extra text', 'email-notice-wp-document-revisions' ) . '</label>';
     1058            esc_html_e( 'Enter any extra text and click Add Extra text before (re)sending.', 'email-notice-wp-document-revisions' );
     1059            echo '</fieldset></div><br />';
     1060        } else {
     1061            echo '<div>' . esc_html__( 'Optional Extra text not configured in templates', 'email-notice-wp-document-revisions' ) . '</div><br />';
     1062        }
    9831063        // Internal user lists box.
    9841064        if ( self::$internal_list_needed ) {
     
    9861066            $recipients        = $this->prepare_mail_recipients( $document_id );
    9871067            $hasrecipient      = ! empty( $recipients );
    988             echo '<div class="wpdr-en-add-meta"><div>';
    9891068            echo '<div class="wpdr-en-add-text"><div>';
    9901069            if ( ( ! empty( $notification_sent ) || '1' === $notification_sent ) && in_array( $pstatus, array( 'Public', 'Password protected', 'Private' ), true ) && $hasrecipient ) {
    991                 echo '<input type="button" id="wpdr-en-notify" class="button-secondary" value="' . esc_html__( 'Re-send notification email(s)', 'wpdr-email-notice' ) . '" />';
     1070                echo '<input type="button" id="wpdr-en-notify" class="button-secondary" value="' . esc_html__( 'Re-send notification email(s)', 'email-notice-wp-document-revisions' ) . '" />';
    9921071            } elseif ( in_array( $pstatus, array( 'Public', 'Password protected', 'Private' ), true ) && ( empty( $notification_sent ) || '0' === $notification_sent ) && $hasrecipient ) {
    993                 echo '<input type="button" id="wpdr-en-notify" class="button-secondary" value="' . esc_html__( 'Send notification email(s)', 'wpdr-email-notice' ) . '"/>';
     1072                echo '<input type="button" id="wpdr-en-notify" class="button-secondary" value="' . esc_html__( 'Send notification email(s)', 'email-notice-wp-document-revisions' ) . '"/>';
    9941073            } elseif ( empty( $notification_sent ) || '0' === $notification_sent ) {
    995                 echo '<input type="button" id="wpdr-en-notify" class="button-secondary" value="' . esc_html__( 'Send notification email(s)', 'wpdr-email-notice' ) . '" disabled/>';
     1074                echo '<input type="button" id="wpdr-en-notify" class="button-secondary" value="' . esc_html__( 'Send notification email(s)', 'email-notice-wp-document-revisions' ) . '" disabled/>';
    9961075            } elseif ( ! empty( $notification_sent ) || '1' === $notification_sent ) {
    997                 echo '<input type="button" id="wpdr-en-notify" class="button-secondary" value="' . esc_html__( 'Re-send notification email(s)', 'wpdr-email-notice' ) . '" disabled/>';
    998             }
    999             echo '</div><div style="margin-left: 5px;"><label>';
    1000             // Is extra text available for internal.
    1001             if ( str_contains( $this->get_content( -1 ), '%extra%' ) ) {
    1002                 echo '<input type="checkbox" id="wpdr-en-int-extra" value="0" disabled />';
    1003                 $extra = true;
    1004             } else {
    1005                 echo '<input type="checkbox" id="wpdr-en-int-extra" value="0" class="wpdr_en_not_use" disabled />';
    1006                 $extra = false;
    1007             }
    1008             echo esc_html__( 'Add Extra text', 'wpdr-email-notice' ) . '</label></div></div>';
     1076                echo '<input type="button" id="wpdr-en-notify" class="button-secondary" value="' . esc_html__( 'Re-send notification email(s)', 'email-notice-wp-document-revisions' ) . '" disabled/>';
     1077            }
     1078            echo '</div>';
     1079            if ( $extra ) {
     1080                echo '<div style="margin-left: 5px;"><label>';
     1081                // Is extra text available for internal.
     1082                if ( $extra_int ) {
     1083                    echo '<input type="checkbox" id="wpdr-en-int-extra" value="0" disabled />';
     1084                } else {
     1085                    echo '<input type="checkbox" id="wpdr-en-int-extra" value="0" class="wpdr_en_not_use" disabled />';
     1086                }
     1087                echo esc_html__( 'Add Extra text', 'email-notice-wp-document-revisions' ) . '</label></div></div>';
     1088            }
    10091089        }
    10101090        // Pass document id to jQuery.
     
    10171097        /* To debug uncomment the following.
    10181098        if ( in_array( $pstatus, array( 'Public','Password protected','Private' ), true ) ) {
    1019             _e( 'Can send mail', 'wpdr-email-notice' );
     1099            _e( 'Can send mail', 'email-notice-wp-document-revisions' );
    10201100        } else {
    1021             _e( 'Should not send mail', 'wpdr-email-notice' );
     1101            _e( 'Should not send mail', 'email-notice-wp-document-revisions' );
    10221102        }
    10231103        echo '<br/>';
    10241104        if ( empty($notification_sent ) || '0' === $notification_sent ) {
    1025             _e( 'Not yet sent', 'wpdr-email-notice' );
     1105            _e( 'Not yet sent', 'email-notice-wp-document-revisions' );
    10261106        } else {
    1027             _e( 'Already sent', 'wpdr-email-notice' );
     1107            _e( 'Already sent', 'email-notice-wp-document-revisions' );
    10281108        }
    10291109        echo '<br/>';
    10301110        if ( $hasrecipient ) {
    1031             _e( 'Recipient exists', 'wpdr-email-notice' );
     1111            _e( 'Recipient exists', 'email-notice-wp-document-revisions' );
    10321112        } else {
    1033             _e( 'No recipient', 'wpdr-email-notice' );
     1113            _e( 'No recipient', 'email-notice-wp-document-revisions' );
    10341114        }
    10351115        */
    10361116        // phpcs:enable
    1037         echo '<span id="wpdr-en-message" style="display: none; margin-left: 5px;">' . esc_html__( 'Sending email notifications...', 'wpdr-email-notice' ) . '</span>';
     1117        echo '<span id="wpdr-en-message" style="display: none; margin-left: 5px;">' . esc_html__( 'Sending email notifications...', 'email-notice-wp-document-revisions' ) . '</span>';
    10381118        echo '</span></div>';
    10391119        // external users.
     
    10461126        if ( ( ! empty( $ext_notice_sent ) || '1' === $ext_notice_sent ) && 'Public' === $pstatus && $hasextrecipient ) {
    10471127            echo '<div class="wpdr-en-add-text"><div>';
    1048             echo '<input type="button" id="wpdr-en-ext-note" class="button-secondary" value="' . esc_html__( 'Re-send external list email(s)', 'wpdr-email-notice' ) . '" />';
     1128            echo '<input type="button" id="wpdr-en-ext-note" class="button-secondary" value="' . esc_html__( 'Re-send external list email(s)', 'email-notice-wp-document-revisions' ) . '" />';
     1129            echo '</div>';
    10491130            // Is extra text available for external.
    1050             echo '</div><div style="margin-left: 5px; margin-right: 5px;"><label>';
    1051             if ( str_contains( $this->get_content( 0 ), '%extra%' ) ) {
    1052                 echo '<input type="checkbox" id="wpdr-en-ext-extra" value="0" disabled />';
    1053                 $extra = true;
    1054             } else {
    1055                 echo '<input type="checkbox" id="wpdr-en-ext-extra" value="0" class="wpdr_en_not_use" disabled />';
    1056             }
    1057             echo esc_html__( 'Add Extra text', 'wpdr-email-notice' ) . '</label></div></div>';
     1131            if ( $extra ) {
     1132                echo '<div style="margin-left: 5px; margin-right: 5px;"><label>';
     1133                if ( $extra_ext ) {
     1134                    echo '<input type="checkbox" id="wpdr-en-ext-extra" value="0" disabled />';
     1135                } else {
     1136                    echo '<input type="checkbox" id="wpdr-en-ext-extra" value="0" class="wpdr_en_not_use" disabled />';
     1137                }
     1138                echo esc_html__( 'Add Extra text', 'email-notice-wp-document-revisions' ) . '</label></div>';
     1139            }
     1140            echo '</div>';
    10581141            // output the list(s) available (text box readonly if cannot edit the lists).
    10591142            foreach ( $ext_lists as $list ) {
     
    10641147        } elseif ( 'Public' === $pstatus && ( empty( $ext_notice_sent ) || '0' === $ext_notice_sent ) && $hasextrecipient ) {
    10651148            echo '<div class="wpdr-en-add-text"><div>';
    1066             echo '<input type="button" id="wpdr-en-ext-note" class="button-secondary" value="' . esc_html__( 'Send external list email(s)', 'wpdr-email-notice' ) . '"/>';
     1149            echo '<input type="button" id="wpdr-en-ext-note" class="button-secondary" value="' . esc_html__( 'Send external list email(s)', 'email-notice-wp-document-revisions' ) . '"/>';
    10671150            // Is extra text available for external.
    10681151            echo '</div><div style=" 5px; margin-right: 5px;"><label>';
     
    10731156                echo '<input type="checkbox" id="wpdr-en-ext-extra" value="0" class="wpdr_en_not_use" disabled />';
    10741157            }
    1075             echo esc_html__( 'Add Extra text', 'wpdr-email-notice' ) . '</label></div>';
     1158            echo esc_html__( 'Add Extra text', 'email-notice-wp-document-revisions' ) . '</label></div>';
    10761159            // output the list(s) available (text box readonly if cannot edit the lists).
    10771160            foreach ( $ext_lists as $list ) {
     
    10811164            }
    10821165        } elseif ( empty( $ext_notice_sent ) || '0' === $ext_notice_sent ) {
    1083             echo '<input type="button" id="wpdr-en-ext-note" class="button-secondary" value="' . esc_html__( 'Send external list email(s)', 'wpdr-email-notice' ) . '" disabled/>';
     1166            echo '<input type="button" id="wpdr-en-ext-note" class="button-secondary" value="' . esc_html__( 'Send external list email(s)', 'email-notice-wp-document-revisions' ) . '" disabled/>';
    10841167        } elseif ( ! empty( $ext_notice_sent ) || '1' === $ext_notice_sent ) {
    1085             echo '<input type="button" id="wpdr-en-ext-note" class="button-secondary" value="' . esc_html__( 'Re-send external list email(s)', 'wpdr-email-notice' ) . '" disabled/>';
    1086         }
    1087         echo '</div><div><p>' . esc_html__( 'Optional Extra text', 'wpdr-email-notice' ) . '</p><fieldset>';
    1088         echo '<textarea rows="4" cols="30" name="wpdr-en-extra" id="wpdr-en-extra"' . ( $extra ? '' : ' disabled' ) . '></textarea><br />';
    1089         echo '<label class="screen-reader-text" for="wpdr-en-extra">' . esc_html__( 'Optional Extra text', 'wpdr-email-notice' ) . '</label>';
    1090         esc_html_e( 'Enter any extra text for this specific mailing and click Add Extra text.', 'wpdr-email-notice' );
    1091         echo '</fieldset></div></div>';
     1168            echo '<input type="button" id="wpdr-en-ext-note" class="button-secondary" value="' . esc_html__( 'Re-send external list email(s)', 'email-notice-wp-document-revisions' ) . '" disabled/>';
     1169        }
     1170        echo '</div>';
     1171        echo '</div>';
    10921172    }
    10931173
     
    11031183     */
    11041184    public function notification_log_menu() {
    1105         add_submenu_page( 'edit.php?post_type=doc_ext_list', __( 'External User Email Log', 'wpdr-email-notice' ), __( 'External User Email Log', 'wpdr-email-notice' ), 'edit_documents', 'wpdr_en_ext_notice_log', array( $this, 'ext_notice_log_list' ) );
     1185        add_submenu_page( 'edit.php?post_type=doc_ext_list', __( 'External User Email Log', 'email-notice-wp-document-revisions' ), __( 'External User Email Log', 'email-notice-wp-document-revisions' ), 'edit_documents', 'wpdr_en_ext_notice_log', array( $this, 'ext_notice_log_list' ) );
    11061186        // internal list menu item may be removed later.
    1107         add_submenu_page( 'edit.php?post_type=doc_ext_list', __( 'Internal User Email Log', 'wpdr-email-notice' ), __( 'Internal User Email Log', 'wpdr-email-notice' ), 'edit_documents', 'wpdr_en_notification_log', array( $this, 'notification_log_list' ) );
     1187        add_submenu_page( 'edit.php?post_type=doc_ext_list', __( 'Internal User Email Log', 'email-notice-wp-document-revisions' ), __( 'Internal User Email Log', 'email-notice-wp-document-revisions' ), 'edit_documents', 'wpdr_en_notification_log', array( $this, 'notification_log_list' ) );
    11081188    }
    11091189
     
    11201200            $result = array(
    11211201                'error'      => true,
    1122                 'error_msg'  => __( 'Something went wrong', 'wpdr-email-notice' ),
     1202                'error_msg'  => __( 'Something went wrong', 'email-notice-wp-document-revisions' ),
    11231203                'error_code' => 'F-11',
    11241204            );
     
    11311211            $result = array(
    11321212                'error'      => true,
    1133                 'error_msg'  => __( 'Something went wrong', 'wpdr-email-notice' ),
     1213                'error_msg'  => __( 'Something went wrong', 'email-notice-wp-document-revisions' ),
    11341214                'error_code' => 'F-12',
    11351215            );
     
    11421222            $result = array(
    11431223                'error'      => true,
    1144                 'error_msg'  => __( 'Something went wrong', 'wpdr-email-notice' ),
     1224                'error_msg'  => __( 'Something went wrong', 'email-notice-wp-document-revisions' ),
    11451225                'error_code' => 'F-13',
    11461226            );
     
    11661246            $result = array(
    11671247                'error'      => true,
    1168                 'error_msg'  => __( 'Something went wrong', 'wpdr-email-notice' ),
     1248                'error_msg'  => __( 'Something went wrong', 'email-notice-wp-document-revisions' ),
    11691249                'error_code' => 'F-14',
    11701250            );
     
    12381318            $result = array(
    12391319                'error'      => true,
    1240                 'error_msg'  => __( 'Something went wrong', 'wpdr-email-notice' ),
     1320                'error_msg'  => __( 'Something went wrong', 'email-notice-wp-document-revisions' ),
    12411321                'error_code' => 'F-11',
    12421322            );
     
    12491329            $result = array(
    12501330                'error'      => true,
    1251                 'error_msg'  => __( 'Something went wrong', 'wpdr-email-notice' ),
     1331                'error_msg'  => __( 'Something went wrong', 'email-notice-wp-document-revisions' ),
    12521332                'error_code' => 'F-12',
    12531333            );
     
    12601340            $result = array(
    12611341                'error'      => true,
    1262                 'error_msg'  => __( 'Something went wrong', 'wpdr-email-notice' ),
     1342                'error_msg'  => __( 'Something went wrong', 'email-notice-wp-document-revisions' ),
    12631343                'error_code' => 'F-13',
    12641344            );
     
    12761356            $result = array(
    12771357                'error'      => true,
    1278                 'error_msg'  => __( 'Something went wrong', 'wpdr-email-notice' ),
     1358                'error_msg'  => __( 'Something went wrong', 'email-notice-wp-document-revisions' ),
    12791359                'error_code' => 'F-14',
    12801360            );
     
    12881368            $result = array(
    12891369                'error'      => true,
    1290                 'error_msg'  => __( 'Something went wrong', 'wpdr-email-notice' ),
     1370                'error_msg'  => __( 'Something went wrong', 'email-notice-wp-document-revisions' ),
    12911371                'error_code' => 'F-15',
    12921372            );
     
    13111391            $result = array(
    13121392                'error'      => true,
    1313                 'error_msg'  => __( 'Something went wrong', 'wpdr-email-notice' ),
     1393                'error_msg'  => __( 'Something went wrong', 'email-notice-wp-document-revisions' ),
    13141394                'error_code' => 'F-16',
    13151395            );
     
    13551435            $result = array(
    13561436                'error'               => true,
    1357                 'error_msg'           => __( 'Something went wrong', 'wpdr-email-notice' ),
     1437                'error_msg'           => __( 'Something went wrong', 'email-notice-wp-document-revisions' ),
    13581438                'logged_count'        => 0,
    13591439                'sent_count'          => 0,
     
    14431523    public function notification_log_list() {
    14441524        if ( ! current_user_can( 'edit_documents' ) ) {
    1445             wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'wpdr-email-notice' ) );
     1525            wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'email-notice-wp-document-revisions' ) );
    14461526        }
    14471527
     
    14511531        // #TODO: add filter/search.
    14521532        echo '<div class="wrap">';
    1453         echo '<h1 class="wp-heading-inline">' . esc_html__( 'Document Email Notification Log', 'wpdr-email-notice' ) . '</h1>';
     1533        echo '<h1 class="wp-heading-inline">' . esc_html__( 'Document Email Notification Log', 'email-notice-wp-document-revisions' ) . '</h1>';
    14541534        $wpdr_en_notification_log_table         = new WPDR_EN_User_Log_Table();
    14551535        $wpdr_en_notification_log_table->screen = convert_to_screen( null );
     
    14581538        echo '<input type="hidden" name="post_type" value="doc_ext_list" />';
    14591539        echo '<input type="hidden" name="page" value="wpdr_en_notification_log" />';
    1460         $wpdr_en_notification_log_table->search_box( esc_html__( 'Search', 'wpdr-email-notice' ), 'search_id' );
     1540        $wpdr_en_notification_log_table->search_box( esc_html__( 'Search', 'email-notice-wp-document-revisions' ), 'search_id' );
    14611541        echo '</form>';
    14621542        $wpdr_en_notification_log_table->display();
    1463         echo '<p>' . esc_html__( 'Note: Success denotes that the mail was successfully received by your e-mail system.', 'wpdr-email-notice' ) . '</p>';
    1464         echo '<p>' . esc_html__( 'The mail delivery process to the recipient is managed within your e-mail system.', 'wpdr-email-notice' ) . '</p>';
     1543        echo '<p>' . esc_html__( 'Note: Success denotes that the email was successfully received by your email system.', 'email-notice-wp-document-revisions' ) . '</p>';
     1544        echo '<p>' . esc_html__( 'The mail delivery process to the recipient is managed within your email system.', 'email-notice-wp-document-revisions' ) . '</p>';
    14651545        echo '</div>';
    14661546    }
     
    14741554    public function ext_notice_log_list() {
    14751555        if ( ! current_user_can( 'edit_documents' ) ) {
    1476             wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'wpdr-email-notice' ) );
     1556            wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'email-notice-wp-document-revisions' ) );
    14771557        }
    14781558
     
    14821562        // #TODO: add filter/search.
    14831563        echo '<div class="wrap">';
    1484         echo '<h1 class="wp-heading-inline">' . esc_html__( 'Document Email External Notice Log', 'wpdr-email-notice' ) . '</h1>';
     1564        echo '<h1 class="wp-heading-inline">' . esc_html__( 'Document Email External Notice Log', 'email-notice-wp-document-revisions' ) . '</h1>';
    14851565        $wpdr_en_ext_notice_log_table         = new WPDR_EN_Ext_Log_Table();
    14861566        $wpdr_en_ext_notice_log_table->screen = convert_to_screen( null );
     
    14891569        echo '<input type="hidden" name="post_type" value="doc_ext_list" />';
    14901570        echo '<input type="hidden" name="page" value="wpdr_en_ext_notice_log" />';
    1491         $wpdr_en_ext_notice_log_table->search_box( esc_html__( 'Search', 'wpdr-email-notice' ), 'search_id' );
     1571        $wpdr_en_ext_notice_log_table->search_box( esc_html__( 'Search', 'email-notice-wp-document-revisions' ), 'search_id' );
    14921572        echo '</form>';
    14931573        $wpdr_en_ext_notice_log_table->display();
    1494         echo '<p>' . esc_html__( 'Note: Success denotes that the mail was successfully received by your e-mail system.', 'wpdr-email-notice' ) . '</p>';
    1495         echo '<p>' . esc_html__( 'The delivery process to the recipient is managed within your e-mail system.', 'wpdr-email-notice' ) . '</p>';
     1574        echo '<p>' . esc_html__( 'Note: Success denotes that the mail was successfully received by your email system.', 'email-notice-wp-document-revisions' ) . '</p>';
     1575        echo '<p>' . esc_html__( 'The delivery process to the recipient is managed within your email system.', 'email-notice-wp-document-revisions' ) . '</p>';
    14961576        echo '</div>';
    14971577    }
     
    15081588    private static function ext_user_list( $post_id = null ) {
    15091589        if ( ! current_user_can( 'edit_doc_ext_lists' ) ) {
    1510             wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'wpdr-email-notice' ) );
     1590            wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'email-notice-wp-document-revisions' ) );
    15111591        }
    15121592
     
    15251605        add_filter( 'set_url_scheme', array( __CLASS__, 'set_url_scheme' ), 10, 3 );
    15261606        echo '<div class="wrap" id="user-list">';
    1527         echo '<h2 class="wp-heading-inline">' . esc_html__( 'User Addressee List', 'wpdr-email-notice' ) . '</h2>';
     1607        echo '<h2 class="wp-heading-inline">' . esc_html__( 'User Addressee List', 'email-notice-wp-document-revisions' ) . '</h2>';
    15281608        $wpdr_en_ext_user_table = new WPDR_EN_Ext_User_Table();
    15291609        $wpdr_en_ext_user_table->prepare_items();
    1530         $wpdr_en_ext_user_table->search_box( esc_html__( 'Search', 'wpdr-email-notice' ), 'search_id' );
     1610        $wpdr_en_ext_user_table->search_box( esc_html__( 'Search', 'email-notice-wp-document-revisions' ), 'search_id' );
    15311611        $wpdr_en_ext_user_table->display();
    15321612        echo '<input id="empty_addr" type="hidden" value="' . esc_attr( $wpdr_en_ext_user_table::$no_addr ) . '">';
     
    15951675        // replace standard excerpt metabox with adapted one.
    15961676        remove_meta_box( 'postexcerpt', 'doc_ext_list', 'normal' );
    1597         add_meta_box( 'del_parms', __( 'List Attributes', 'wpdr-email-notice' ), array( &$this, 'del_attrs_meta_box' ), 'doc_ext_list', 'normal', 'high' );
    1598 
    1599         add_meta_box( 'doc_ext_list', __( 'Document External User List', 'wpdr-email-notice' ), array( &$this, 'doc_ext_list_metabox' ), 'doc_ext_list', 'normal', 'high' );
     1677        add_meta_box( 'del_parms', __( 'List Attributes', 'email-notice-wp-document-revisions' ), array( &$this, 'del_attrs_meta_box' ), 'doc_ext_list', 'normal', 'high' );
     1678
     1679        add_meta_box( 'doc_ext_list', __( 'Document External User List', 'email-notice-wp-document-revisions' ), array( &$this, 'doc_ext_list_metabox' ), 'doc_ext_list', 'normal', 'high' );
    16001680    }
    16011681
     
    16081688    public function doc_ext_list_metabox() {
    16091689        if ( ! current_user_can( 'edit_doc_ext_lists' ) ) {
    1610             wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'wpdr-email-notice' ) );
     1690            wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'email-notice-wp-document-revisions' ) );
    16111691        }
    16121692
     
    16181698            <tr>
    16191699            <td>User Name</td>
    1620             <td><input type="text" id="wpdr-en-user-name" name="user-name" value="" onblur="check_address()" /></td>
     1700            <td><input type="text" id="wpdr-en-user-name" name="user-name" value="" onblur="check_address()" size=30 /></td>
    16211701            </tr>
    16221702            <tr>
    16231703            <td>Email Address</td>
    1624             <td><input type="text" id="wpdr-en-email" name="email" value="" onblur="check_address()" /></td>
     1704            <td><input type="text" id="wpdr-en-email" name="email" value="" onblur="check_address()" size=30 /></td>
    16251705            </tr>
    16261706            <tr>
     
    16301710            <tr>
    16311711            <td><div id="clear_address" name="clear_address" style="display:none;" >
    1632             <input type="submit" class="button button-large" value="<?php echo esc_html_e( 'Clear values', 'wpdr-email-notice' ); ?>" onclick="wpdr_en_clear()"/>
     1712            <input type="submit" class="button button-large" value="<?php echo esc_html_e( 'Clear values', 'email-notice-wp-document-revisions' ); ?>" onclick="wpdr_en_clear()"/>
    16331713            </div></td>
    1634             <td><input type="submit" id="add_address" name="add_address" class="button button-large" value="<?php echo esc_html_e( 'Add Address to List', 'wpdr-email-notice' ); ?>" onclick="wpdr_en_insert()" disabled /></td>
     1714            <td><input type="submit" id="add_address" name="add_address" class="button button-large" value="<?php echo esc_html_e( 'Add Address to List', 'email-notice-wp-document-revisions' ); ?>" onclick="wpdr_en_insert()" disabled /></td>
    16351715            </tr>
    16361716            <tr>
     
    16571737    public function del_attrs_meta_box() {
    16581738        if ( ! current_user_can( 'edit_doc_ext_lists' ) ) {
    1659             wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'wpdr-email-notice' ) );
     1739            wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'email-notice-wp-document-revisions' ) );
    16601740        }
    16611741
     
    16671747        $pause  = (int) get_post_meta( $post->ID, 'wpdr_en_pause', true );
    16681748        ?>
    1669         <h3 id="tm_label" class="hndle" style="padding-left: 0;"><?php esc_html_e( 'Match Rule', 'wpdr-email-notice' ); ?></h3>
    1670         <div id="tm_descr"><?php esc_html_e( 'Choose whether any or all of this lists taxonomy elements must match those on the document to be considered a match.', 'wpdr-email-notice' ); ?></div>
     1749        <h3 id="tm_label" class="hndle" style="padding-left: 0;"><?php esc_html_e( 'Match Rule', 'email-notice-wp-document-revisions' ); ?></h3>
     1750        <div id="tm_descr"><?php esc_html_e( 'Choose whether any or all of this lists taxonomy elements must match those on the document to be considered a match.', 'email-notice-wp-document-revisions' ); ?></div>
    16711751        <div id="tm_ruled" role="radiogroup" aria-labelledby="tm_label" aria-describedby="tm_descr">
    16721752        <fieldset>
    1673         <label><input type="radio" id="tm_any" name="tm_rule" <?php checked( 0, $tm_rule, true ); ?> value="0"><?php esc_html_e( 'Any taxonomy element', 'wpdr-email-notice' ); ?></label><br />
    1674         <label><input type="radio" id="tm_all" name="tm_rule" <?php checked( 1, $tm_rule, true ); ?> value="1"><?php esc_html_e( 'All taxonomy elements', 'wpdr-email-notice' ); ?></label>
     1753        <label><input type="radio" id="tm_any" name="tm_rule" <?php checked( 0, $tm_rule, true ); ?> value="0"><?php esc_html_e( 'Any taxonomy element', 'email-notice-wp-document-revisions' ); ?></label><br />
     1754        <label><input type="radio" id="tm_all" name="tm_rule" <?php checked( 1, $tm_rule, true ); ?> value="1"><?php esc_html_e( 'All taxonomy elements', 'email-notice-wp-document-revisions' ); ?></label>
    16751755        </fieldset>
    16761756        </div>
    1677         <h3 id="attach_label" class="hndle" style="padding-left: 0;"><?php esc_html_e( 'Document Attach', 'wpdr-email-notice' ); ?></h3>
     1757        <h3 id="attach_label" class="hndle" style="padding-left: 0;"><?php esc_html_e( 'Document Attach', 'email-notice-wp-document-revisions' ); ?></h3>
    16781758        <fieldset>
    16791759        <input type="checkbox" id="wpdr_en_attach" name="wpdr_en_attach" value="<?php echo esc_attr( $attach ) . '" ' . checked( 1, $attach, false ); ?>>
    1680         <label for="wpdr_en_attach"><?php esc_html_e( 'Attach Document to Notification E-mails', 'wpdr-email-notice' ); ?></label>
     1760        <label for="wpdr_en_attach"><?php esc_html_e( 'Attach Document to Notification Emails', 'email-notice-wp-document-revisions' ); ?></label>
    16811761        </fieldset>
    1682         <h3 id="pause_label" class="hndle" style="padding-left: 0;"><?php esc_html_e( 'Pause Mail', 'wpdr-email-notice' ); ?></h3>
     1762        <h3 id="pause_label" class="hndle" style="padding-left: 0;"><?php esc_html_e( 'Pause Mail', 'email-notice-wp-document-revisions' ); ?></h3>
    16831763        <fieldset>
    16841764        <input type="checkbox" id="wpdr_en_pause" name="wpdr_en_pause" value="<?php echo esc_attr( $pause ) . '" ' . checked( 1, $pause, false ); ?>>
    1685         <label for="wpdr_en_pause"><?php esc_html_e( 'Pause this List', 'wpdr-email-notice' ); ?></label>
     1765        <label for="wpdr_en_pause"><?php esc_html_e( 'Pause this List', 'email-notice-wp-document-revisions' ); ?></label>
    16861766        </fieldset>
    1687         <h3 id="note_label" class="hndle" style="padding-left: 0;"><?php esc_html_e( 'Document List Notes', 'wpdr-email-notice' ); ?></h3>
     1767        <h3 id="note_label" class="hndle" style="padding-left: 0;"><?php esc_html_e( 'Document List Notes', 'email-notice-wp-document-revisions' ); ?></h3>
    16881768        <fieldset>
    16891769        <textarea rows="4" cols="40" name="excerpt" id="excerpt"><?php echo $post->post_excerpt; // phpcs:ignore. ?></textarea>
    1690         <label class="screen-reader-text" for="excerpt"><?php esc_html_e( 'Document List Notes', 'wpdr-email-notice' ); ?></label>
    1691         <?php esc_html_e( 'You can use this to hold any notes for this list entry.', 'wpdr-email-notice' ); ?>
     1770        <label class="screen-reader-text" for="excerpt"><?php esc_html_e( 'Document List Notes', 'email-notice-wp-document-revisions' ); ?></label>
     1771        <?php esc_html_e( 'You can use this to hold any notes for this list entry.', 'email-notice-wp-document-revisions' ); ?>
    16921772        </fieldset>
    16931773        <?php
     
    17071787
    17081788    /**
    1709      * Replace default <[email protected]> e-mail address.
     1789     * Replace default <[email protected]> email address.
    17101790     *
    17111791     * @since 1.0
     
    17291809
    17301810    /**
    1731      * Replace default e-mail from "WordPress".
     1811     * Replace default email from "WordPress".
    17321812     *
    17331813     * @since 1.0
     
    18221902    %words_n% means the first n (must be an integer number) number of word(s) extracted from the post
    18231903    %recipient_name% means display name of the user who receives the email
    1824     %repeat% means output a sentence if the document has been previously e-mailed
     1904    %repeat% means output a sentence if the document has been previously emailed
    18251905    %extra% means output a mailing specific set of extra text.
    18261906    */
     
    18771957     *
    18781958     * @param int $post_id Document ID.
    1879      * @return object[]array
     1959     * @return object[]
    18801960     */
    18811961    private function prepare_mail_recipients( $post_id ) {
     
    19372017     * @param int[] $lists   Array of Ext_lists to process. (Empty means all matches).
    19382018     * @param bool  $all     Full or simply to know of there are users.
    1939      * @return object[]array
     2019     * @return mixed[]
    19402020     */
    19412021    private function prepare_mail_ext_users( $post_id, $lists, $all ) {
     
    19452025        // Public post only.
    19462026        if ( 'Public' !== $pstatus ) {
    1947             return $result;
    1948         }
    1949 
    1950         // Can non-signed on user read it?
    1951         /**
    1952          * Filter to force notification for external users for a not publically readable document.
    1953          *
    1954          * Special case for normally private site but where certain non-users may be sent documents..
    1955          *
    1956          * @since 2.0
    1957          * @param bool false    Expect normal permissions to determine accessibility.
    1958          * @param int  $post_id Post ID.
    1959          * @return boolean
    1960          */
    1961         if ( apply_filters( 'wpdr_en_ext_force_notice', false, $post_id ) && ! user_can( 0, 'read_document', $post_id ) ) {
    19622027            return $result;
    19632028        }
     
    20942159        remove_filter( 'the_title', 'wptexturize' );
    20952160        if ( empty( $template ) ) {
    2096             $template = __( 'New document: ', 'wpdr-email-notice' ) . get_the_title( $post_id );
     2161            $template = __( 'New document: ', 'email-notice-wp-document-revisions' ) . get_the_title( $post_id );
    20972162        }
    20982163        // %extra% is not supported herev as makes no sense.
     
    21962261            // if there is no subject or content then do not send mail.
    21972262            if ( empty( $mail_subject ) || empty( $mail_content ) ) {
    2198                 if ( $this->log_mail_sent( $value->user_id, $post_id, $value->user_email, __( 'Empty mail subject and/or content.', 'wpdr-email-notice' ), $extra_id ) ) {
     2263                if ( $this->log_mail_sent( $value->user_id, $post_id, $value->user_email, __( 'Empty mail subject and/or content.', 'email-notice-wp-document-revisions' ), $extra_id ) ) {
    21992264                    ++$sending_error_count;
    22002265                    ++$logged_count;
     
    22112276                    }
    22122277                    if ( empty( $attachments ) ) {
    2213                         $mail_content .= '<p>' . __( 'Document not attached.', 'wpdr-email-notice' ) . '</p>';
     2278                        $mail_content .= '<p>' . __( 'Document not attached.', 'email-notice-wp-document-revisions' ) . '</p>';
    22142279                        /**
    22152280                         * Filters whether to attach the file depending on its size and type of user.
     
    22202285                         */
    22212286                    } elseif ( apply_filters( 'wpdr_en_filesize', true, filesize( $attachments[0] ), true ) ) {
    2222                         $mail_content .= '<p>' . __( 'Document attached.', 'wpdr-email-notice' ) . '</p>';
     2287                        $mail_content .= '<p>' . __( 'Document attached.', 'email-notice-wp-document-revisions' ) . '</p>';
    22232288                    } else {
    2224                         $mail_content .= '<p>' . __( 'Document too large to be attached.', 'wpdr-email-notice' ) . '</p>';
     2289                        $mail_content .= '<p>' . __( 'Document too large to be attached.', 'email-notice-wp-document-revisions' ) . '</p>';
    22252290                        $attachments   = array();
    22262291                    }
     
    22342299                 */
    22352300                if ( apply_filters( 'wpdr_en_no_send_email', false ) ) {
    2236                     // test sending process.
    2237                     $status_text = __( 'Test', 'wpdr-email-notice' ) . ' ' . ( empty( $attachments ) ? __( 'Successful', 'wpdr-email-notice' ) : __( 'Success Attachment', 'wpdr-email-notice' ) );
     2301                    // test sending process. Note Test is not translated.
     2302                    $status_text = 'Test ' . ( empty( $attachments ) ? __( 'Successful', 'email-notice-wp-document-revisions' ) : __( 'Success Attachment', 'email-notice-wp-document-revisions' ) );
    22382303                    ++$sent_count;
    22392304                } else {
     
    22462311                    // set status message.
    22472312                    if ( $mail_status ) {
    2248                         $status_text = ( empty( $attachments ) ? __( 'Successful', 'wpdr-email-notice' ) : __( 'Success Attachment', 'wpdr-email-notice' ) );
     2313                        $status_text = ( empty( $attachments ) ? __( 'Successful', 'email-notice-wp-document-revisions' ) : __( 'Success Attachment', 'email-notice-wp-document-revisions' ) );
    22492314                        ++$sent_count;
    22502315                    } else {
    2251                         $status_text = __( 'Failed', 'wpdr-email-notice' );
     2316                        $status_text = __( 'Failed', 'email-notice-wp-document-revisions' );
    22522317                        ++$sending_error_count;
    22532318                    }
     
    23102375            // if there is no subject or content then do not send mail.
    23112376            if ( empty( $mail_subject ) || empty( $mail_content ) ) {
    2312                 $status = __( 'Empty mail subject and/or content.', 'wpdr-email-notice' );
     2377                $status = __( 'Empty mail subject and/or content.', 'email-notice-wp-document-revisions' );
    23132378                if ( $this->log_mail_sent( $value->user_name, $post_id, $value->user_email, $status, $extra_id, $value->list_id ) ) {
    23142379                    ++$sending_error_count;
     
    23232388                    $attachments = $this->get_attachment( $post_id );
    23242389                    if ( empty( $attachments ) ) {
    2325                         $mail_content .= '<p>' . __( 'Document not attached.', 'wpdr-email-notice' ) . '</p>';
     2390                        $mail_content .= '<p>' . __( 'Document not attached.', 'email-notice-wp-document-revisions' ) . '</p>';
    23262391                        /**
    23272392                         * Filters whether to attach the file depending on its size and type of user.
     
    23322397                         */
    23332398                    } elseif ( apply_filters( 'wpdr_en_filesize', true, filesize( $attachments[0] ), false ) ) {
    2334                         $mail_content .= '<p>' . __( 'Document attached.', 'wpdr-email-notice' ) . '</p>';
     2399                        $mail_content .= '<p>' . __( 'Document attached.', 'email-notice-wp-document-revisions' ) . '</p>';
    23352400                    } else {
    2336                         $mail_content .= '<p>' . __( 'Document too large to be attached.', 'wpdr-email-notice' ) . '</p>';
     2401                        $mail_content .= '<p>' . __( 'Document too large to be attached.', 'email-notice-wp-document-revisions' ) . '</p>';
    23372402                        $attachments   = array();
    23382403                    }
     
    23472412                 */
    23482413                if ( apply_filters( 'wpdr_en_no_send_email', false ) ) {
    2349                     // test sending process.
    2350                     $status_text = __( 'Test', 'wpdr-email-notice' ) . ' ' . ( empty( $attachments ) ? __( 'Successful', 'wpdr-email-notice' ) : __( 'Success Attachment', 'wpdr-email-notice' ) );
     2414                    // test sending process. Note Test is not translated.
     2415                    $status_text = 'Test ' . ( empty( $attachments ) ? __( 'Successful', 'email-notice-wp-document-revisions' ) : __( 'Success Attachment', 'email-notice-wp-document-revisions' ) );
    23512416                    ++$sent_count;
    23522417                } else {
     
    23622427                    // set status message.
    23632428                    if ( $mail_status ) {
    2364                         $status_text = ( empty( $attachments ) ? __( 'Successful', 'wpdr-email-notice' ) : __( 'Success Attachment', 'wpdr-email-notice' ) );
     2429                        $status_text = ( empty( $attachments ) ? __( 'Successful', 'email-notice-wp-document-revisions' ) : __( 'Success Attachment', 'email-notice-wp-document-revisions' ) );
    23652430                        ++$sent_count;
    23662431                    } else {
    2367                         $status_text = __( 'Failed', 'wpdr-email-notice' );
     2432                        $status_text = __( 'Failed', 'email-notice-wp-document-revisions' );
    23682433                        ++$sending_error_count;
    23692434                    }
     
    24662531    private function resolve_repeat( $user_id, $post_id, $user_email = null ) {
    24672532        global $wpdb;
    2468         // Ignore test mails in log.
    2469         $test = __( 'Test', 'wpdr-email-notice' ) . ' %';
     2533        // Ignore test mails in log. Note Test is not translated.
     2534        $test = 'Test %';
    24702535        // phpcs:disable WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared
    24712536        if ( is_null( $user_email ) ) {
     
    25832648            $result = array(
    25842649                'error'               => true,
    2585                 'error_msg'           => __( 'Not logged and/or sent out successfully no mails.', 'wpdr-email-notice' ),
     2650                'error_msg'           => __( 'Not logged and/or sent out successfully no mails.', 'email-notice-wp-document-revisions' ),
    25862651                'logged_count'        => $logged_count,
    25872652                'sent_count'          => $sent_count,
     
    26022667                $result = array(
    26032668                    'error'               => true,
    2604                     'error_msg'           => __( 'Something went wrong', 'wpdr-email-notice' ),
     2669                    'error_msg'           => __( 'Something went wrong', 'email-notice-wp-document-revisions' ),
    26052670                    'logged_count'        => $logged_count,
    26062671                    'sent_count'          => $sent_count,
     
    26182683                    $result = array(
    26192684                        'error'               => true,
    2620                         'error_msg'           => __( 'Something went wrong', 'wpdr-email-notice' ),
     2685                        'error_msg'           => __( 'Something went wrong', 'email-notice-wp-document-revisions' ),
    26212686                        'logged_count'        => $logged_count,
    26222687                        'sent_count'          => $sent_count,
     
    26702735            $result = array(
    26712736                'error'               => true,
    2672                 'error_msg'           => __( 'Not logged and/or sent out successfully any mails.', 'wpdr-email-notice' ),
     2737                'error_msg'           => __( 'Not logged and/or sent out successfully any mails.', 'email-notice-wp-document-revisions' ),
    26732738                'logged_count'        => $logged_count,
    26742739                'sent_count'          => $sent_count,
     
    26892754                $result = array(
    26902755                    'error'               => true,
    2691                     'error_msg'           => __( 'Something went wrong', 'wpdr-email-notice' ),
     2756                    'error_msg'           => __( 'Something went wrong', 'email-notice-wp-document-revisions' ),
    26922757                    'logged_count'        => $logged_count,
    26932758                    'sent_count'          => $sent_count,
     
    27052770                    $result = array(
    27062771                        'error'               => true,
    2707                         'error_msg'           => __( 'Something went wrong', 'wpdr-email-notice' ),
     2772                        'error_msg'           => __( 'Something went wrong', 'email-notice-wp-document-revisions' ),
    27082773                        'logged_count'        => $logged_count,
    27092774                        'sent_count'          => $sent_count,
     
    27372802            $result = array(
    27382803                'error'               => true,
    2739                 'error_msg'           => __( 'Something went wrong', 'wpdr-email-notice' ),
     2804                'error_msg'           => __( 'Something went wrong', 'email-notice-wp-document-revisions' ),
    27402805                'logged_count'        => 0,
    27412806                'sent_count'          => 0,
     
    27752840            $result = array(
    27762841                'error'               => true,
    2777                 'error_msg'           => __( 'Something went wrong', 'wpdr-email-notice' ),
     2842                'error_msg'           => __( 'Something went wrong', 'email-notice-wp-document-revisions' ),
    27782843                'logged_count'        => 0,
    27792844                'sent_count'          => 0,
     
    28512916                // Error.
    28522917                if ( 0 === $result['logged_count'] || 0 === $result['sent_count'] ) {
    2853                     $message = '<br>' . __( 'Error sending notifications.', 'wpdr-email-notice' ) . '<a href="' . $result['log_page_url'] . '">' . __( 'Check log', 'wpdr-email-notice' ) . '</a> ' . __( 'for details.', 'wpdr-email-notice' );
     2918                    $message = '<br>' . __( 'Error sending notifications.', 'email-notice-wp-document-revisions' ) . '<a href="' . $result['log_page_url'] . '">' . __( 'Check log', 'email-notice-wp-document-revisions' ) . '</a> ' . __( 'for details.', 'email-notice-wp-document-revisions' );
    28542919                } else {
    28552920                    // Warning.
    28562921                    set_transient( 'auto_notification_result', 'update-nag' );
    2857                     $message = '<br>' . $result['sent_count'] . ' ' . __( 'email(s) out of', 'wpdr-email-notice' ) . ' ' . ( $result['sent_count'] + $result['sending_error_count'] ) . ' ' . __( 'sent with', 'wpdr-email-notice' ) . ' ' . ( $result['sent_count'] + $result['sending_error_count'] - $result['logged_count'] ) . ' ' . __( 'log issues.', 'wpdr-email-notice' ) . '<a href="' . $result['log_page_url'] . '">' . __( 'Check log', 'wpdr-email-notice' ) . '</a> ' . __( 'for details.', 'wpdr-email-notice' );
     2922                    $message = '<br>' . $result['sent_count'] . ' ' . __( 'email(s) out of', 'email-notice-wp-document-revisions' ) . ' ' . ( $result['sent_count'] + $result['sending_error_count'] ) . ' ' . __( 'sent with', 'email-notice-wp-document-revisions' ) . ' ' . ( $result['sent_count'] + $result['sending_error_count'] - $result['logged_count'] ) . ' ' . __( 'log issues.', 'email-notice-wp-document-revisions' ) . '<a href="' . $result['log_page_url'] . '">' . __( 'Check log', 'email-notice-wp-document-revisions' ) . '</a> ' . __( 'for details.', 'email-notice-wp-document-revisions' );
    28582923                }
    28592924            } else {
    28602925                // Emails sent successfully.
    28612926                set_transient( 'auto_notification_result', 'updated' );
    2862                 $message = '<br>' . $result['sent_count'] . ' ' . __( 'notification(s) sent.', 'wpdr-email-notice' ) . ' <a href="' . $result['log_page_url'] . '">' . __( 'Check log', 'wpdr-email-notice' ) . '</a> ' . __( 'for details.', 'wpdr-email-notice' );
     2927                $message = '<br>' . $result['sent_count'] . ' ' . __( 'notification(s) sent.', 'email-notice-wp-document-revisions' ) . ' <a href="' . $result['log_page_url'] . '">' . __( 'Check log', 'email-notice-wp-document-revisions' ) . '</a> ' . __( 'for details.', 'email-notice-wp-document-revisions' );
    28632928            }
    28642929            set_transient( 'auto_notification_message', $message );
     
    29683033        $output = array_slice( $defaults, 0, 2 );
    29693034        // splice in columns..
    2970         $output['tm_rule']        = __( 'Match Rule', 'wpdr-email-notice' );
    2971         $output['wpdr_en_attach'] = __( 'Document Attach', 'wpdr-email-notice' );
    2972         $output['wpdr_en_pause']  = __( 'List Paused', 'wpdr-email-notice' );
     3035        $output['tm_rule']        = __( 'Match Rule', 'email-notice-wp-document-revisions' );
     3036        $output['wpdr_en_attach'] = __( 'Document Attach', 'email-notice-wp-document-revisions' );
     3037        $output['wpdr_en_pause']  = __( 'List Paused', 'email-notice-wp-document-revisions' );
    29733038
    29743039        // get the rest of the columns.
     
    29893054            $tm_rule = (int) get_post_meta( $post_id, 'wpdr_en_tm', true );
    29903055            echo '<input type="hidden" id="tm-rule-' . esc_attr( $post_id ) . '" value ="' . esc_attr( $tm_rule ) . '" >';
    2991             ( 0 === $tm_rule ? esc_html_e( 'Any taxonomy element', 'wpdr-email-notice' ) : esc_html_e( 'All taxonomy elements', 'wpdr-email-notice' ) );
     3056            ( 0 === $tm_rule ? esc_html_e( 'Any taxonomy element', 'email-notice-wp-document-revisions' ) : esc_html_e( 'All taxonomy elements', 'email-notice-wp-document-revisions' ) );
    29923057        }
    29933058        if ( 'wpdr_en_attach' === $column_name ) {
     
    30223087            <fieldset class="inline-edit-col-left">
    30233088            <div id="tm_ruled" class="inline-edit-group wp-clearfix column-tm_rule" role="radiogroup" aria-labelledby="tm_label" aria-describedby="tm_descr">
    3024             <label id="tm_label" class="alignleft"><?php esc_html_e( 'Match Rule :', 'wpdr-email-notice' ); ?></label>
    3025             <label class="alignleft"><input type="radio" id="tm_any" name="tm_rule" value="0"><?php esc_html_e( 'Any taxonomy element', 'wpdr-email-notice' ); ?>&nbsp;&nbsp;</label>
    3026             <label class="alignleft"><input type="radio" id="tm_all" name="tm_rule" value="1"><?php esc_html_e( 'All taxonomy elements', 'wpdr-email-notice' ); ?></label>
     3089            <label id="tm_label" class="alignleft"><?php esc_html_e( 'Match Rule :', 'email-notice-wp-document-revisions' ); ?></label>
     3090            <label class="alignleft"><input type="radio" id="tm_any" name="tm_rule" value="0"><?php esc_html_e( 'Any taxonomy element', 'email-notice-wp-document-revisions' ); ?>&nbsp;&nbsp;</label>
     3091            <label class="alignleft"><input type="radio" id="tm_all" name="tm_rule" value="1"><?php esc_html_e( 'All taxonomy elements', 'email-notice-wp-document-revisions' ); ?></label>
    30273092            </div>
    3028             <p id="tm_descr" class="howto"><?php esc_html_e( 'Choose whether Any or All of these taxonomy elements must match for the list to be used to send e-mails.', 'wpdr-email-notice' ); ?></p>
     3093            <p id="tm_descr" class="howto"><?php esc_html_e( 'Choose whether Any or All of these taxonomy elements must match for the list to be used to send emails.', 'email-notice-wp-document-revisions' ); ?></p>
    30293094            </fieldset>
    30303095            <?php
     
    30353100            <div class="inline-edit-group wp-clearfix column-attach">
    30363101            <input type="checkbox" id="wpdr_en_attach" name="wpdr_en_attach" value= "">
    3037             <label class="alignleft" for="wpdr_en_attach"><?php esc_html_e( 'Document Attach :', 'wpdr-email-notice' ); ?>&nbsp;</label>
     3102            <label class="alignleft" for="wpdr_en_attach"><?php esc_html_e( 'Document Attach :', 'email-notice-wp-document-revisions' ); ?>&nbsp;</label>
    30383103            </div>
    30393104            </fieldset>
     
    30453110            <div class="inline-edit-group wp-clearfix column-pause">
    30463111            <input type="checkbox" id="wpdr_en_pause" name="wpdr_en_pause" value= "">
    3047             <label class="alignleft" for="wpdr_en_pause"><?php esc_html_e( 'Pause Mail :', 'wpdr-email-notice' ); ?>&nbsp;</label>
     3112            <label class="alignleft" for="wpdr_en_pause"><?php esc_html_e( 'Pause Mail :', 'email-notice-wp-document-revisions' ); ?>&nbsp;</label>
    30483113            </div>
    30493114            </fieldset>
     
    30723137            <div class="inline-edit-group wp-clearfix">
    30733138            <label class="inline-edit-tm-rule alignleft">
    3074             <span class="title"><?php esc_html_e( 'Match Rule :', 'wpdr-email-notice' ); ?>&nbsp;</span>
     3139            <span class="title"><?php esc_html_e( 'Match Rule :', 'email-notice-wp-document-revisions' ); ?>&nbsp;</span>
    30753140            <select name="tm_ruleb">
    3076             <option value="-1"><?php esc_html_e( '-- No Change --', 'wpdr-email-notice' ); ?></option>
    3077             <option value="0"><?php esc_html_e( 'Any taxonomy element', 'wpdr-email-notice' ); ?></option>
    3078             <option value="1"><?php esc_html_e( 'All taxonomy elements-', 'wpdr-email-notice' ); ?></option>
     3141            <option value="-1"><?php esc_html_e( '-- No Change --', 'email-notice-wp-document-revisions' ); ?></option>
     3142            <option value="0"><?php esc_html_e( 'Any taxonomy element', 'email-notice-wp-document-revisions' ); ?></option>
     3143            <option value="1"><?php esc_html_e( 'All taxonomy elements-', 'email-notice-wp-document-revisions' ); ?></option>
    30793144            </select>
    30803145            </label>
    30813146            </div> 
    3082             <p id="tm_descr" class="howto"><?php esc_html_e( 'Choose whether Any or All of these taxonomy elements must match for the lists to be used to send e-mails.', 'wpdr-email-notice' ); ?></p>
     3147            <p id="tm_descr" class="howto"><?php esc_html_e( 'Choose whether Any or All of these taxonomy elements must match for the lists to be used to send emails.', 'email-notice-wp-document-revisions' ); ?></p>
    30833148            </div>
    30843149            </fieldset>
     
    30913156            <div class="inline-edit-group wp-clearfix">
    30923157            <label class="inline-edit-attach alignleft">
    3093             <span class="title" style="width: auto;"><?php esc_html_e( 'Document Attach :', 'wpdr-email-notice' ); ?>&nbsp;</span>
     3158            <span class="title" style="width: auto;"><?php esc_html_e( 'Document Attach :', 'email-notice-wp-document-revisions' ); ?>&nbsp;</span>
    30943159            <select name="attachb">
    3095             <option value="-1"><?php esc_html_e( '-- No Change --', 'wpdr-email-notice' ); ?></option>
    3096             <option value="0"><?php esc_html_e( 'Do not Attach Document', 'wpdr-email-notice' ); ?></option>
    3097             <option value="1"><?php esc_html_e( 'Attach Document', 'wpdr-email-notice' ); ?></option>
     3160            <option value="-1"><?php esc_html_e( '-- No Change --', 'email-notice-wp-document-revisions' ); ?></option>
     3161            <option value="0"><?php esc_html_e( 'Do not Attach Document', 'email-notice-wp-document-revisions' ); ?></option>
     3162            <option value="1"><?php esc_html_e( 'Attach Document', 'email-notice-wp-document-revisions' ); ?></option>
    30983163            </select>
    30993164            </label>
     
    31093174            <div class="inline-edit-group wp-clearfix">
    31103175            <label class="inline-edit-pause alignleft">
    3111             <span class="title" style="width: auto;"><?php esc_html_e( 'Pause Mail :', 'wpdr-email-notice' ); ?>&nbsp;</span>
     3176            <span class="title" style="width: auto;"><?php esc_html_e( 'Pause Mail :', 'email-notice-wp-document-revisions' ); ?>&nbsp;</span>
    31123177            <select name="list_pauseb">
    3113             <option value="-1"><?php esc_html_e( '-- No Change --', 'wpdr-email-notice' ); ?></option>
    3114             <option value="0"><?php esc_html_e( 'Do not Pause Mail', 'wpdr-email-notice' ); ?></option>
    3115             <option value="1"><?php esc_html_e( 'Pause Mail', 'wpdr-email-notice' ); ?></option>
     3178            <option value="-1"><?php esc_html_e( '-- No Change --', 'email-notice-wp-document-revisions' ); ?></option>
     3179            <option value="0"><?php esc_html_e( 'Do not Pause Mail', 'email-notice-wp-document-revisions' ); ?></option>
     3180            <option value="1"><?php esc_html_e( 'Pause Mail', 'email-notice-wp-document-revisions' ); ?></option>
    31163181            </select>
    31173182            </label>
     
    33183383
    33193384        $messages['doc_ext_list'] = array(
    3320             1  => __( 'Document External List updated.', 'wpdr-email-notice' ),
    3321             2  => __( 'Custom field updated.', 'wpdr-email-notice' ),
    3322             3  => __( 'Custom field deleted.', 'wpdr-email-notice' ),
    3323             4  => __( 'Document External List updated.', 'wpdr-email-notice' ),
     3385            1  => __( 'Document External List updated.', 'email-notice-wp-document-revisions' ),
     3386            2  => __( 'Custom field updated.', 'email-notice-wp-document-revisions' ),
     3387            3  => __( 'Custom field deleted.', 'email-notice-wp-document-revisions' ),
     3388            4  => __( 'Document External List updated.', 'email-notice-wp-document-revisions' ),
    33243389            // phpcs:disable WordPress.Security.NonceVerification.Recommended
    33253390            // translators: %s is the revision ID.
    3326             5  => isset( $_GET['revision'] ) ? sprintf( __( 'Document External List restored to revision from %s', 'wpdr-email-notice' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
     3391            5  => isset( $_GET['revision'] ) ? sprintf( __( 'Document External List restored to revision from %s', 'email-notice-wp-document-revisions' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
    33273392            // phpcs:enable WordPress.Security.NonceVerification.Recommended
    3328             6  => __( 'Document External List published.', 'wpdr-email-notice' ),
    3329             7  => __( 'Document External List saved.', 'wpdr-email-notice' ),
    3330             8  => __( 'Document External List submitted.', 'wpdr-email-notice' ),
     3393            6  => __( 'Document External List published.', 'email-notice-wp-document-revisions' ),
     3394            7  => __( 'Document External List saved.', 'email-notice-wp-document-revisions' ),
     3395            8  => __( 'Document External List submitted.', 'email-notice-wp-document-revisions' ),
    33313396            // translators: %1$s is the date, %2$s is the preview link.
    3332             9  => sprintf( __( 'Document External List scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview document list</a>', 'wpdr-email-notice' ), date_i18n( sprintf( _x( '%1$s @ %2$s', '%1$s: date; %2$s: time', 'wpdr-email-notice' ), get_option( 'date_format' ), get_option( 'time_format' ) ), strtotime( $post->post_date ) ), esc_url( get_permalink( $post->ID ) ) ),
    3333             10 => __( 'Document External List draft updated.', 'wpdr-email-notice' ),
     3397            9  => sprintf( __( 'Document External List scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview document list</a>', 'email-notice-wp-document-revisions' ), date_i18n( sprintf( _x( '%1$s @ %2$s', '%1$s: date; %2$s: time', 'email-notice-wp-document-revisions' ), get_option( 'date_format' ), get_option( 'time_format' ) ), strtotime( $post->post_date ) ), esc_url( get_permalink( $post->ID ) ) ),
     3398            10 => __( 'Document External List draft updated.', 'email-notice-wp-document-revisions' ),
    33343399        );
    33353400
     
    33813446        $help = array(
    33823447            'doc_ext_list'      => array(
    3383                 __( 'Usage', 'wpdr-email-notice' )       =>
    3384                 '<p>' . __( 'This screen allows a user to define a list of email users that will receive an email (generally with the document attached) if any taxonomy value of the list matches that on the document requested.', 'wpdr-email-notice' ) . '</p><p>' .
    3385                 __( 'The List is available for this processing once the List is published.', 'wpdr-email-notice' ) . '</p><p>' .
    3386                 __( 'When editing is completed, simply click <code>Update</code> or <code>Publish</code> to save your changes.', 'wpdr-email-notice' ) . '</p><p>' .
    3387                 __( 'There are three main areas associated with the List:', 'wpdr-email-notice' ) . '</p><ul><li>' .
    3388                 __( 'List Attributes', 'wpdr-email-notice' ) . '</li><li>' .
    3389                 __( 'Document External User List', 'wpdr-email-notice' ) . '</li><li>' .
    3390                 __( 'Taxonomies', 'wpdr-email-notice' ) . '</li></ul>',
    3391                 __( 'List Attributes', 'wpdr-email-notice' ) =>
    3392                 '<p><strong>' . __( 'Taxonomy Match Rule', 'wpdr-email-notice' ) . '</strong></p><p>' .
    3393                 __( 'See the section <strong>Document Taxonomies</strong> for the process to determine whether an individual External List term matches that on the Document.', 'wpdr-email-notice' ) . '</p><p>' .
    3394                 __( 'This flag indicates whether all the terms on the External List or at least one must match those on the Document for the External List to be considered matching the Document.', 'wpdr-email-notice' ) . '</p><p><strong>' .
    3395                 __( 'Document Attach', 'wpdr-email-notice' ) . '</strong></p><p>' .
    3396                 __( 'This is a text area where optional comment or information can be made about the External List.', 'wpdr-email-notice' ) . '</p><p><strong><p><strong>' .
    3397                 __( 'Pause Mail', 'wpdr-email-notice' ) . '</strong></p><p>' .
    3398                 __( 'This allows the External List to be paused from matching Documents.', 'wpdr-email-notice' ) . '</p><p>' .
    3399                 __( 'It is provided so that an External List can be withdrawn from processing temporarily without simply changing its status.', 'wpdr-email-notice' ) . '</p><p><strong><p><strong>' .
    3400                 __( 'List Notes', 'wpdr-email-notice' ) . '</strong></p><p>' .
    3401                 '<p>' . __( 'This is a text area where optional comment or information can be held about the External List.', 'wpdr-email-notice' ) . '</p><p>' .
    3402                 __( 'Use is made of the excerpt field as it intended to be a simple aide-memoire to administrators of the External Lists.', 'wpdr-email-notice' ) . '</p>',
    3403                 __( 'Document External User List', 'wpdr-email-notice' ) =>
    3404                 '<p>' . __( 'This panel consists of two parts. First are the elements to create or edit an individual user record into the table of email addresses, followed by a searchable list of the email addresses associated with the list.', 'wpdr-email-notice' ) . '</p><p>' .
    3405                 __( 'Note that changes made to this User List are stored immediately. There is no separate process to update the data permanently or to cancel the edits made so far.', 'wpdr-email-notice' ) . '</p><p>' .
    3406                 __( 'This holds a list of individual users that will be sent an email when the External List is selected.', 'wpdr-email-notice' ) . '</p><p>' .
    3407                 __( 'Each user record will contain the user name and email address and an optional pause attribute that pauses the sending of emails to the user.', 'wpdr-email-notice' ) . '</p><p>' .
    3408                 __( 'This pause attribute allows the user details to be retained in the User List but notification emails will not be sent to the specific user.', 'wpdr-email-notice' ) . '</p>',
    3409                 __( 'Document Taxonomies', 'wpdr-email-notice' ) =>
    3410                 '<p>' . __( 'These taxonomies are generally shown on the right part of the screen. They are the taxonomies that can be applied to Documents.', 'wpdr-email-notice' ) . '</p><p>' .
    3411                 __( 'At least one taxonomy term is required to be entered, although several can be.', 'wpdr-email-notice' ) . '</p><p>' .
    3412                 __( 'If there are multiple terms on the External List then the matching rule will used to determine whether just one term is needed for the External List to be selected or all terms present must match for notification.', 'wpdr-email-notice' ) . '</p><p>' .
    3413                 __( 'For hierarchical taxonomies, a term on the External List is considered matched if the term on the Document is either the same as that on the External List or is a child of the External List term.', 'wpdr-email-notice' ) . '</p><p>' .
    3414                 __( 'Because of this, it is not permitted to publish an External List when the terms entered contains a term and its parent since the term matching process means that the child term would be redundant.', 'wpdr-email-notice' ) . '</p><p>' .
    3415                 __( 'A Document can have additional terms present, i.e. it is not necessary that all Document terms must match.', 'wpdr-email-notice' ) . '</p>',
    3416                 __( 'Publish', 'wpdr-email-notice' )     =>
    3417                 '<p>' . __( 'By default, Documents are only accessible to logged in users. Documents can be published, thus making them accessible to the world, by toggling their visibility in the "Publish" box in the top right corner. Any document marked as published will be accessible to anyone with the proper URL.', 'wpdr-email-notice' ) . '</p><p>' .
    3418                 __( 'Similarly these user lists need to be published for the list to be eligible to be selected for sending emails to its users.', 'wpdr-email-notice' ) . '</p>',
    3419                 __( 'Permissions', 'wpdr-email-notice' ) =>
    3420                 '<p>' . __( 'It is expected that the emailing administration process will be centralised with only a handful of External Lists being created. Therefore the full WordPress set of access permissions is not required.', 'wpdr-email-notice' ) . '</p><p>' .
    3421                 __( 'The permission <strong>edit_doc_ext_lists</strong> is supplied that allows users to create, update, and publish any External List.', 'wpdr-email-notice' ) . '</p><p>' .
    3422                 __( 'The permission <strong>delete_doc_ext_lists</strong> is supplied that allows users to delete any External List.', 'wpdr-email-notice' ) . '</p><p>' .
    3423                 __( 'Users with <strong>edit_documents</strong> permission can read any External List since its use is from within the Document editing screen.', 'wpdr-email-notice' ) . '</p>',
     3448                __( 'Usage', 'email-notice-wp-document-revisions' )       =>
     3449                '<p>' . __( 'This screen allows a user to define a list of email users that will receive an email (generally with the document attached) if any taxonomy value of the list matches that on the document requested.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3450                __( 'The List is available for this processing once the List is published.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3451                __( 'When editing is completed, simply click <code>Update</code> or <code>Publish</code> to save your changes.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3452                __( 'There are three main areas associated with the List:', 'email-notice-wp-document-revisions' ) . '</p><ul><li>' .
     3453                __( 'List Attributes', 'email-notice-wp-document-revisions' ) . '</li><li>' .
     3454                __( 'Document External User List', 'email-notice-wp-document-revisions' ) . '</li><li>' .
     3455                __( 'Taxonomies', 'email-notice-wp-document-revisions' ) . '</li></ul>',
     3456                __( 'List Attributes', 'email-notice-wp-document-revisions' ) =>
     3457                '<p><strong>' . __( 'Taxonomy Match Rule', 'email-notice-wp-document-revisions' ) . '</strong></p><p>' .
     3458                __( 'See the section <strong>Document Taxonomies</strong> for the process to determine whether an individual External List term matches that on the Document.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3459                __( 'This flag indicates whether all the terms on the External List or at least one must match those on the Document for the External List to be considered matching the Document.', 'email-notice-wp-document-revisions' ) . '</p><p><strong>' .
     3460                __( 'Document Attach', 'email-notice-wp-document-revisions' ) . '</strong></p><p>' .
     3461                __( 'This is a text area where optional comment or information can be made about the External List.', 'email-notice-wp-document-revisions' ) . '</p><p><strong><p><strong>' .
     3462                __( 'Pause Mail', 'email-notice-wp-document-revisions' ) . '</strong></p><p>' .
     3463                __( 'This allows the External List to be paused from matching Documents.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3464                __( 'It is provided so that an External List can be withdrawn from processing temporarily without simply changing its status.', 'email-notice-wp-document-revisions' ) . '</p><p><strong><p><strong>' .
     3465                __( 'List Notes', 'email-notice-wp-document-revisions' ) . '</strong></p><p>' .
     3466                '<p>' . __( 'This is a text area where optional comment or information can be held about the External List.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3467                __( 'Use is made of the excerpt field as it intended to be a simple aide-memoire to administrators of the External Lists.', 'email-notice-wp-document-revisions' ) . '</p>',
     3468                __( 'Document External User List', 'email-notice-wp-document-revisions' ) =>
     3469                '<p>' . __( 'This panel consists of two parts. First are the elements to create or edit an individual user record into the table of email addresses, followed by a searchable list of the email addresses associated with the list.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3470                __( 'Note that changes made to this User List are stored immediately. There is no separate process to update the data permanently or to cancel the edits made so far.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3471                __( 'This holds a list of individual users that will be sent an email when the External List is selected.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3472                __( 'Each user record will contain the user name and email address and an optional pause attribute that pauses the sending of emails to the user.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3473                __( 'This pause attribute allows the user details to be retained in the User List but notification emails will not be sent to the specific user.', 'email-notice-wp-document-revisions' ) . '</p>',
     3474                __( 'Document Taxonomies', 'email-notice-wp-document-revisions' ) =>
     3475                '<p>' . __( 'These taxonomies are generally shown on the right part of the screen. They are the taxonomies that can be applied to Documents.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3476                __( 'At least one taxonomy term is required to be entered, although several can be.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3477                __( 'If there are multiple terms on the External List then the matching rule will used to determine whether just one term is needed for the External List to be selected or all terms present must match for notification.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3478                __( 'For hierarchical taxonomies, a term on the External List is considered matched if the term on the Document is either the same as that on the External List or is a child of the External List term.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3479                __( 'Because of this, it is not permitted to publish an External List when the terms entered contains a term and its parent since the term matching process means that the child term would be redundant.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3480                __( 'A Document can have additional terms present, i.e. it is not necessary that all Document terms must match.', 'email-notice-wp-document-revisions' ) . '</p>',
     3481                __( 'Publish', 'email-notice-wp-document-revisions' )     =>
     3482                '<p>' . __( 'By default, Documents are only accessible to logged in users. Documents can be published, thus making them accessible to the world, by toggling their visibility in the "Publish" box in the top right corner. Any document marked as published will be accessible to anyone with the proper URL.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3483                __( 'Similarly these user lists need to be published for the list to be eligible to be selected for sending emails to its users.', 'email-notice-wp-document-revisions' ) . '</p>',
     3484                __( 'Permissions', 'email-notice-wp-document-revisions' ) =>
     3485                '<p>' . __( 'It is expected that the emailing administration process will be centralised with only a handful of External Lists being created. Therefore the full WordPress set of access permissions is not required.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3486                __( 'The permission <strong>edit_doc_ext_lists</strong> is supplied that allows users to create, update, and publish any External List.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3487                __( 'The permission <strong>delete_doc_ext_lists</strong> is supplied that allows users to delete any External List.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3488                __( 'Users with <strong>edit_documents</strong> permission can read any External List since its use is from within the Document editing screen.', 'email-notice-wp-document-revisions' ) . '</p>',
    34243489            ),
    34253490            'edit-doc_ext_list' => array(
    3426                 __( 'Document External Lists', 'wpdr-email-notice' ) =>
    3427                 '<p>' . __( 'Below is a list of all Document External Lists used to send email notifications to external users on an update to a Document. Click the list title to edit the document list.', 'wpdr-email-notice' ) . '</p><p>' .
    3428                 __( 'To add a new Document External List, click <strong>Add Document External List</strong> at the top of the screen.', 'wpdr-email-notice' ) . '</p><p>' .
    3429                 __( 'Note that whilst this functionality is primarily intended for people that are not users of this site, any email address can be used.', 'wpdr-email-notice' ) . '</p>',
     3491                __( 'Document External Lists', 'email-notice-wp-document-revisions' ) =>
     3492                '<p>' . __( 'Below is a list of all Document External Lists used to send email notifications to external users on an update to a Document. Click the list title to edit the document list.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3493                __( 'To add a new Document External List, click <strong>Add Document External List</strong> at the top of the screen.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3494                __( 'Note that whilst this functionality is primarily intended for people that are not users of this site, any email address can be used.', 'email-notice-wp-document-revisions' ) . '</p>',
    34303495            ),
    34313496            'document'          => array(
    3432                 __( 'Document Email Notifications', 'wpdr-email-notice' ) =>
    3433                 '<p>' . __( 'Notification emails can be sent (or re-sent) for published Documents by clicking on the button "Send notification emails" (to internal users) or "Send external emails" (to  external users).', 'wpdr-email-notice' ) . '</p><p>' .
    3434                 __( 'Internal users are those with user-ids on the site. They can decide whether they wish to receive these notifications or not and whether a copy of the document should be attached the mail.', 'wpdr-email-notice' ) . '&nbsp;' .
    3435                 __( 'This data can also be updated by Administrators (also using Bulk Editing functions).', 'wpdr-email-notice' ) . '</p><p>' .
    3436                 __( 'External users normally do not have a sign-on. Notifications are based on the concept of External Lists. A list will contain one or more taxonomy terms that will be matched again the document terms.', 'wpdr-email-notice' ) . '</p><p>' .
    3437                 __( 'Every published External List (except those marked as Paused) will be tested to see whether its terms match those on the Document.', 'wpdr-email-notice' ) . '</p><p>' .
    3438                 __( 'Those that match are listed below the button. If the user can maintain the External List, then they can choose to not send the mail to a List by unchecking the List before sending the Notification.', 'wpdr-email-notice' ) . '</p><p>' .
    3439                 __( 'A term on the list matches with one on the Document if they are same or, for hierarchical taxonomies, the List term is a parent of the Document term.', 'wpdr-email-notice' ) . '</p><p>' .
    3440                 __( 'If there are several terms on the List, it can be set so that the List is matched if either any term matches or all terms must match.', 'wpdr-email-notice' ) . '</p><p>' .
    3441                 __( 'Potentially several Lists may match the Document. Emails will be sent to every user (except those individually paused) on each list that is matched.', 'wpdr-email-notice' ) . '</p>',
    3442                 __( 'Document Email Extra Text', 'wpdr-email-notice' ) =>
    3443                 '<p>' . __( 'You can include some message-specific additional text with the notification emails.', 'wpdr-email-notice' ) . '</p><p>' .
     3497                __( 'Document Email Notifications', 'email-notice-wp-document-revisions' ) =>
     3498                '<p>' . __( 'Notification emails can be sent (or re-sent) for published Documents by clicking on the button "Send notification emails" (to internal users) or "Send external emails" (to  external users).', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3499                __( 'Internal users are those with user-ids on the site. They can decide whether they wish to receive these notifications or not and whether a copy of the document should be attached the mail.', 'email-notice-wp-document-revisions' ) . '&nbsp;' .
     3500                __( 'This data can also be updated by Administrators (also using Bulk Editing functions).', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3501                __( 'External users normally do not have a sign-on. Notifications are based on the concept of External Lists. A list will contain one or more taxonomy terms that will be matched again the document terms.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3502                __( 'Every published External List (except those marked as Paused) will be tested to see whether its terms match those on the Document.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3503                __( 'Those that match are listed below the button. If the user can maintain the External List, then they can choose to not send the mail to a List by unchecking the List before sending the Notification.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3504                __( 'A term on the List matches with one on the Document if they are same or, for hierarchical taxonomies, the List term is a parent of the Document term.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3505                __( 'When there are several terms on the List, a rule can be set so that the List is matched if either any term matches or all terms on the List must match.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3506                __( 'Potentially several Lists may match the Document. Emails will be sent to every user (except those individually paused) on each list that is matched.', 'email-notice-wp-document-revisions' ) . '</p>',
     3507                __( 'Document Email Extra Text', 'email-notice-wp-document-revisions' ) =>
     3508                '<p>' . __( 'You can include some message-specific additional text with the notification emails.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
    34443509                // phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment
    3445                 __( 'The template used (Internal or External) has to contain the tag "%extra%" in it to use this capability.', 'wpdr-email-notice' ) . '</p><p>' .
    3446                 __( 'A checkbox which is initially disabled with label "Add Extra Text" is placed next to each Send button.', 'wpdr-email-notice' ) . '</p><p>' .
    3447                 __( 'On entering some text in the text field, these checkboxes will become active if the template allows it.', 'wpdr-email-notice' ) . '</p><p>' .
    3448                 __( 'The extra text will only be included if the corresponding checkbox is checked when the send button is clicked. It can contains html tags to better format the output.', 'wpdr-email-notice' ) . '</p>',
     3510                __( 'The template used (Internal or External) has to contain the tag "%extra%" in it to use this capability.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3511                __( 'If neither template contains the tag then the various options are not shown.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3512                __( 'A checkbox which is initially disabled with label "Add Extra Text" is placed next to each Send button.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3513                __( 'On entering some text in the text field, the checkboxes will become active if the template allows it.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3514                __( 'The extra text will only be included if the corresponding checkbox is checked when the send button is clicked.', 'email-notice-wp-document-revisions' ) . '</p><p>' .
     3515                __( 'The Extra text can contains html tags to better format the output.', 'email-notice-wp-document-revisions' ) . '</p>',
    34493516            ),
    34503517        );
     
    34903557        }
    34913558        if ( $err_exists ) {
    3492             $messages = '<p>' . esc_html__( 'There are no terms defined for matching with this list. Please add at least one.', 'wpdr-email-notice' ) . '</p>';
     3559            $messages = '<p>' . esc_html__( 'There are no terms defined for matching with this list. Please add at least one.', 'email-notice-wp-document-revisions' ) . '</p>';
    34933560        }
    34943561        // Are there users.
     
    35033570        }
    35043571        if ( 0 === count( $users ) ) {
    3505             $messages  .= '<p>' . esc_html__( 'There are no addressees defined for matching with this list. Please add at least one.', 'wpdr-email-notice' ) . '</p>';
     3572            $messages  .= '<p>' . esc_html__( 'There are no addressees defined for matching with this list. Please add at least one.', 'email-notice-wp-document-revisions' ) . '</p>';
    35063573            $err_exists = true;
    35073574        }
     
    35213588            $oclass     = 'notice-error';
    35223589            if ( 0 === $err[0] ) {
    3523                 $messages .= '<p>' . esc_html__( 'There are no terms defined for matching with this list. Please add at least one.', 'wpdr-email-notice' ) . '</p>';
     3590                $messages .= '<p>' . esc_html__( 'There are no terms defined for matching with this list. Please add at least one.', 'email-notice-wp-document-revisions' ) . '</p>';
    35243591            } else {
    35253592                $tax_l  = get_taxonomy( $err[0] )->label;
     
    35273594                $child  = esc_attr( get_term( $err[2], $err[0] )->name );
    35283595                // translators: %1$s is the taxonomy name, %2$s is the parent term, %2$s is the child term.
    3529                 $messages .= '<p>' . sprintf( __( 'Taxonomy: %1$s. Cannot have both parent (%2$s) and child terms (%3$s). Remove child term as parent term will match.', 'wpdr-email-notice' ), $tax_l, $parent, $child ) . '</p>';
     3596                $messages .= '<p>' . sprintf( __( 'Taxonomy: %1$s. Cannot have both parent (%2$s) and child terms (%3$s). Remove child term as parent term will match.', 'email-notice-wp-document-revisions' ), $tax_l, $parent, $child ) . '</p>';
    35303597                // make sure js methods have been loaded in case we add something after.
    35313598                if ( ! self::$js_loaded ) {
     
    35503617                    } else {
    35513618                        // translators: %s is the taxonomy name.
    3552                         $messages .= '<p>' . sprintf( __( 'Taxonomy: %s. You must redo your non-hierarchical changes manually.', 'wpdr-email-notice' ), $tax_o->label );
     3619                        $messages .= '<p>' . sprintf( __( 'Taxonomy: %s. You must redo your non-hierarchical changes manually.', 'email-notice-wp-document-revisions' ), $tax_o->label );
    35533620                        foreach ( $terms as $term ) {
    35543621                            if ( $term > 0 ) {
    35553622                                // term added, must be checked.
    35563623                                // translators: %1$s is the taxonomy term name.
    3557                                 $messages .= '<br />&nbsp;' . sprintf( __( 'Add Term: %1$s ', 'wpdr-email-notice' ), get_term( $term, $tax )->name );
     3624                                $messages .= '<br />&nbsp;' . sprintf( __( 'Add Term: %1$s ', 'email-notice-wp-document-revisions' ), get_term( $term, $tax )->name );
    35583625                            } else {
    35593626                                // term removed, must be unchecked.
    35603627                                // translators: %1$s is the taxonomy term name.
    3561                                 $messages .= '<br />&nbsp;' . sprintf( __( 'Remove Term: %1$s ', 'wpdr-email-notice' ), get_term( -$term, $tax )->name );
     3628                                $messages .= '<br />&nbsp;' . sprintf( __( 'Remove Term: %1$s ', 'email-notice-wp-document-revisions' ), get_term( -$term, $tax )->name );
    35623629                            }
    35633630                        }
  • email-notice-wp-document-revisions/trunk/includes/class-wpdr-en-all-users-bulk-action.php

    r2967036 r3276769  
    99// No direct access allowed to plugin php file.
    1010if ( ! defined( 'ABSPATH' ) ) {
    11     die( esc_html__( 'You are not allowed to call this file directly.', 'wpdr-email-notice' ) );
     11    die( esc_html__( 'You are not allowed to call this file directly.', 'email-notice-wp-document-revisions' ) );
    1212}
    1313
     
    3939     */
    4040    public function custom_bulk_action_option( $bulk_actions ) {
    41         $bulk_actions['wpdr_subscribe']   = __( 'Subscribe to Document Email notifications', 'wpdr-email-notice' );
    42         $bulk_actions['wpdr_unsubscribe'] = __( 'Unsubscribe from Document Email notifications', 'wpdr-email-notice' );
     41        $bulk_actions['wpdr_subscribe']   = __( 'Subscribe to Document Email notifications', 'email-notice-wp-document-revisions' );
     42        $bulk_actions['wpdr_unsubscribe'] = __( 'Unsubscribe from Document Email notifications', 'email-notice-wp-document-revisions' );
    4343        return $bulk_actions;
    4444    }
     
    6767                foreach ( $user_ids as $user_id ) {
    6868                    if ( ! $this->perform_subscribe( $user_id ) ) {
    69                         wp_die( esc_html__( 'Error subscribing users.', 'wpdr-email-notice' ) );
     69                        wp_die( esc_html__( 'Error subscribing users.', 'email-notice-wp-document-revisions' ) );
    7070                    }
    7171                    ++$subscribed;
     
    7676                foreach ( $user_ids as $user_id ) {
    7777                    if ( ! $this->perform_unsubscribe( $user_id ) ) {
    78                         wp_die( esc_html__( 'Error unsubscribing users.', 'wpdr-email-notice' ) );
     78                        wp_die( esc_html__( 'Error unsubscribing users.', 'email-notice-wp-document-revisions' ) );
    7979                    }
    8080                    ++$subscribed;
  • email-notice-wp-document-revisions/trunk/includes/class-wpdr-en-ext-log-table.php

    r3212640 r3276769  
    3030            $args,
    3131            array(
    32                 'singular' => __( 'External Notification email sent', 'wpdr-email-notice' ),    // singular name of the listed records.
    33                 'plural'   => __( 'External Notification emails sent', 'wpdr-email-notice' ),   // plural name of the listed records.
     32                'singular' => __( 'External Notification email sent', 'email-notice-wp-document-revisions' ),    // singular name of the listed records.
     33                'plural'   => __( 'External Notification emails sent', 'email-notice-wp-document-revisions' ),   // plural name of the listed records.
    3434                'ajax'     => false,
    3535                'screen'   => null,
     
    4848        $columns = array(
    4949            'id'             => '#',
    50             'post_title'     => __( 'Post Title', 'wpdr-email-notice' ),
    51             'list_title'     => __( 'List Title', 'wpdr-email-notice' ),
    52             'time_mail_sent' => __( 'E-mail sent', 'wpdr-email-notice' ),
    53             'user_name'      => __( 'User Name', 'wpdr-email-notice' ),
    54             'user_email'     => __( 'User E-mail', 'wpdr-email-notice' ),
    55             'status'         => __( 'Status', 'wpdr-email-notice' ),
     50            'post_title'     => __( 'Post Title', 'email-notice-wp-document-revisions' ),
     51            'list_title'     => __( 'List Title', 'email-notice-wp-document-revisions' ),
     52            'time_mail_sent' => __( 'Email sent', 'email-notice-wp-document-revisions' ),
     53            'user_name'      => __( 'User Name', 'email-notice-wp-document-revisions' ),
     54            'user_email'     => __( 'User Email', 'email-notice-wp-document-revisions' ),
     55            'status'         => __( 'Status', 'email-notice-wp-document-revisions' ),
    5656        );
    5757        return $columns;
     
    119119        }
    120120        $actions = array(
    121             'view' => '<button onclick="wpdr_en_extra( ' . $item['id'] . ' )">' . __( 'Extra Text', 'wpdr-email-notice' ) . '</button>&nbsp;&nbsp;' .
     121            'view' => '<button onclick="wpdr_en_extra( ' . $item['id'] . ' )">' . __( 'Extra Text', 'email-notice-wp-document-revisions' ) . '</button>&nbsp;&nbsp;' .
    122122                    '<textarea id="extra_' . $item['id'] . '" onclick="wpdr_en_extra( ' . $item['id'] . ' )" rows="3" cols="40" style="display: none">' .
    123123                    $item['extra_text'] . '</textarea>',
     
    220220     */
    221221    public function no_items() {
    222         esc_html_e( 'No e-mails sent out, yet.', 'wpdr-email-notice' );
     222        esc_html_e( 'No emails sent out, yet.', 'email-notice-wp-document-revisions' );
    223223    }
    224224
  • email-notice-wp-document-revisions/trunk/includes/class-wpdr-en-ext-user-table.php

    r3140478 r3276769  
    6060            $args,
    6161            array(
    62                 'singular' => __( 'External User Address', 'wpdr-email-notice' ),    // singular name of the listed records.
    63                 'plural'   => __( 'External User Addresses', 'wpdr-email-notice' ),   // plural name of the listed records.
     62                'singular' => __( 'External User Address', 'email-notice-wp-document-revisions' ),    // singular name of the listed records.
     63                'plural'   => __( 'External User Addresses', 'email-notice-wp-document-revisions' ),   // plural name of the listed records.
    6464                'ajax'     => false,
    6565                'screen'   => 'doc_ext_list',
     
    102102        $columns = array(
    103103            'rec_num'   => '#',
    104             'user_name' => __( 'User Name', 'wpdr-email-notice' ),
    105             'email'     => __( 'E-mail Address', 'wpdr-email-notice' ),
    106             'pause'     => __( 'Pause Mail', 'wpdr-email-notice' ),
     104            'user_name' => __( 'User Name', 'email-notice-wp-document-revisions' ),
     105            'email'     => __( 'Email Address', 'email-notice-wp-document-revisions' ),
     106            'pause'     => __( 'Pause Mail', 'email-notice-wp-document-revisions' ),
    107107        );
    108108        return $columns;
     
    151151    public function column_rec_num( $item ) {
    152152        $actions = array(
    153             'edit'   => '<button onclick=\'wpdr_en_edit( "' . $item['user_name'] . '", "' . $item['email'] . '", "' . $item['pause'] . '" )\'>' . __( 'Edit', 'wpdr-email-notice' ) . '</button>',
    154             'delete' => sprintf( '<button onclick="wpdr_en_delete(%s, %s)">' . __( 'Delete', 'wpdr-email-notice' ) . '</button>', self::$post_id, $item['rec_num'] ),
     153            'edit'   => '<button onclick=\'wpdr_en_edit( "' . $item['user_name'] . '", "' . $item['email'] . '", "' . $item['pause'] . '" )\'>' . __( 'Edit', 'email-notice-wp-document-revisions' ) . '</button>',
     154            'delete' => sprintf( '<button onclick="wpdr_en_delete(%s, %s)">' . __( 'Delete', 'email-notice-wp-document-revisions' ) . '</button>', self::$post_id, $item['rec_num'] ),
    155155        );
    156156
     
    261261    public function no_items() {
    262262        if ( self::$no_addr ) {
    263             esc_html_e( 'No addressees created yet.', 'wpdr-email-notice' );
     263            esc_html_e( 'No addressees created yet.', 'email-notice-wp-document-revisions' );
    264264        } else {
    265             esc_html_e( 'No matching addressees found.', 'wpdr-email-notice' );
     265            esc_html_e( 'No matching addressees found.', 'email-notice-wp-document-revisions' );
    266266        }
    267267    }
  • email-notice-wp-document-revisions/trunk/includes/class-wpdr-en-user-log-table.php

    r3212640 r3276769  
    99// No direct access allowed to plugin php file.
    1010if ( ! defined( 'ABSPATH' ) ) {
    11     die( esc_html__( 'You are not allowed to call this file directly.', 'wpdr-email-notice' ) );
     11    die( esc_html__( 'You are not allowed to call this file directly.', 'email-notice-wp-document-revisions' ) );
    1212}
    1313
     
    3535            $args,
    3636            array(
    37                 'singular' => __( 'Notification email sent', 'wpdr-email-notice' ),    // singular name of the listed records.
    38                 'plural'   => __( 'Notification emails sent', 'wpdr-email-notice' ),   // plural name of the listed records.
     37                'singular' => __( 'Notification email sent', 'email-notice-wp-document-revisions' ),    // singular name of the listed records.
     38                'plural'   => __( 'Notification emails sent', 'email-notice-wp-document-revisions' ),   // plural name of the listed records.
    3939                'ajax'     => false,
    4040                'screen'   => null,
     
    5353        $columns = array(
    5454            'id'                => '#',
    55             'post_title'        => __( 'Post Title', 'wpdr-email-notice' ),
    56             'time_mail_sent'    => __( 'E-mail sent', 'wpdr-email-notice' ),
    57             'user_display_name' => __( 'User Name', 'wpdr-email-notice' ),
    58             'user_email'        => __( 'User E-mail', 'wpdr-email-notice' ),
    59             'status'            => __( 'Status', 'wpdr-email-notice' ),
     55            'post_title'        => __( 'Post Title', 'email-notice-wp-document-revisions' ),
     56            'time_mail_sent'    => __( 'Email sent', 'email-notice-wp-document-revisions' ),
     57            'user_display_name' => __( 'User Name', 'email-notice-wp-document-revisions' ),
     58            'user_email'        => __( 'User Email', 'email-notice-wp-document-revisions' ),
     59            'status'            => __( 'Status', 'email-notice-wp-document-revisions' ),
    6060        );
    6161        return $columns;
     
    120120        }
    121121        $actions = array(
    122             'view' => '<button onclick="wpdr_en_extra( ' . $item['id'] . ' )">' . __( 'Extra Text', 'wpdr-email-notice' ) . '</button>&nbsp;&nbsp;' .
     122            'view' => '<button onclick="wpdr_en_extra( ' . $item['id'] . ' )">' . __( 'Extra Text', 'email-notice-wp-document-revisions' ) . '</button>&nbsp;&nbsp;' .
    123123                    '<textarea id="extra_' . $item['id'] . '" onclick="wpdr_en_extra( ' . $item['id'] . ' )" rows="3" cols="40" style="display: none">' .
    124124                    $item['extra_text'] . '</textarea>',
     
    225225     */
    226226    public function no_items() {
    227         esc_html_e( 'No e-mails sent out, yet.', 'wpdr-email-notice' );
     227        esc_html_e( 'No emails sent out, yet.', 'email-notice-wp-document-revisions' );
    228228    }
    229229
  • email-notice-wp-document-revisions/trunk/js/wpdr-email-notice.js

    r3212640 r3276769  
    4242        }
    4343
    44         //Send e-mails
     44        //Send emails
    4545        jQuery.ajax({
    4646            type     : 'POST',
     
    126126        }
    127127
    128         //Send e-mails
     128        //Send emails
    129129        jQuery.ajax({
    130130            type     : 'POST',
  • email-notice-wp-document-revisions/trunk/js/wpdr-en-address.js

    r3140478 r3276769  
    2020        success  : function(response) {
    2121            if (response.error) {
    22                 document.getElementById('wpdr-en-message').innerHTML=response.error_msg + ' ( ' + response.error_code + ' )';                   
     22                document.getElementById('wpdr-en-message').innerHTML = response.error_msg + ' ( ' + response.error_code + ' )';                 
    2323            } else {                   
    2424                //Emails sent successfully                 
     
    5757        success  : function(response) {
    5858            if (response.error) {
    59                 document.getElementById('wpdr-en-message').innerHTML=response.error_msg + ' ( ' + response.error_code + ' )';                   
     59                document.getElementById('wpdr-en-message').innerHTML = response.error_msg + ' ( ' + response.error_code + ' )';                 
    6060            } else {                   
    6161                //Emails sent successfully                 
  • email-notice-wp-document-revisions/trunk/languages/wpdr-email-notice.pot

    r3212640 r3276769  
    1 # Copyright (C) 2024 Email Notice WP Document Revisions 3.1
    2 # This file is distributed under the same license as the Email Notice WP Document Revisions 3.1 package.
     1# Copyright (C) 2025 Email Notice WP Document Revisions 3.2
     2# This file is distributed under the same license as the Email Notice WP Document Revisions 3.2 package.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Email Notice WP Document Revisions 3.1\n"
     5"Project-Id-Version: Email Notice WP Document Revisions 3.2\n"
    66"MIME-Version: 1.0\n"
    77"Content-Type: text/plain; charset=UTF-8\n"
    88"Content-Transfer-Encoding: 8bit\n"
    9 "POT-Creation-Date: 2024-12-24 12:03+0000\n"
     9"POT-Creation-Date: 2025-04-18 11:31+0000\n"
    1010"X-Poedit-Basepath: ..\n"
    1111"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
     
    1515"Plural-Forms: nplurals=2; plural=(n != 1);\n"
    1616
    17 #: includes/class-wpdr-email-notice.php:11, includes/class-wpdr-en-all-users-bulk-action.php:11, includes/class-wpdr-en-user-log-table.php:11
    18 msgid "You are not allowed to call this file directly."
    19 msgstr ""
    20 
    21 #: includes/class-wpdr-email-notice.php:292
    22 msgctxt "post type general name"
    23 msgid "Document External Lists"
    24 msgstr ""
    25 
    26 #: includes/class-wpdr-email-notice.php:293
    27 msgctxt "post type singular name"
    28 msgid "Document External List"
    29 msgstr ""
    30 
    31 #: includes/class-wpdr-email-notice.php:294
    32 msgid "Add Document External List"
    33 msgstr ""
    34 
    35 #: includes/class-wpdr-email-notice.php:295
    36 msgid "Add New Document External List"
    37 msgstr ""
    38 
    39 #: includes/class-wpdr-email-notice.php:296
    40 msgid "Edit Document External List"
    41 msgstr ""
    42 
    43 #: includes/class-wpdr-email-notice.php:297
    44 msgid "New Document External List"
    45 msgstr ""
    46 
    47 #: includes/class-wpdr-email-notice.php:298
    48 msgid "View Document External List"
    49 msgstr ""
    50 
    51 #: includes/class-wpdr-email-notice.php:299
    52 msgid "View Document External Lists"
    53 msgstr ""
    54 
    55 #: includes/class-wpdr-email-notice.php:300
    56 msgid "Search Document External Lists"
    57 msgstr ""
    58 
    59 #: includes/class-wpdr-email-notice.php:301
    60 msgid "No Document External List found"
    61 msgstr ""
    62 
    63 #: includes/class-wpdr-email-notice.php:302
    64 msgid "No Document External Lists found in Trash"
    65 msgstr ""
    66 
    67 #: includes/class-wpdr-email-notice.php:304
    68 msgid "Document Emails"
    69 msgstr ""
    70 
    71 #: includes/class-wpdr-email-notice.php:305
    72 msgid "All Document External Lists"
    73 msgstr ""
    74 
    75 #: includes/class-wpdr-email-notice.php:386, includes/class-wpdr-email-notice.php:849
    76 msgid "Document Email Settings"
    77 msgstr ""
    78 
    79 #: includes/class-wpdr-email-notice.php:387
    80 msgid "Email From"
    81 msgstr ""
    82 
    83 #: includes/class-wpdr-email-notice.php:388
    84 msgid "Email Address"
    85 msgstr ""
    86 
    87 #: includes/class-wpdr-email-notice.php:392
    88 msgid "Document Email Settings - "
    89 msgstr ""
    90 
    91 #: includes/class-wpdr-email-notice.php:392
    92 msgid "Notifications"
    93 msgstr ""
    94 
    95 #: includes/class-wpdr-email-notice.php:393
    96 msgid "Internal Notice mode"
    97 msgstr ""
    98 
    99 #: includes/class-wpdr-email-notice.php:394
    100 msgid "Notify internal users about"
    101 msgstr ""
    102 
    103 #: includes/class-wpdr-email-notice.php:395
    104 msgid "Notification e-mail subject"
    105 msgstr ""
    106 
    107 #: includes/class-wpdr-email-notice.php:396
    108 msgid "Internal Notice e-mail content"
    109 msgstr ""
    110 
    111 #: includes/class-wpdr-email-notice.php:397
    112 msgid "External Notice e-mail content"
    113 msgstr ""
    114 
    115 #: includes/class-wpdr-email-notice.php:399
    116 msgid "Notification e-mail repeat"
    117 msgstr ""
    118 
    119 #. translators: For this group, text surroundedby % symbols (like %recipient_name%) should not be translated.
    120 #: includes/class-wpdr-email-notice.php:512, includes/class-wpdr-email-notice.php:517
    121 msgid "Dear %recipient_name%,<br/><br/>"
    122 msgstr ""
    123 
    124 #: includes/class-wpdr-email-notice.php:513, includes/class-wpdr-email-notice.php:518
    125 msgid "A new document is published. Check it out!<br/><br/><strong>%title_with_permalink%</strong><br/>%words_50%%extra%%repeat%<br/>"
    126 msgstr ""
    127 
    128 #. translators: %s is the link address of the user's profile. Do not translate.
    129 #: includes/class-wpdr-email-notice.php:515
    130 msgid "<small>In case you do not want to receive this kind of notification you can turn it off in your <a href=\"%s\">profile</a>.</small>"
    131 msgstr ""
    132 
    133 #: includes/class-wpdr-email-notice.php:516
    134 msgid "<small><br/>Also go there if you wish to change whether you will receive the document as an attachment.</small>"
    135 msgstr ""
    136 
    137 #: includes/class-wpdr-email-notice.php:519
    138 msgid "<small>In case you do not want to receive this kind of notification you can reply with the message \"Unsubscribe\".</small>"
    139 msgstr ""
    140 
    141 #: includes/class-wpdr-email-notice.php:520
    142 msgid "<p>This document has previously been sent to you %num% time(s), with the latest sent on %last_date%.</p>"
    143 msgstr ""
    144 
    145 #: includes/class-wpdr-email-notice.php:563, includes/class-wpdr-email-notice.php:1634
    146 msgid "Add Address to List"
    147 msgstr ""
    148 
    149 #: includes/class-wpdr-email-notice.php:564
    150 msgid "Edit existing Address"
    151 msgstr ""
    152 
    153 #: includes/class-wpdr-email-notice.php:546, includes/class-wpdr-email-notice.php:1037
    154 msgid "Sending email notifications..."
    155 msgstr ""
    156 
    157 #: includes/class-wpdr-email-notice.php:547
    158 msgid "Error sending emails."
    159 msgstr ""
    160 
    161 #: includes/class-wpdr-email-notice.php:548, includes/class-wpdr-email-notice.php:997, includes/class-wpdr-email-notice.php:991
    162 msgid "Re-send notification email(s)"
    163 msgstr ""
    164 
    165 #: includes/class-wpdr-email-notice.php:549, includes/class-wpdr-email-notice.php:2857
    166 msgid "email(s) out of"
    167 msgstr ""
    168 
    169 #: includes/class-wpdr-email-notice.php:550
    170 msgid "notification(s) sent. Check"
    171 msgstr ""
    172 
    173 #: includes/class-wpdr-email-notice.php:551, includes/class-wpdr-email-notice.php:2857
    174 msgid "sent with"
    175 msgstr ""
    176 
    177 #: includes/class-wpdr-email-notice.php:552
    178 msgid "log issues. Check"
    179 msgstr ""
    180 
    181 #: includes/class-wpdr-email-notice.php:553
    182 msgid "log"
    183 msgstr ""
    184 
    185 #: includes/class-wpdr-email-notice.php:554, includes/class-wpdr-email-notice.php:2862, includes/class-wpdr-email-notice.php:2857, includes/class-wpdr-email-notice.php:2853
    186 msgid "for details."
    187 msgstr ""
    188 
    189 #: includes/class-wpdr-email-notice.php:616
    190 msgid "By default all notification e-mails received from \"WordPress\" < wordpress@"
    191 msgstr ""
    192 
    193 #: includes/class-wpdr-email-notice.php:616
    194 msgid "You can change these below."
    195 msgstr ""
    196 
    197 #: includes/class-wpdr-email-notice.php:654
    198 msgid "Tags available to make e-mail subject and/or content dynamic:"
    199 msgstr ""
    200 
    201 #: includes/class-wpdr-email-notice.php:656
    202 msgid "means title of the post"
    203 msgstr ""
    204 
    205 #: includes/class-wpdr-email-notice.php:657
    206 msgid "means URL of the post"
    207 msgstr ""
    208 
    209 #: includes/class-wpdr-email-notice.php:658
    210 msgid "means URL with title of the post"
    211 msgstr ""
    212 
    213 #: includes/class-wpdr-email-notice.php:659
    214 msgid "means the name of the post author"
    215 msgstr ""
    216 
    217 #: includes/class-wpdr-email-notice.php:660
    218 msgid "means excerpt of the post"
    219 msgstr ""
    220 
    221 #: includes/class-wpdr-email-notice.php:660
    222 msgid "Only available to those who can edit the document"
    223 msgstr ""
    224 
    225 #: includes/class-wpdr-email-notice.php:661
    226 msgid "means the first n (must be an integer number) number of word(s) extracted from the post"
    227 msgstr ""
    228 
    229 #: includes/class-wpdr-email-notice.php:662
    230 msgid "means display name of the user who receives the e-mail"
    231 msgstr ""
    232 
    233 #: includes/class-wpdr-email-notice.php:663
    234 msgid "means output the phrase if the document has been previously e-mailed."
    235 msgstr ""
    236 
    237 #: includes/class-wpdr-email-notice.php:665
    238 msgid "Tags available within the tag"
    239 msgstr ""
    240 
    241 #: includes/class-wpdr-email-notice.php:667
    242 msgid "means the number of times the document has been previously e-mailed."
    243 msgstr ""
    244 
    245 #: includes/class-wpdr-email-notice.php:668
    246 msgid "means the last date that the document was e-mailed."
    247 msgstr ""
    248 
    249 #: includes/class-wpdr-email-notice.php:669
    250 msgid "means the last date incuding time that the document was e-mailed."
    251 msgstr ""
    252 
    253 #: includes/class-wpdr-email-notice.php:671
    254 msgid "means output an optional extra phrase entered at the time of mailing."
    255 msgstr ""
    256 
    257 #: includes/class-wpdr-email-notice.php:685
    258 msgid "Auto"
    259 msgstr ""
    260 
    261 #: includes/class-wpdr-email-notice.php:685
    262 msgid "(send e-mails automatically when you publish a post)"
    263 msgstr ""
    264 
    265 #: includes/class-wpdr-email-notice.php:686
    266 msgid "Manual"
    267 msgstr ""
    268 
    269 #: includes/class-wpdr-email-notice.php:686
    270 msgid "(you need to press a button to send notification)"
    271 msgstr ""
    272 
    273 #: includes/class-wpdr-email-notice.php:711
    274 msgid "Public posts"
    275 msgstr ""
    276 
    277 #: includes/class-wpdr-email-notice.php:712
    278 msgid "Password"
    279 msgstr ""
    280 
    281 #: includes/class-wpdr-email-notice.php:712
    282 msgid "protected posts (password will"
    283 msgstr ""
    284 
    285 #: includes/class-wpdr-email-notice.php:712
    286 msgid "NOT"
    287 msgstr ""
    288 
    289 #: includes/class-wpdr-email-notice.php:712
    290 msgid "be included in notification e-mail)"
    291 msgstr ""
    292 
    293 #: includes/class-wpdr-email-notice.php:713
    294 msgid "Private posts"
    295 msgstr ""
    296 
    297 #: includes/class-wpdr-email-notice.php:714
    298 msgid "Notifications are sent only to those Internal users who can read the document"
    299 msgstr ""
    300 
    301 #: includes/class-wpdr-email-notice.php:715
    302 msgid "Notifications can only be sent to External users for Public documents."
    303 msgstr ""
    304 
    305 #: includes/class-wpdr-email-notice.php:726
    306 msgid "Hint: HTML tags are not allowed here, e.g.: %title_with_permalink% will revert to %title%."
    307 msgstr ""
    308 
    309 #: includes/class-wpdr-email-notice.php:745, includes/class-wpdr-email-notice.php:764, includes/class-wpdr-email-notice.php:793
    310 msgid "Hint: HTML tags are welcome here to make your notification e-mails more personalized."
    311 msgstr ""
    312 
    313 #: includes/class-wpdr-email-notice.php:777
    314 msgid "Attach the document in emails to external users."
    315 msgstr ""
    316 
    317 #: includes/class-wpdr-email-notice.php:779
    318 msgid "Remember that Public documents may not always be accessible, so these may need to be attached."
    319 msgstr ""
    320 
    321 #: includes/class-wpdr-email-notice.php:860
    322 msgid "Notify me by e-mail when a new document is published"
    323 msgstr ""
    324 
    325 #: includes/class-wpdr-email-notice.php:862
    326 msgid "Also send me the document as an attachment by e-mail when a new document is published"
    327 msgstr ""
    328 
    329 #: includes/class-wpdr-email-notice.php:969, includes/class-wpdr-email-notice.php:3432
    330 msgid "Document Email Notifications"
    331 msgstr ""
    332 
    333 #: includes/class-wpdr-email-notice.php:995, includes/class-wpdr-email-notice.php:993
    334 msgid "Send notification email(s)"
    335 msgstr ""
    336 
    337 #: includes/class-wpdr-email-notice.php:1008, includes/class-wpdr-email-notice.php:1075, includes/class-wpdr-email-notice.php:1057
    338 msgid "Add Extra text"
    339 msgstr ""
    340 
    341 #: includes/class-wpdr-email-notice.php:1085, includes/class-wpdr-email-notice.php:1048
    342 msgid "Re-send external list email(s)"
    343 msgstr ""
    344 
    345 #: includes/class-wpdr-email-notice.php:1083, includes/class-wpdr-email-notice.php:1066
    346 msgid "Send external list email(s)"
    347 msgstr ""
    348 
    349 #: includes/class-wpdr-email-notice.php:1087, includes/class-wpdr-email-notice.php:1089
    350 msgid "Optional Extra text"
    351 msgstr ""
    352 
    353 #: includes/class-wpdr-email-notice.php:1090
    354 msgid "Enter any extra text for this specific mailing and click Add Extra text."
    355 msgstr ""
    356 
    357 #: includes/class-wpdr-email-notice.php:1105, includes/class-wpdr-email-notice.php:1105
    358 msgid "External User Email Log"
    359 msgstr ""
    360 
    361 #: includes/class-wpdr-email-notice.php:1107, includes/class-wpdr-email-notice.php:1107
    362 msgid "Internal User Email Log"
    363 msgstr ""
    364 
    365 #: includes/class-wpdr-email-notice.php:1122, includes/class-wpdr-email-notice.php:1133, includes/class-wpdr-email-notice.php:1144, includes/class-wpdr-email-notice.php:1168, includes/class-wpdr-email-notice.php:1240, includes/class-wpdr-email-notice.php:1251, includes/class-wpdr-email-notice.php:1262, includes/class-wpdr-email-notice.php:1278, includes/class-wpdr-email-notice.php:1290, includes/class-wpdr-email-notice.php:1313, includes/class-wpdr-email-notice.php:1357, includes/class-wpdr-email-notice.php:2604, includes/class-wpdr-email-notice.php:2620, includes/class-wpdr-email-notice.php:2691, includes/class-wpdr-email-notice.php:2707, includes/class-wpdr-email-notice.php:2739, includes/class-wpdr-email-notice.php:2777
    366 msgid "Something went wrong"
    367 msgstr ""
    368 
    369 #: includes/class-wpdr-email-notice.php:1445, includes/class-wpdr-email-notice.php:1476, includes/class-wpdr-email-notice.php:1510, includes/class-wpdr-email-notice.php:1610, includes/class-wpdr-email-notice.php:1659
    370 msgid "You do not have sufficient permissions to access this page."
    371 msgstr ""
    372 
    373 #: includes/class-wpdr-email-notice.php:1453
    374 msgid "Document Email Notification Log"
    375 msgstr ""
    376 
    377 #: includes/class-wpdr-email-notice.php:1460, includes/class-wpdr-email-notice.php:1491, includes/class-wpdr-email-notice.php:1530
    378 msgid "Search"
    379 msgstr ""
    380 
    381 #: includes/class-wpdr-email-notice.php:1463, includes/class-wpdr-email-notice.php:1494
    382 msgid "Note: Success denotes that the mail was successfully received by your e-mail system."
    383 msgstr ""
    384 
    385 #: includes/class-wpdr-email-notice.php:1464
    386 msgid "The mail delivery process to the recipient is managed within your e-mail system."
    387 msgstr ""
    388 
    389 #: includes/class-wpdr-email-notice.php:1484
    390 msgid "Document Email External Notice Log"
    391 msgstr ""
    392 
    393 #: includes/class-wpdr-email-notice.php:1495
    394 msgid "The delivery process to the recipient is managed within your e-mail system."
    395 msgstr ""
    396 
    397 #: includes/class-wpdr-email-notice.php:1527
    398 msgid "User Addressee List"
    399 msgstr ""
    400 
    401 #: includes/class-wpdr-email-notice.php:1597, includes/class-wpdr-email-notice.php:3388, includes/class-wpdr-email-notice.php:3391
    402 msgid "List Attributes"
    403 msgstr ""
    404 
    405 #: includes/class-wpdr-email-notice.php:1599, includes/class-wpdr-email-notice.php:3389, includes/class-wpdr-email-notice.php:3403
    406 msgid "Document External User List"
    407 msgstr ""
    408 
    409 #: includes/class-wpdr-email-notice.php:1632
    410 msgid "Clear values"
    411 msgstr ""
    412 
    413 #: includes/class-wpdr-email-notice.php:1669, includes/class-wpdr-email-notice.php:2970
    414 msgid "Match Rule"
    415 msgstr ""
    416 
    417 #: includes/class-wpdr-email-notice.php:1670
    418 msgid "Choose whether any or all of this lists taxonomy elements must match those on the document to be considered a match."
    419 msgstr ""
    420 
    421 #: includes/class-wpdr-email-notice.php:1673, includes/class-wpdr-email-notice.php:2991, includes/class-wpdr-email-notice.php:3025, includes/class-wpdr-email-notice.php:3077
    422 msgid "Any taxonomy element"
    423 msgstr ""
    424 
    425 #: includes/class-wpdr-email-notice.php:1674, includes/class-wpdr-email-notice.php:2991, includes/class-wpdr-email-notice.php:3026
    426 msgid "All taxonomy elements"
    427 msgstr ""
    428 
    429 #: includes/class-wpdr-email-notice.php:1677, includes/class-wpdr-email-notice.php:2971, includes/class-wpdr-email-notice.php:3395
    430 msgid "Document Attach"
    431 msgstr ""
    432 
    433 #: includes/class-wpdr-email-notice.php:1680
    434 msgid "Attach Document to Notification E-mails"
    435 msgstr ""
    436 
    437 #: includes/class-wpdr-email-notice.php:1682, includes/class-wpdr-email-notice.php:3115, includes/class-wpdr-email-notice.php:3397, includes/class-wpdr-en-ext-user-table.php:106
    438 msgid "Pause Mail"
    439 msgstr ""
    440 
    441 #: includes/class-wpdr-email-notice.php:1685
    442 msgid "Pause this List"
    443 msgstr ""
    444 
    445 #: includes/class-wpdr-email-notice.php:1687, includes/class-wpdr-email-notice.php:1690
    446 msgid "Document List Notes"
    447 msgstr ""
    448 
    449 #: includes/class-wpdr-email-notice.php:1691
    450 msgid "You can use this to hold any notes for this list entry."
    451 msgstr ""
    452 
    453 #: includes/class-wpdr-email-notice.php:2096
    454 msgid "New document: "
    455 msgstr ""
    456 
    457 #: includes/class-wpdr-email-notice.php:2224, includes/class-wpdr-email-notice.php:2336
    458 msgid "Document too large to be attached."
    459 msgstr ""
    460 
    461 #: includes/class-wpdr-email-notice.php:2222, includes/class-wpdr-email-notice.php:2334
    462 msgid "Document attached."
    463 msgstr ""
    464 
    465 #: includes/class-wpdr-email-notice.php:2213, includes/class-wpdr-email-notice.php:2325
    466 msgid "Document not attached."
    467 msgstr ""
    468 
    469 #: includes/class-wpdr-email-notice.php:2251, includes/class-wpdr-email-notice.php:2367
    470 msgid "Failed"
    471 msgstr ""
    472 
    473 #: includes/class-wpdr-email-notice.php:2248, includes/class-wpdr-email-notice.php:2237, includes/class-wpdr-email-notice.php:2364, includes/class-wpdr-email-notice.php:2350
    474 msgid "Successful"
    475 msgstr ""
    476 
    477 #: includes/class-wpdr-email-notice.php:2248, includes/class-wpdr-email-notice.php:2237, includes/class-wpdr-email-notice.php:2364, includes/class-wpdr-email-notice.php:2350
    478 msgid "Success Attachment"
    479 msgstr ""
    480 
    481 #: includes/class-wpdr-email-notice.php:2237, includes/class-wpdr-email-notice.php:2350, includes/class-wpdr-email-notice.php:2469
    482 msgid "Test"
    483 msgstr ""
    484 
    485 #: includes/class-wpdr-email-notice.php:2312
    486 msgid "Empty mail subject and/or content."
    487 msgstr ""
    488 
    489 #: includes/class-wpdr-email-notice.php:2585
    490 msgid "Not logged and/or sent out successfully no mails."
    491 msgstr ""
    492 
    493 #: includes/class-wpdr-email-notice.php:2672
    494 msgid "Not logged and/or sent out successfully any mails."
    495 msgstr ""
    496 
    497 #: includes/class-wpdr-email-notice.php:2862
    498 msgid "notification(s) sent."
    499 msgstr ""
    500 
    501 #: includes/class-wpdr-email-notice.php:2862, includes/class-wpdr-email-notice.php:2857, includes/class-wpdr-email-notice.php:2853
    502 msgid "Check log"
    503 msgstr ""
    504 
    505 #: includes/class-wpdr-email-notice.php:2857
    506 msgid "log issues."
    507 msgstr ""
    508 
    509 #: includes/class-wpdr-email-notice.php:2853
    510 msgid "Error sending notifications."
    511 msgstr ""
    512 
    513 #: includes/class-wpdr-email-notice.php:2972
    514 msgid "List Paused"
    515 msgstr ""
    516 
    517 #: includes/class-wpdr-email-notice.php:3024, includes/class-wpdr-email-notice.php:3074
    518 msgid "Match Rule :"
    519 msgstr ""
    520 
    521 #: includes/class-wpdr-email-notice.php:3028
    522 msgid "Choose whether Any or All of these taxonomy elements must match for the list to be used to send e-mails."
    523 msgstr ""
    524 
    525 #: includes/class-wpdr-email-notice.php:3037, includes/class-wpdr-email-notice.php:3093
    526 msgid "Document Attach :"
    527 msgstr ""
    528 
    529 #: includes/class-wpdr-email-notice.php:3047, includes/class-wpdr-email-notice.php:3111
    530 msgid "Pause Mail :"
    531 msgstr ""
    532 
    533 #: includes/class-wpdr-email-notice.php:3076, includes/class-wpdr-email-notice.php:3095, includes/class-wpdr-email-notice.php:3113
    534 msgid "-- No Change --"
    535 msgstr ""
    536 
    537 #: includes/class-wpdr-email-notice.php:3078
    538 msgid "All taxonomy elements-"
    539 msgstr ""
    540 
    541 #: includes/class-wpdr-email-notice.php:3082
    542 msgid "Choose whether Any or All of these taxonomy elements must match for the lists to be used to send e-mails."
    543 msgstr ""
    544 
    545 #: includes/class-wpdr-email-notice.php:3096
    546 msgid "Do not Attach Document"
    547 msgstr ""
    548 
    549 #: includes/class-wpdr-email-notice.php:3097
    550 msgid "Attach Document"
    551 msgstr ""
    552 
    553 #: includes/class-wpdr-email-notice.php:3114
    554 msgid "Do not Pause Mail"
    555 msgstr ""
    556 
    557 #: includes/class-wpdr-email-notice.php:3320, includes/class-wpdr-email-notice.php:3323
    558 msgid "Document External List updated."
    559 msgstr ""
    560 
    561 #: includes/class-wpdr-email-notice.php:3321
    562 msgid "Custom field updated."
    563 msgstr ""
    564 
    565 #: includes/class-wpdr-email-notice.php:3322
    566 msgid "Custom field deleted."
    567 msgstr ""
    568 
    569 #. translators: %s is the revision ID.
    570 #: includes/class-wpdr-email-notice.php:3326
    571 msgid "Document External List restored to revision from %s"
    572 msgstr ""
    573 
    574 #: includes/class-wpdr-email-notice.php:3328
    575 msgid "Document External List published."
    576 msgstr ""
    577 
    578 #: includes/class-wpdr-email-notice.php:3329
    579 msgid "Document External List saved."
    580 msgstr ""
    581 
    582 #: includes/class-wpdr-email-notice.php:3330
    583 msgid "Document External List submitted."
    584 msgstr ""
    585 
    586 #. translators: %1$s is the date, %2$s is the preview link.
    587 #: includes/class-wpdr-email-notice.php:3332
    588 msgid "Document External List scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview document list</a>"
    589 msgstr ""
    590 
    591 #: includes/class-wpdr-email-notice.php:3332
    592 msgctxt "%1$s: date; %2$s: time"
    593 msgid "%1$s @ %2$s"
    594 msgstr ""
    595 
    596 #: includes/class-wpdr-email-notice.php:3333
    597 msgid "Document External List draft updated."
    598 msgstr ""
    599 
    600 #: includes/class-wpdr-email-notice.php:3383
    601 msgid "Usage"
    602 msgstr ""
    603 
    604 #: includes/class-wpdr-email-notice.php:3384
    605 msgid "This screen allows a user to define a list of email users that will receive an email (generally with the document attached) if any taxonomy value of the list matches that on the document requested."
    606 msgstr ""
    607 
    608 #: includes/class-wpdr-email-notice.php:3385
    609 msgid "The List is available for this processing once the List is published."
    610 msgstr ""
    611 
    612 #: includes/class-wpdr-email-notice.php:3386
    613 msgid "When editing is completed, simply click <code>Update</code> or <code>Publish</code> to save your changes."
    614 msgstr ""
    615 
    616 #: includes/class-wpdr-email-notice.php:3387
    617 msgid "There are three main areas associated with the List:"
    618 msgstr ""
    619 
    620 #: includes/class-wpdr-email-notice.php:3390
    621 msgid "Taxonomies"
    622 msgstr ""
    623 
    624 #: includes/class-wpdr-email-notice.php:3392
    625 msgid "Taxonomy Match Rule"
    626 msgstr ""
    627 
    628 #: includes/class-wpdr-email-notice.php:3393
    629 msgid "See the section <strong>Document Taxonomies</strong> for the process to determine whether an individual External List term matches that on the Document."
    630 msgstr ""
    631 
    632 #: includes/class-wpdr-email-notice.php:3394
    633 msgid "This flag indicates whether all the terms on the External List or at least one must match those on the Document for the External List to be considered matching the Document."
    634 msgstr ""
    635 
    636 #: includes/class-wpdr-email-notice.php:3396
    637 msgid "This is a text area where optional comment or information can be made about the External List."
    638 msgstr ""
    639 
    640 #: includes/class-wpdr-email-notice.php:3398
    641 msgid "This allows the External List to be paused from matching Documents."
    642 msgstr ""
    643 
    644 #: includes/class-wpdr-email-notice.php:3399
    645 msgid "It is provided so that an External List can be withdrawn from processing temporarily without simply changing its status."
    646 msgstr ""
    647 
    648 #: includes/class-wpdr-email-notice.php:3400
    649 msgid "List Notes"
    650 msgstr ""
    651 
    652 #: includes/class-wpdr-email-notice.php:3401
    653 msgid "This is a text area where optional comment or information can be held about the External List."
    654 msgstr ""
    655 
    656 #: includes/class-wpdr-email-notice.php:3402
    657 msgid "Use is made of the excerpt field as it intended to be a simple aide-memoire to administrators of the External Lists."
    658 msgstr ""
    659 
    660 #: includes/class-wpdr-email-notice.php:3404
    661 msgid "This panel consists of two parts. First are the elements to create or edit an individual user record into the table of email addresses, followed by a searchable list of the email addresses associated with the list."
    662 msgstr ""
    663 
    664 #: includes/class-wpdr-email-notice.php:3405
    665 msgid "Note that changes made to this User List are stored immediately. There is no separate process to update the data permanently or to cancel the edits made so far."
    666 msgstr ""
    667 
    668 #: includes/class-wpdr-email-notice.php:3406
    669 msgid "This holds a list of individual users that will be sent an email when the External List is selected."
    670 msgstr ""
    671 
    672 #: includes/class-wpdr-email-notice.php:3407
    673 msgid "Each user record will contain the user name and email address and an optional pause attribute that pauses the sending of emails to the user."
    674 msgstr ""
    675 
    676 #: includes/class-wpdr-email-notice.php:3408
    677 msgid "This pause attribute allows the user details to be retained in the User List but notification emails will not be sent to the specific user."
    678 msgstr ""
    679 
    680 #: includes/class-wpdr-email-notice.php:3409
    681 msgid "Document Taxonomies"
    682 msgstr ""
    683 
    684 #: includes/class-wpdr-email-notice.php:3410
    685 msgid "These taxonomies are generally shown on the right part of the screen. They are the taxonomies that can be applied to Documents."
    686 msgstr ""
    687 
    688 #: includes/class-wpdr-email-notice.php:3411
    689 msgid "At least one taxonomy term is required to be entered, although several can be."
    690 msgstr ""
    691 
    692 #: includes/class-wpdr-email-notice.php:3412
    693 msgid "If there are multiple terms on the External List then the matching rule will used to determine whether just one term is needed for the External List to be selected or all terms present must match for notification."
    694 msgstr ""
    695 
    696 #: includes/class-wpdr-email-notice.php:3413
    697 msgid "For hierarchical taxonomies, a term on the External List is considered matched if the term on the Document is either the same as that on the External List or is a child of the External List term."
    698 msgstr ""
    699 
    700 #: includes/class-wpdr-email-notice.php:3414
    701 msgid "Because of this, it is not permitted to publish an External List when the terms entered contains a term and its parent since the term matching process means that the child term would be redundant."
    702 msgstr ""
    703 
    704 #: includes/class-wpdr-email-notice.php:3415
    705 msgid "A Document can have additional terms present, i.e. it is not necessary that all Document terms must match."
    706 msgstr ""
    707 
    708 #: includes/class-wpdr-email-notice.php:3416
    709 msgid "Publish"
    710 msgstr ""
    711 
    712 #: includes/class-wpdr-email-notice.php:3417
    713 msgid "By default, Documents are only accessible to logged in users. Documents can be published, thus making them accessible to the world, by toggling their visibility in the \"Publish\" box in the top right corner. Any document marked as published will be accessible to anyone with the proper URL."
    714 msgstr ""
    715 
    716 #: includes/class-wpdr-email-notice.php:3418
    717 msgid "Similarly these user lists need to be published for the list to be eligible to be selected for sending emails to its users."
    718 msgstr ""
    719 
    720 #: includes/class-wpdr-email-notice.php:3419
    721 msgid "Permissions"
    722 msgstr ""
    723 
    724 #: includes/class-wpdr-email-notice.php:3420
    725 msgid "It is expected that the emailing administration process will be centralised with only a handful of External Lists being created. Therefore the full WordPress set of access permissions is not required."
    726 msgstr ""
    727 
    728 #: includes/class-wpdr-email-notice.php:3421
    729 msgid "The permission <strong>edit_doc_ext_lists</strong> is supplied that allows users to create, update, and publish any External List."
    730 msgstr ""
    731 
    732 #: includes/class-wpdr-email-notice.php:3422
    733 msgid "The permission <strong>delete_doc_ext_lists</strong> is supplied that allows users to delete any External List."
    734 msgstr ""
    735 
    736 #: includes/class-wpdr-email-notice.php:3423
    737 msgid "Users with <strong>edit_documents</strong> permission can read any External List since its use is from within the Document editing screen."
    738 msgstr ""
    739 
    740 #: includes/class-wpdr-email-notice.php:3426
    741 msgid "Document External Lists"
    742 msgstr ""
    743 
    744 #: includes/class-wpdr-email-notice.php:3427
    745 msgid "Below is a list of all Document External Lists used to send email notifications to external users on an update to a Document. Click the list title to edit the document list."
    746 msgstr ""
    747 
    748 #: includes/class-wpdr-email-notice.php:3428
    749 msgid "To add a new Document External List, click <strong>Add Document External List</strong> at the top of the screen."
    750 msgstr ""
    751 
    752 #: includes/class-wpdr-email-notice.php:3429
    753 msgid "Note that whilst this functionality is primarily intended for people that are not users of this site, any email address can be used."
    754 msgstr ""
    755 
    756 #: includes/class-wpdr-email-notice.php:3433
    757 msgid "Notification emails can be sent (or re-sent) for published Documents by clicking on the button \"Send notification emails\" (to internal users) or \"Send external emails\" (to  external users)."
    758 msgstr ""
    759 
    760 #: includes/class-wpdr-email-notice.php:3434
    761 msgid "Internal users are those with user-ids on the site. They can decide whether they wish to receive these notifications or not and whether a copy of the document should be attached the mail."
    762 msgstr ""
    763 
    764 #: includes/class-wpdr-email-notice.php:3435
    765 msgid "This data can also be updated by Administrators (also using Bulk Editing functions)."
    766 msgstr ""
    767 
    768 #: includes/class-wpdr-email-notice.php:3436
    769 msgid "External users normally do not have a sign-on. Notifications are based on the concept of External Lists. A list will contain one or more taxonomy terms that will be matched again the document terms."
    770 msgstr ""
    771 
    772 #: includes/class-wpdr-email-notice.php:3437
    773 msgid "Every published External List (except those marked as Paused) will be tested to see whether its terms match those on the Document."
    774 msgstr ""
    775 
    776 #: includes/class-wpdr-email-notice.php:3438
    777 msgid "Those that match are listed below the button. If the user can maintain the External List, then they can choose to not send the mail to a List by unchecking the List before sending the Notification."
    778 msgstr ""
    779 
    780 #: includes/class-wpdr-email-notice.php:3439
    781 msgid "A term on the list matches with one on the Document if they are same or, for hierarchical taxonomies, the List term is a parent of the Document term."
    782 msgstr ""
    783 
    784 #: includes/class-wpdr-email-notice.php:3440
    785 msgid "If there are several terms on the List, it can be set so that the List is matched if either any term matches or all terms must match."
    786 msgstr ""
    787 
    788 #: includes/class-wpdr-email-notice.php:3441
    789 msgid "Potentially several Lists may match the Document. Emails will be sent to every user (except those individually paused) on each list that is matched."
    790 msgstr ""
    791 
    792 #: includes/class-wpdr-email-notice.php:3442
    793 msgid "Document Email Extra Text"
    794 msgstr ""
    795 
    796 #: includes/class-wpdr-email-notice.php:3443
    797 msgid "You can include some message-specific additional text with the notification emails."
    798 msgstr ""
    799 
    800 #: includes/class-wpdr-email-notice.php:3445
    801 msgid "The template used (Internal or External) has to contain the tag \"%extra%\" in it to use this capability."
    802 msgstr ""
    803 
    804 #: includes/class-wpdr-email-notice.php:3446
    805 msgid "A checkbox which is initially disabled with label \"Add Extra Text\" is placed next to each Send button."
    806 msgstr ""
    807 
    808 #: includes/class-wpdr-email-notice.php:3447
    809 msgid "On entering some text in the text field, these checkboxes will become active if the template allows it."
    810 msgstr ""
    811 
    812 #: includes/class-wpdr-email-notice.php:3448
    813 msgid "The extra text will only be included if the corresponding checkbox is checked when the send button is clicked. It can contains html tags to better format the output."
    814 msgstr ""
    815 
    816 #: includes/class-wpdr-email-notice.php:3492, includes/class-wpdr-email-notice.php:3523
    817 msgid "There are no terms defined for matching with this list. Please add at least one."
    818 msgstr ""
    819 
    820 #: includes/class-wpdr-email-notice.php:3505
    821 msgid "There are no addressees defined for matching with this list. Please add at least one."
    822 msgstr ""
    823 
    824 #. translators: %1$s is the taxonomy name, %2$s is the parent term, %2$s is the child term.
    825 #: includes/class-wpdr-email-notice.php:3529
    826 msgid "Taxonomy: %1$s. Cannot have both parent (%2$s) and child terms (%3$s). Remove child term as parent term will match."
    827 msgstr ""
    828 
    829 #. translators: %s is the taxonomy name.
    830 #: includes/class-wpdr-email-notice.php:3552
    831 msgid "Taxonomy: %s. You must redo your non-hierarchical changes manually."
    832 msgstr ""
    833 
    834 #. translators: %1$s is the taxonomy term name.
    835 #: includes/class-wpdr-email-notice.php:3561
    836 msgid "Remove Term: %1$s "
    837 msgstr ""
    838 
    839 #: includes/class-wpdr-email-notice.php:3557
    840 msgid "Add Term: %1$s "
    841 msgstr ""
    842 
    843 #: includes/class-wpdr-en-all-users-bulk-action.php:41
    844 msgid "Subscribe to Document Email notifications"
    845 msgstr ""
    846 
    847 #: includes/class-wpdr-en-all-users-bulk-action.php:42
    848 msgid "Unsubscribe from Document Email notifications"
    849 msgstr ""
    850 
    851 #: includes/class-wpdr-en-all-users-bulk-action.php:69
    852 msgid "Error subscribing users."
    853 msgstr ""
    854 
    855 #: includes/class-wpdr-en-all-users-bulk-action.php:78
    856 msgid "Error unsubscribing users."
    857 msgstr ""
    858 
    859 #: includes/class-wpdr-en-ext-log-table.php:32
    860 msgid "External Notification email sent"
    861 msgstr ""
    862 
    863 #: includes/class-wpdr-en-ext-log-table.php:33
    864 msgid "External Notification emails sent"
    865 msgstr ""
    866 
    867 #: includes/class-wpdr-en-ext-log-table.php:50, includes/class-wpdr-en-user-log-table.php:55
    868 msgid "Post Title"
    869 msgstr ""
    870 
    871 #: includes/class-wpdr-en-ext-log-table.php:51
    872 msgid "List Title"
    873 msgstr ""
    874 
    875 #: includes/class-wpdr-en-ext-log-table.php:52, includes/class-wpdr-en-user-log-table.php:56
    876 msgid "E-mail sent"
    877 msgstr ""
    878 
    879 #: includes/class-wpdr-en-ext-log-table.php:53, includes/class-wpdr-en-ext-user-table.php:104, includes/class-wpdr-en-user-log-table.php:57
    880 msgid "User Name"
    881 msgstr ""
    882 
    883 #: includes/class-wpdr-en-ext-log-table.php:54, includes/class-wpdr-en-user-log-table.php:58
    884 msgid "User E-mail"
    885 msgstr ""
    886 
    887 #: includes/class-wpdr-en-ext-log-table.php:55, includes/class-wpdr-en-user-log-table.php:59
    888 msgid "Status"
    889 msgstr ""
    890 
    891 #: includes/class-wpdr-en-ext-log-table.php:121, includes/class-wpdr-en-user-log-table.php:122
    892 msgid "Extra Text"
    893 msgstr ""
    894 
    895 #: includes/class-wpdr-en-ext-log-table.php:222, includes/class-wpdr-en-user-log-table.php:227
    896 msgid "No e-mails sent out, yet."
    897 msgstr ""
    898 
    899 #: includes/class-wpdr-en-ext-user-table.php:62
    900 msgid "External User Address"
    901 msgstr ""
    902 
    903 #: includes/class-wpdr-en-ext-user-table.php:63
    904 msgid "External User Addresses"
    905 msgstr ""
    906 
    907 #: includes/class-wpdr-en-ext-user-table.php:105
    908 msgid "E-mail Address"
    909 msgstr ""
    910 
    911 #: includes/class-wpdr-en-ext-user-table.php:153
    912 msgid "Edit"
    913 msgstr ""
    914 
    915 #: includes/class-wpdr-en-ext-user-table.php:154
    916 msgid "Delete"
    917 msgstr ""
    918 
    919 #: includes/class-wpdr-en-ext-user-table.php:265
    920 msgid "No matching addressees found."
    921 msgstr ""
    922 
    923 #: includes/class-wpdr-en-ext-user-table.php:263
    924 msgid "No addressees created yet."
    925 msgstr ""
    926 
    927 #: includes/class-wpdr-en-user-log-table.php:37
    928 msgid "Notification email sent"
    929 msgstr ""
    930 
    931 #: includes/class-wpdr-en-user-log-table.php:38
    932 msgid "Notification emails sent"
    933 msgstr ""
    934 
    935 #. translators: Do not translate Email Notice WP Document Revisions or WP Document Revisions.
    936 #: wpdr-email-notice.php:28
    937 msgid "Plugin Email Notice WP Document Revisions is activated but its required plugin WP Document Revisions is not."
    938 msgstr ""
    939 
    940 #. translators: Do not translate Email Notice WP Document Revisions.
    941 #: wpdr-email-notice.php:31
    942 msgid "Plugin Email Notice WP Document Revisions will not activate its functionality."
    943 msgstr ""
  • email-notice-wp-document-revisions/trunk/readme.txt

    r3212642 r3276769  
    55Requires PHP: 7.4
    66Requires Plugins: wp-document-revisions
    7 Tested up to: 6.7.1
    8 Stable tag: 3.1
     7Tested up to: 6.8.0
     8Stable tag: 3.2
    99License: GPLv3 or later
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    1313== Description ==
    1414
    15 This plugin is an add-on to WP Document Revisions. This supports sending out e-mail notifications about newly published documents to users who are interested to receive notifications either automatically (on publish) or manually.
     15This plugin is an add-on to WP Document Revisions. This supports sending out email notifications about newly published documents to users who are interested to receive notifications either automatically (on publish) or manually.
    1616
    17 By default when you send any notification from your blog (including many of the plugins as well) sender is "WordPress" and the sender e-mail address is <[email protected]>.
     17By default when you send any notification from your blog (including many of the plugins as well) sender is "WordPress" and the sender email address is <[email protected]>.
    1818
    1919This plugin will enable you to
     
    2323* Create lists of email users that can be sent email notifications of updates to your published documents
    2424
    25 * Easily customize notification e-mail subject and content templates
     25* Easily customize notification email subject and content templates
    2626
    27 * Re-send e-mail notifications manually as well
     27* Re-send email notifications manually as well
     28
     29* You can add a notification-specific message in the email.
    2830
    2931* When a notification is resent to a user, then you can include information that it is a resend and when previously sent
    3032
    31 * Maintain e-mail log about sent e-mail notifications.
     33* Maintain email logs about sent email notifications.
    3234
    33 * Replace default <[email protected]> to any e-mail address
     35* Replace default <[email protected]> to any email address
    3436
    35 * Replace default e-mail from "WordPress" name to anything you want
     37* Replace default email from "WordPress" name to anything you want
    3638
    37 * Administration forms contain pulldown Help information.
     39* Administration forms contain significant pulldown Help information.
    3840
    3941For your WordPress users:
    4042
    41 * Send notifications about password protected posts as well to those that can read it (password will NOT be included in notification e-mail)
     43* Send notifications about password protected posts as well to those that can read it (password will NOT be included in notification email)
    4244
    43 * Users can opt-out if they don't want to receive e-mails (they can choose to get all/nothing)
     45* Users can opt-out if they don't want to receive emails (they can choose to get all/nothing)
    4446
    45 * Bulk subscribe/unsubscribe users to/from e-mail notifications (go to Users->All Users and see bulk actions)
     47* Bulk subscribe/unsubscribe users to/from email notifications (go to Users->All Users and see bulk actions)
    4648
    4749For your External users:
     
    5153* Matching rule can be set to either match one term or all terms on the list.
    5254
    53 Initial release based on plugin "WP JV Custom Email Settings" by Janos Ver.
     55Initial release was based on plugin "WP JV Custom Email Settings" by Janos Ver.
    5456
    5557
     
    7072= How does the plugin work? =
    7173
    72 When enabled a metabox will be added to the Document Admin screen. This can contain two buttons to send emails. One will be for internal users (although you can filter this capability out) and the other for Document Lists. The Document List define a set of email names and addresses that will be sent the notifications; together with a list of Taxonomy matching rules.
     74When enabled a metabox will be added to the Document Admin screen. This can contain two buttons to send emails. One will be for Internal users (although you can filter this capability out) and the other for Document Lists. The Document List define a set of email names and addresses that will be sent the notifications; together with a list of Taxonomy matching rules.
    7375
    74 There is information in the Document and Document List Help pulldowns found on the top right hand corner of their Admin screens.
     76Significant information is held in the Document and Document External List Help pulldowns found on the top right hand corner of their Admin screens.
    7577
    76 Go to Settings -> General -> "Document Email Settings" section.
     78Please make use of them to see how to use them and where you can see the data in context.
     79
     80Also additional information is held in the [usage documentation](../docs/usage.md)
    7781
    7882= Where can I define new "Email From" name and from "Email Address"? =
     
    8185
    8286= How does this work? What is the difference between Auto/Manual notification mode? =
    83 In Settings -> Writing -> "Document Email Settings - Notifications" section you can select to send notifications automatically or manually. If it is set to Auto whenever you publish a document notification e-mails will be sent out automatically for users with access to the document and opted to receive such notifications. In case of Manual you will be provided a "Send/Re-send notification email(s)" button to notify your readers.
     87In Settings -> Writing -> "Document Email Settings - Notifications" section you can select to send notifications automatically or manually. If it is set to Auto whenever you publish a document notification emails will be sent out automatically for users with access to the document and opted to receive such notifications. In case of Manual you will be provided a "Send/Re-send notification email(s)" button to notify your readers.
    8488
    85 = I'm not getting any notification e-mails, what is wrong? =
    86 In order to receive notification e-mails users have to go to their profile and check “Notify me by e-mail when a new post is published” checkbox in "Document Email Settings" section (or an admin has to do it for them).
     89= I'm not getting any notification emails, what is wrong? =
     90In order to receive notification emails users have to go to their profile and check “Notify me by email when a new post is published” checkbox in "Document Email Settings" section (or an admin has to do it for them).
    8791
    8892It will check that the WordPress User can read the Document before sending a mail, it may be just that you cannot access the document.
    8993
    90 = I would like the document attached to the e-mail (WordPress user)
    91 Even though the user should have access to the document via the front-end, as well, the user can choose to have the document attached to the e-mail (subject to size limitations) by checking "Also send me the document as an attachment by e-mail when a new document is published" checkbox in "Document Email Settings" section (or an admin has to do it for them).
     94= I would like the document attached to the email (WordPress user)
     95Even though the user should have access to the document via the front-end, as well, the user can choose to have the document attached to the email (subject to size limitations) by checking "Also send me the document as an attachment by email when a new document is published" checkbox in "Document Email Settings" section (or an admin has to do it for them).
    9296
    93 = I have a site that requires a log-on but would like to send the External Users a copy of the document attached to the notification e-mail.
     97= I have a site that requires a log-on but would like to send the External Users a copy of the document attached to the notification email.
    9498This is a convenience when the document has public read access, but is necessary if the site requires users to log on to access a document.
    9599
    96 A filter *wpdr_en_ext_force_attach* can be set to return true to force this. Individual lists can be defined to attach the document or not.
     100In Settings -> Writing -> "Document Email Settings - Notifications" section, there is a checkbox to attach the Document to the email.
     101
     102Individual lists can be defined to attach the document or not.
    97103
    98104= What kind of tags I can use and for what? =
    99 You can customize notification e-mail template (both subject and content) In the content you can use any standard html tags as well on top of the following ones:
     105You can customize notification email template (both subject and content) In the content you can use any standard html tags as well on top of the following ones:
    100106
    101 Details are given in the [tags documentation](https://github.com/NeilWJames/email-notice-wp-document-revisions/blob/main/docs/tags.md).
     107Details are given in the [tags documentation](../docs/tags.md).
    102108
    103109= Where are the logs? =
    104 Logs of notifications are available at Document Emails -> Internal User Email Log (for WordPress users) or Document Emails -> External User Email Log, where you can view which users were notified about which post and if e-mail sending was successful or not (please note that bounce messages are not processed).
     110Logs of notifications are available at Document Emails -> Internal User Email Log (for WordPress users) or Document Emails -> External User Email Log, where you can view which users were notified about which post and if email sending was successful or not (please note that bounce messages are not processed).
    105111
    106 = I've multisite. Does this plugin works for me as well? =
     112= I've multisite. Does this plugin work for me as well? =
    107113Yes, it does, but in that case each site will have its own log in Document Emails.
    108114
     
    110116Yes, there are a number of these.
    111117
    112 These are listed and described at [filters.md](https://github.com/NeilWJames/email-notice-wp-document-revisions/blob/main/docs/filters.md).
     118These are listed and described at [filters.md](../docs/filters.md).
    113119
    114120== Changelog ==
     121
     122= 3.2 =
     123Release date: April 18, 2025
     124
     125* NEW: GitHub documentation included in plugin and explicitly linked.
     126* NEW: Text domain changed as plugin_check plugin complains.
     127* FIX: Settings sanitized on update.
     128* FIX: Notification-specific text message metabox reviewed.
     129* FIX: Filter wpdr_en_ext_attach_notice withdrawn as effectively replaced by global setting.
     130* FIX: Consistent use of word email (rather than e-mail)
     131* FIX: Review uninstall process
    115132
    116133= 3.1 =
  • email-notice-wp-document-revisions/trunk/uninstall.php

    r3212640 r3276769  
    3535    delete_option( 'wpdr_en_set_subject' );
    3636    delete_option( 'wpdr_en_set_content' );
    37     // phpcs:ignore Squiz.PHP.CommentedOutCode
    38     // #TODO: purge
     37    delete_option( 'wpdr_en_set_exttext' );
     38    delete_option( 'wpdr_en_set_ext_attach' );
     39    delete_option( 'wpdr_en_set_repeat' );
     40
     41    // Remove DEL posts.
     42    $dels = get_posts(
     43        array(
     44            'post_type'   => 'doc_ext_list',
     45            'numberposts' => -1,
     46        )
     47    );
     48    foreach ( $dels as &$del ) {
     49        wp_delete_post( $del->ID, true );
     50    }
    3951
    4052    // delete wpdr_en_notification_sent flags.
     
    118130foreach ( $wp_roles->role_names as $wrole => $label ) {
    119131    $role_caps = $wp_roles->roles[ $wrole ]['capabilities'];
    120     if ( array_key_exists( 'edit_doc_ext_list', $role_caps ) ) {
    121         $wp_roles->remove_cap( $wrole, 'edit_doc_ext_list' );
     132    if ( array_key_exists( 'edit_doc_ext_lists', $role_caps ) ) {
     133        $wp_roles->remove_cap( $wrole, 'edit_doc_ext_lists' );
     134    }
     135    if ( array_key_exists( 'delete_doc_ext_lists', $role_caps ) ) {
     136        $wp_roles->remove_cap( $wrole, 'delete_doc_ext_lists' );
    122137    }
    123138}
  • email-notice-wp-document-revisions/trunk/wpdr-email-notice.php

    r3212640 r3276769  
    44 * Plugin URI:        http://github.com/NeilWJames/email-notice-wp-document-revisions
    55 * Description:       Add-on plugin to WP Document Revisions to notify users about new documents published.
    6  * Version:           3.1
     6 * Version:           3.2
    77 * Author:            Neil James
    88 * Author URI:        http://github.com/NeilWJames
     
    1010 * Requires at least: 4.9
    1111 * Requires PHP:      7.4
    12  * Text Domain:       wpdr-email-notice
     12 * Text Domain:       email-notice-wp-document-revisions
    1313 * Domain Path:       /languages
    1414 *
     
    2626        echo wp_kses_post( '<div class="notice notice-warning is-dismissible"><p>' );
    2727        // translators: Do not translate Email Notice WP Document Revisions or WP Document Revisions.
    28         esc_html_e( 'Plugin Email Notice WP Document Revisions is activated but its required plugin WP Document Revisions is not.', 'wpdr-email-notice' );
     28        esc_html_e( 'Plugin Email Notice WP Document Revisions is activated but its required plugin WP Document Revisions is not.', 'email-notice-wp-document-revisions' );
    2929        echo wp_kses_post( '</p><p>' );
    3030        // translators: Do not translate Email Notice WP Document Revisions.
    31         esc_html_e( 'Plugin Email Notice WP Document Revisions will not activate its functionality.', 'wpdr-email-notice' );
     31        esc_html_e( 'Plugin Email Notice WP Document Revisions will not activate its functionality.', 'email-notice-wp-document-revisions' );
    3232        echo wp_kses_post( '</p></div>' );
    3333    }
Note: See TracChangeset for help on using the changeset viewer.