<?php

/* $Id: en.lang.php 6265 2012-02-21 13:53:01Z nastya $ */

define("NETCAT_MODULE_SUBSCRIBES", "Subsribes");
define("NETCAT_MODULE_SUBSCRIBE_DESCRIPTION", "Now you can create your own subscribes.");

define("NETCAT_MODULE_SUBSCRIBE_ADM_GETUSERS", "Search");
define("NETCAT_MODULE_SUBSCRIBE_ADM_ALLUSERS", "all");
define("NETCAT_MODULE_SUBSCRIBE_ADM_TURNEDON", "turned on");
define("NETCAT_MODULE_SUBSCRIBE_ADM_TURNEDOFF", "turned off");
define("NETCAT_MODULE_SUBSCRIBE_ADM_USERID", "user ID");
define("NETCAT_MODULE_SUBSCRIBE_ADM_CLASSID", "class in section ID");
define("NETCAT_MODULE_SUBSCRIBE_BUT_GETIT", "Get");
define("NETCAT_MODULE_SUBSCRIBE_ADM_CLASSINSECTION", "Class in section");
define("NETCAT_MODULE_SUBSCRIBE_ADM_USER", "User");
define("NETCAT_MODULE_SUBSCRIBE_ADM_STATUS", "Status");
define("NETCAT_MODULE_SUBSCRIBE_ADM_DELETE", "Delete");
define("NETCAT_MODULE_SUBSCRIBE_ADM_CANCEL", "Cancel");
define("NETCAT_MODULE_SUBSCRIBE_ADM_SAVE", "Delete selected");
define("NETCAT_MODULE_SUBSCRIBE_MSG_NOSUBSCRIBER", "No one subscriber.");

define("NETCAT_MODULE_SUBSCRIBE_ADM_TURNON", "turn on");
define("NETCAT_MODULE_SUBSCRIBE_ADM_TURNOFF", "turn off");
define("NETCAT_MODULE_SUBSCRIBE_ADM_TURNOFFCLR", "cccccc");

define("NETCAT_MODULE_SUBSCRIBE_ADM_ACCESSRIGHTS", "Access rights");
define("NETCAT_MODULE_SUBSCRIBE_ADM_PASSCHANGE", "Change password");
define("NETCAT_MODULE_SUBSCRIBE_ADM_SECSITE", "Catalouge selection");
define("NETCAT_MODULE_SUBSCRIBE_ADM_SECSEL", "Section selection");
define("NETCAT_MODULE_SUBSCRIBE_ADM_ADDING", "Adding");
define("NETCAT_MODULE_SUBSCRIBE_ADM_SECTION", "section");
define("NETCAT_MODULE_SUBSCRIBE_SUCCESS", "Thank you. We are very pleased to be of service to you.");

define("NETCAT_MODULE_SUBSCRIBER_ALREADY_SUBSCRIBE", "You are already subscribed");
define("NETCAT_MODULE_SUBSCRIBER_CONFIRM_SENT_AGAIN", "Confirmation email sent to you again.");
define("NETCAT_MODULE_SUBSCRIBER_MAILER_DOES_NOT_EXIST", "Mailer doesn't exist");
define("NETCAT_MODULE_SUBSCRIBER_NOT_SUB_FOR_CC", "Not section");
define("NETCAT_MODULE_SUBSCRIBER_WRONG_EMAIL", "Wrong E-mail");


//main
define("NETCAT_MODULE_SUBSCRIBER_MAILER_NAME", "Mailer name");
define("NETCAT_MODULE_SUBJECT", "Subject");
define("NETCAT_MODULE_HTML_MAIL", "HTML-mail");
define("NETCAT_MODULE_SUBSCRIBER_USER", "User");
define("NETCAT_MODULE_SUBSCRIBE_STATUS", "Status");
define("NETCAT_MODULE_SUBSCRIBE_MAILER", "Mailer");

// settings
define("NETCAT_MODULE_SUBSCRIBER_MAILER_SETTINGS", "Settings");
define("NETCAT_MODULE_SUBSCRIBER_MERGE_MAIL", "Allow messages from all sections");
define("NETCAT_MODULE_SUBSCRIBER_MAX_MAIL", "The maximum number of messages sent in a single run script");
define("NETCAT_MODULE_SUBSCRIBER_FROM_NAME", "From");
define("NETCAT_MODULE_SUBSCRIBER_FROM_EMAIL", "Sender's email");
define("NETCAT_MODULE_SUBSCRIBER_REPLY_TO", "Reply address");
define("NETCAT_MODULE_SUBSCRIBER_CHARSET", "Charter");
define("NETCAT_MODULE_SUBSCRIBER_TEST_EMAIL", "Test email");
define("NETCAT_MODULE_SUBSCRIBER_EMAIL_FIELD", "Field from user table with email");
define("NETCAT_MODULE_SUBSCRIBER_NONE_EMAIL_FIELD", "There is non field with email");
define("NETCAT_MODULE_SUBSCRIBER_SUBSCRIPTION_CONFIRM", "Confirmation");
define("NETCAT_MODULE_SUBSCRIBER_ONLY_UNREGISTERED", "only unregistered");
define("NETCAT_MODULE_SUBSCRIBER_FOR_ONE_SUBSCRIPTION", "the first subscription");
define("NETCAT_MODULE_SUBSCRIBER_ALWAYS", "always");
define("NETCAT_MODULE_SUBSCRIBER_UNCONFIRMED_MAX_TIME", "Remove unconfirmed subscriptions in ( hours)");
define("NETCAT_MODULE_MAIL_BODY", "Body of the mail");
define("NETCAT_MODULE_SUBSCRIBER_OTHER", "Other");
define("NETCAT_MODULE_SUBSCRIBER_SUBSCRIBE_FORM", "Subscribe form");
define("NETCAT_MODULE_SUBSCRIBER_TEXT_CONFIRM", "Confirm text");
define("NETCAT_MODULE_SUBSCRIBER_TEXT_UNSCRIBE", "Text for unsubscription");
define("NETCAT_MODULE_SUBSCRIBER_TEXT_ERROR", "Text for errors");

//ui
define("NETCAT_MODULE_SUBSCRIBER_SAVE_BUTTON", "Save");
define("NETCAT_MODULE_SUBSCRIBER_CLEAR_BUTTON", "Clear");
define("NETCAT_MODULE_SUBSCRIBER_MAILER_ADD", "Add");
define("NETCAT_MODULE_SUBSCRIBER_DELETESELECTED", "Remove selected");
define("NETCAT_MODULE_SUBSCRIBER_SELECTEDOFF", "Turn off selected");
define("NETCAT_MODULE_SUBSCRIBER_SELECTEDON", "Turn on selected");
define("NETCAT_MODULE_SUBSCRIBE_ADD_SUBSCRIBE", "Add");
define("NETCAT_MODULE_SUBSCRIBE_ACTION_SUBSCRIBE", "Subscribe");
define("NETCAT_MODULE_SUBSCRIBE_SEND", "Send");
define("NETCAT_MODULE_SUBSCRIBE_TESTSEND", "Test send");
define("NETCAT_MODULE_SUBSCRIBE_MAILERS", "Subscribes");
define("NETCAT_MODULE_SUBSCRIBE_STATS", "Statistics");
define("NETCAT_MODULE_SUBSCRIBE_ONCE", "Once sent");
define("NETCAT_MODULE_SUBSCRIBE_SETTINGS", "Module settings");

//stats
define("NETCAT_MODULE_SUBSCRIBER_STATS_IS_EMPTY", "Statistics is empty");
define("NETCAT_MODULE_SUBSCRIBER_SUBSCRIBERS_COUNT", "Subscribers count");
define("NETCAT_MODULE_SUBSCRIBER_MAIL_SEND_COUNT", "Mail count");
define("NETCAT_MODULE_SUBSCRIBER_LAST_SEND", "Time of the last send");
define("NETCAT_MODULE_SUBSCRIBER_ACTION", "Action");
define("NETCAT_MODULE_SUBSCRIBER_DATE_TIME", "Date and time");
define("NETCAT_MODULE_SUBSCRIBER_UNRESISTRED_USER", "Unregistered user");
define("NETCAT_MODULE_SUBSCRIBER_MAIL_SEND", "mail send");
define("NETCAT_MODULE_SUBSCRIBER_SUBSCRIBE", "subscribe");
define("NETCAT_MODULE_SUBSCRIBER_CONFIRM", "confirm");
define("NETCAT_MODULE_SUBSCRIBER_UNSUBSCRIBE", "unscribe");
define("NETCAT_MODULE_SUBSCRIBER_FULL_STATS_MAILER", "Statistics of the mailer");

// mailer
define("NETCAT_MODULE_MAILER_NO_ONE_MAILER", "There is not mailer");
define("NETCAT_MODULE_SUBSCRIBER_MAILER_FILTER", "Select mailer");
define("NETCAT_MODULE_SUBSCRIBER_ALL", "all");
define("NETCAT_MODULE_SUBSCRIBER_MAILER_CC", "Subscription on the section");
define("NETCAT_MODULE_SUBSCRIBER_MAILER_PERIODICAL", "Periodical mailer");
define("NETCAT_MODULE_SUBSCRIBER_MAILER_SERVICE", "Service mailer");
define("NETCAT_MODULE_SUBSCRIBER_MAILER_SERIAL", "Serial mailer");
define("NETCAT_MODULE_SUBSCRIBER_ONLY_ACTIVE", "active");
define("NETCAT_MODULE_SUBSCRIBER_ONLY_UNACTIVE", "unactive");
define("NETCAT_MODULE_SUBSCRIBER_FILTER", "Selected");
define("NETCAT_MODULE_SUBSCRIBER_ONLY_ACTIVE", "active");
define("NETCAT_MODULE_SUBSCRIBER_TYPE", "Type");
define("NETCAT_MODULE_SUBSCRIBER_SETTINGS", "Settings");
define("NETCAT_MODULE_SUBSCRIBER_MAIN_SETTINGS", "Main settings");
define("NETCAT_MODULE_SUBSCRIBER_ACCESS_TO", "Access");
define("NETCAT_MODULE_SUBSCRIBER_ACCESS_ALL", "all");
define("NETCAT_MODULE_SUBSCRIBER_ACCESS_REGISTERED", "registred");
define("NETCAT_MODULE_SUBSCRIBER_ACCESS_AUTHORIZED", "authorized");
define("NETCAT_MODULE_SUBSCRIBER_ACTIVE", "active");
define("NETCAT_MODULE_SUBSCRIBER_IN_STAT", "Save full statistics");
define("NETCAT_MODULE_SUBSCRIBER_SPECIFIC_SETTINGS", "Mailer settings");
define("NETCAT_MODULE_SUBSCRIBER_ACTIVE", "active");
define("NETCAT_MODULE_SUBSCRIBER_SITE", "Site");
define("NETCAT_MODULE_SUBSCRIBER_SUBDIVISION", "Section");
define("NETCAT_MODULE_SUBSCRIBER_CC", "Component in the section");
define("NETCAT_MODULE_SUBSCRIBER_ONCLASS", "Subscription on the component");
define("NETCAT_MODULE_SUBSCRIBER_ADD_OBJECT_TO_MAILLIST", "Add message in mailer");
define("NETCAT_MODULE_SUBSCRIBER_ACTION_ADD_ON", "add checked");
define("NETCAT_MODULE_SUBSCRIBER_ACTION_ADD_OFF", "add unchecked");
define("NETCAT_MODULE_SUBSCRIBER_ACTION_EDIT_ON", "edit checked");
define("NETCAT_MODULE_SUBSCRIBER_ACTION_EDIT_OFF", "edit unchecked");
define("NETCAT_MODULE_SUBSCRIBER_ACTION_ON", "checked");
define("NETCAT_MODULE_SUBSCRIBER_ACTION_OFF", "uncheked");
define("NETCAT_MODULE_SUBSCRIBER_COND_AND_ACTION", "Condition");
define("NETCAT_MODULE_SUBSCRIBER_SUBSCRIBE_COND", "Subscribe condition");
define("NETCAT_MODULE_SUBSCRIBER_SEND_COND", "Send condition");
define("NETCAT_MODULE_SUBSCRIBER_SUBSCRIBE_ACTION", "Action after subscribe");
define("NETCAT_MODULE_SUBSCRIBER_MAIL_TEMPLATE", "Mail template");
define("NETCAT_MODULE_SUBSCRIBER_MAIL_TEMPLATE_HEADER", "Mail header");
define("NETCAT_MODULE_SUBSCRIBER_MAIL_TEMPLATE_FOOTER", "Mail footer");
define("NETCAT_MODULE_SUBSCRIBER_MAIL_TEMPLATE_CONTENT", "Mail content");
define("NETCAT_MODULE_SUBSCRIBER_MAILER_TYPE", "Type");
define("NETCAT_MODULE_SUBSCRIBER_MAILER_PERIOD", "Period");
define("NETCAT_MODULE_SUBSCRIBER_CONFIRM_REMOVE_MAILERS", "Confirm remove");
define("NETCAT_MODULE_SUBSCRIBER_NO_SUBSCRIBERS", "There are not subscribers");
define("NETCAT_MODULE_SUBSCRIBER_MAILER_SUBSCRIBER_LIST", "List of subscribers");
define("NETCAT_MODULE_SUBSCRIBE_TURNEDON", "turn on");
define("NETCAT_MODULE_SUBSCRIBE_TURNEDOFF", "turn off");
define("NETCAT_MODULE_SUBSCRIBE_WAIT_CONFIRM", "requires confirmation");
define("NETCAT_MODULE_SUBSCRIBE_UNREGISTERED_USER", "Unresistered user");
define("NETCAT_MODULE_SUBSCRIBE_USER_NOT_SUBSCRIBE", "User has not subscribed for a  mailing");
define("NETCAT_MODULE_SUBSCRIBE_NONE_MAILERS_FOR_USER", "There are not mailing");
define("NETCAT_MODULE_SUBSCRIBE_SELECT_MAILER", "Select mailer");
define("NETCAT_MODULE_SUBSCRIBER_NONE_CC", "There is not component in the section");
define("NETCAT_MODULE_SUBSCRIBER_MAILER_SUCCESS_EDIT", "Mailer updated successfully");
define("NETCAT_MODULE_SUBSCRIBER_MAILER_SUCCESS_ADD", "Mailer added successfully");
define("NETCAT_MODULE_SUBSCRIBER_STATS_DROP", "Stats dropped");
define("NETCAT_MODULE_SUBSCRIBER_SETTINGS_OK", "Settings updated successfully");
define("NETCAT_MODULE_SUBSCRIBER_USER_NOT_FOUND", "There are no users");
define("NETCAT_MODULE_SUBSCRIBER_MAIL_SEND_TO_USER", "Started. Mail will be sent to %d users");

// единоразовая рассылка
define("NETCAT_MODULE_SUBSCRIBER_ONCE_TYPE_USER", "User type");
define("NETCAT_MODULE_SUBSCRIBER_ONCE_REGISTRED", "regisired");
define("NETCAT_MODULE_SUBSCRIBER_ONCE_ALL", "all");
define("NETCAT_MODULE_SUBSCRIBER_USER_CHECK", "User activity");
define("NETCAT_MODULE_SUBSCRIBER_USER_CHECK_ALL", "all");
define("NETCAT_MODULE_SUBSCRIBER_USER_CHECKED", "checked in");
define("NETCAT_MODULE_SUBSCRIBER_USER_NONECHECK", "unchecked");
define("NETCAT_MODULE_SUBSCRIBER_USER_ATTACH", "Attach");
define("NETCAT_MODULE_SUBSCRIBER_FILE_1", "First file");
define("NETCAT_MODULE_SUBSCRIBER_FILE_2", "Second file");
define("NETCAT_MODULE_SUBSCRIBER_FILE_3", "Third file");
define("NETCAT_MODULE_SUBSCRIBER_SUBSCRIBE_USER", "Subscriber users");
define("NETCAT_MODULE_SUBSCRIBER_ONCE_INVALID_TEST_EMAIL", "Invalid test email");
define("NETCAT_MODULE_SUBSCRIBER_ONCE_MAIL_SEND", "Email to %s has been sent.");
define("NETCAT_MODULE_SUBSCRIBER_ONCE_CLASSIFIER_NAME", "Use system classifier of e-mail's(exclude user filter)");
define("NETCAT_MODULE_SUBSCRIBER_ONCE_CLASSIFIER_WRONGNAME", "Table name(classifier) must start with letter and cintain onky letters and digits");
define("NETCAT_MODULE_SUBSCRIBER_ONCE_CLASSIFIER_EMPTY", "Classifier is empty or not exist");

function day_of_week_name($day) {
    $day_names = array(1=>'Monday',
            2 => 'Tuesday',
            3 => 'Wednesday',
            4 => 'Thursday',
            5 => 'Friday',
            6 => 'Saturday',
            0 => 'Sunday');
    return $day_names[$day];
}

define("NETCAT_MODULE_SUBSCRIBER_PERIOD_WEEKLY", "Send weekly by days");
define("NETCAT_MODULE_SUBSCRIBER_PERIOD_WEEKLY_ON", "On");
define("NETCAT_MODULE_SUBSCRIBER_PERIOD_WEEKLY_DAY", "Day");
define("NETCAT_MODULE_SUBSCRIBER_PERIOD_WEEKLY_TIME", "Time to start");
define("NETCAT_MODULE_SUBSCRIBER_PERIOD_MONTHLY", "Send by expression");

define("NETCAT_MODULE_SUBSCRIBER_PERIOD_HELP",
        "With &quot;Send by expression&quot; can create flexible send schedules.<br/><br/>
           Rules consist of prefix, day name and time to start mailing(0-23).<br/>"
        . "Prefix indicate from there to count(start or end of month), or point specific day of month.<br/>"
        . "&nbsp;&nbsp;&nbsp;<b>first</b> - from start, <b>last</b> - from end, <b>15</b> - day of month<br/>"
        . "Day name indicate day of week <br/>"
        . "&nbsp;&nbsp;&nbsp;<b>day</b> - any day<br/>"
        . "&nbsp;&nbsp;&nbsp;<b>wday</b> - work day(from mon to fri)<br/>"
        . "&nbsp;&nbsp;&nbsp;<b>mon, tue, wed, thu, fri, sat</b> или <b>sun</b> - specific day of week<br/>"
        . "Rules must be divided with comma:<br/>"
        . "&nbsp;&nbsp;&nbsp;<b>first thu 10, 15 day 17 , last day 23</b> - mail in first thursday at 10, in 15 day at 17 and in last day of month(28, 30 or 31 depends on month) at 23."
        );

define("NETCAT_MODULE_SUBSCRIBER_STATS_NOTHING", "Nothing found for this conditions");
define("NETCAT_MODULE_SUBSCRIBER_STATS_FROM", "From date");
define("NETCAT_MODULE_SUBSCRIBER_STATS_TO", "to");
define("NETCAT_MODULE_SUBSCRIBER_STATS_FILTER", "Select stats");

define("NETCAT_MODULE_SUBSCRIBER_PERIOD_EACH", "Send");
?>