<?php
$lang['friendlyname'] = 'UpCoupon Module';
$lang['admindescription'] = 'A module to setup an online lottery, coupon code registration system.';
$lang['approve_status'] = 'Set status to &#039;Active&#039;';
$lang['revert_status'] = 'Set status to &#039;Inactive&#039;';
$lang['approve_default'] = 'Set default to &#039;Active&#039;';
$lang['revert_default'] = 'Set default to &#039;Inactive&#039;';
$lang['active'] = 'فعال';
$lang['inactive'] = 'غیر فعال';
$lang['yes'] = 'بله';
$lang['no'] = 'خیر';
$lang['title'] = 'عنوان';
$lang['alias'] = 'نام مستعار';
$lang['description'] = 'توضیحات';
$lang['start_date'] = 'تاریخ شروع';
$lang['end_date'] = 'تاریخ پایان';
$lang['status'] = 'Status';
$lang['select'] = 'انتخاب';
$lang['action'] = 'Coupon action';
$lang['is_final'] = 'Final Draw?';
$lang['period'] = 'Coupon period';
$lang['prize_code'] = 'Prize code';
$lang['number'] = 'شماره';
$lang['total_number'] = 'Total';
$lang['free_number'] = 'Available';
$lang['given_number'] = 'Allotted';
$lang['action_period'] = 'Coupon Action / Coupon Period';
$lang['draw_coupon'] = 'Draw Coupon';
$lang['withdraw_coupon'] = 'Withdraw Coupon';
$lang['registrations'] = 'Registrations';
$lang['name'] = 'نام';
$lang['default'] = 'پیش&zwnj;فرض';
$lang['template_type'] = 'Template type';
$lang['template_register'] = 'Template registration';
$lang['template_winner'] = 'Template winner';
$lang['template_prize'] = 'Template prize';
$lang['template_code'] = 'Template code';
$lang['preferences_underconstruction'] = 'Currently preferences are not applied, the admin interface will save the data.';
$lang['p_section_email_registered_customer'] = 'E-mail customer after registration of coupon code?';
$lang['p_email_registered_true'] = 'Currrently customer receive e-mail messages, all preferences are completed correctly.';
$lang['p_email_registered_false'] = 'Currently customer does <u>not</u> receive e-mail messages. Not all preferences are competed correctly.';
$lang['p_email_registered_check'] = 'Yes is on, no is out';
$lang['p_email_registered_subject'] = 'Subject of the e-mail message';
$lang['p_email_registered_subject_default'] = 'Thank you for registering';
$lang['p_email_registered_address_email'] = 'E-mail address sender';
$lang['p_email_registered_address_email_help'] = 'Be aware! Some providers only allow an e-mail address which corresponds with the domain name.';
$lang['p_email_registered_address_name'] = 'Name of sender';
$lang['p_email_registered_message'] = 'E-mail (registered user) message';
$lang['email_registered_message_vars'] = 'Which variables may be used in an e-mail (registered user) message?';
$lang['email_registered_message_vars_list'] = '<code>{$email.first_name}</code> - First name<br />
<code>{$email.last_name}</code> - Last name<br />
<code>{$email.email}</code> - E-mail<br />
<code>{$email.phone}</code> - Telephone number<br />
<code>{$email.newsletter}</code> - Newsletter 0 = no 1 = yes<br />
<code>{$email.coupon_code}</code> - Coupon code without dashes<br />
<code>{$email.dashed_coupon_code}</code> - Coupon code with dashes<br />
<code>{$email.timestamp}</code> - Timestamp in unix format<br />
<code>{$email.db_timestamp}</code> - Timestamp in database format<br /><br />

It is possible to use Smarty modifiers or filters for the variable in the e-mail message, such as: <br />
<code>{$email.db_timestamp|date_format:&quot;%d %B %Y&quot;}</code><br /><br />';
$lang['p_email_registered_message_winner'] = 'E-mail (winning user) message';
$lang['email_registered_message_winner_vars'] = 'Which variables may be used in an e-mail (winning user) message?';
$lang['email_registered_message_winner_vars_list'] = '<code>{$email.action_title}</code> - Title of the coupon action<br />
<code>{$email.coupon_action_id}</code> - Unique id of the coupon action<br />
<code>{$email.period_title}</code> - Title of the coupon period<br />
<code>{$email.coupon_period_id}</code> - Unique id of the coupon period<br />
<code>{$email.prize_title}</code> - Title of the prize<br />
<code>{$email.prize_code}</code> - Code of the prize<br />
<code>{$email.number}</code> - Total number of this prize<br />
<code>{$email.coupon_prize_id}</code> - Unique id of this prize<br />
<code>{$email.coupon_customer_id}</code> - Unique id of winning customer<br />
<code>{$email.first_name}</code> - First name<br />
<code>{$email.last_name}</code> - Last name<br />
<code>{$email.email}</code> - Email<br />
<code>{$email.dashed_phone}</code> - Phone number with dashes every 3 digits<br />
<code>{$email.phone}</code> - Phone number (without dashes)<br />
<code>{$email.coupon_code_id}</code> - Unique id of the coupon code<br />
<code>{$email.db_timestamp}</code> - Timestamp, when was the coupon code registered<br />
<code>{$email.dashed_coupon_code}</code> - Coupon code with dashes every 4 digits<br />
<code>{$email.coupon_code}</code> - Coupon code (without dashes)<br /><br />

It is possible to use Smarty modifiers or filters for the variable in the e-mail message, such as: <br />
<code>{$email.db_timestamp|date_format:&quot;%d %B %Y&quot;}</code><br /><br />';
$lang['register_coupon_code'] = 'Register coupon code';
$lang['first_name'] = 'First name';
$lang['last_name'] = 'Last name';
$lang['email'] = 'E-mail';
$lang['phone'] = 'Telephone number';
$lang['terms_and_conditions'] = 'Terms and Conditions';
$lang['terms_and_conditions_agree'] = 'بله، قبول می&zwnj;کنم';
$lang['newsletter'] = 'خبرنامه';
$lang['newsletter_agree'] = 'بله، می&zwnj;خواهم خبرنامه را دریافت کنم';
$lang['coupon_code'] = 'Coupon code';
$lang['s_s_coupon_code_registered'] = 'Dear %s %s, <br /><br /> Your coupon code has been registered. If you would like to register another coupon code, please enter the next coupon code and accept the terms and conditions.';
$lang['s_delete_coupon_code_cookie'] = 'Would you like us to delete the saved data that was entered into the form or would you like to register a coupon code for someone else? <br /><br />  Click <a href="%s">here</a> to clear the form';
$lang['js_required'] = 'Required';
$lang['js_optional'] = 'Optional';
$lang['js_email'] = 'Enter a valide e-mail address';
$lang['js_number'] = 'Only enter digits';
$lang['js_minlength'] = 'Enter {0} digits';
$lang['js_minlength_multiple'] = 'Enter {0} digits per field';
$lang['postinstall'] = 'Please, make sure that users who manage UpCoupon are provided with &quot;UpCoupon&quot; rights.';
$lang['postuninstall'] = 'UpCoupon is succesfully deinstalled.';
$lang['areyousure'] = 'آیا مطمئن هستید؟';
$lang['accessdenied'] = 'Access denied (&#039;%s&#039;)';
$lang['accessallowed'] = 'Access allowed';
$lang['not_allowed'] = 'This is not allowed';
$lang['no_s_given'] = 'You did not enter a &#039;%s&#039; ';
$lang['s_notgiven'] = '&#039;%s&#039; is not filled in';
$lang['s_s_alreadygiven'] = '%s: &#039;%s&#039; has already been entered';
$lang['error_invaliddates'] = 'One or more date fields are invalid';
$lang['template_exists'] = 'This template already exists';
$lang['errorinsertingtemplate'] = 'The factory settings default template cannot be opened';
$lang['coupon_action_missing'] = 'Before &#039;Coupon Periods&#039; can be entered, active &#039;Coupon Actions&#039; should be available';
$lang['coupon_period_missing'] = 'Before &#039;Prizes&#039; can be entered, active &#039;Coupon Periods&#039; should be available';
$lang['s_s_couponperiod_mismatch'] = 'The start and end date of the &#039;Coupon Period&#039; has to be between %s and %s';
$lang['need_registered_customer'] = 'To draw a coupon for this period (more) registered customers are needed';
$lang['action_s'] = 'Coupon Action';
$lang['action_p'] = 'Coupon Actions';
$lang['period_s'] = 'Coupon Period';
$lang['period_p'] = 'Coupon Periods';
$lang['prize_s'] = 'Prize';
$lang['prize_p'] = 'Prizes';
$lang['winner_s'] = 'Winner';
$lang['winner_p'] = 'Winners';
$lang['statistics_s'] = 'Statistic';
$lang['statistics_p'] = 'Statistics';
$lang['templates_s'] = 'Template';
$lang['templates_p'] = 'Templates';
$lang['preferences_s'] = 'Preference';
$lang['preferences_p'] = 'Preferences';
$lang['add'] = 'اضافه';
$lang['edit'] = 'ویرایش';
$lang['delete'] = 'حذف';
$lang['submit'] = 'ثبت';
$lang['cancel'] = 'انصراف';
$lang['apply'] = 'اجرا';
$lang['factory'] = 'Factory settings';
$lang['delete_selected_items'] = 'حذف موارد انتخاب شده';
$lang['s_add'] = 'Add %s';
$lang['s_edit'] = 'Edit %s';
$lang['s_delete'] = 'Delete %s';
$lang['s_change_status'] = 'Change status %s';
$lang['s_change_default'] = 'Change default %s';
$lang['s_added'] = '%s added';
$lang['s_edited'] = '%s edited';
$lang['s_deleted'] = '%s deleted';
$lang['s_changed_status'] = '%s status changed';
$lang['s_changed_default'] = '%s default changed';
$lang['help'] = '<h2>Documentation</h2><br />

The UpCoupon module has been developed for a shop owners association. Each year the association organizes a lottery amongst its customers. When one spends an x amount in a participating shop, one receives a voucher with a &#039;Coupon Code&#039;. 

To join the lottery, the customer has to enter the &#039;Coupon Code&#039; on the assosiation-website, together with other details, such as name and address. <br /><br />

<h2>The admin interface of this module has various functionalities:</h2><br />

<b>Coupon Actions</b> - tab <br />

Here you can add several lotteries. <br />

Such as a summer lottery or a winter lottery. Each lottery needs to have a title, alias, description, startdate, enddate and status. <br /><br />

<font color=#FF0000><b>!</b></font> The startdate of the &#039;Coupon Action&#039; always has to be an earlier date than the enddate. <br /><br />

<b>Coupon Periods</b> - tab <br />

Here the periods in which the draw(s) take(s) place can be added. <br />

The summer lottery could for instance have four weekly draws and a final draw at the end of the period. Each &#039; Coupon Period&#039; needs to have a coupon_actie (as submitted under &#039; Coupon Actions&#039;), title, startdate, enddate, Final draw (yes/no) and status. <br /><br />

<font color=#FF0000><b>!</b></font> The startdate of the &#039;Coupon Period&#039; always has to be an earlier date than the enddate and has to occur within the start- and enddate of the &#039; Coupon Action&#039;.<br /><br />

<font color=#FF0000><b>!</b></font> Usually all customers participating in the lottery have a chance on winning the final draw. Therefore the period of the &#039;Final draw&#039; usually starts at the startdate of the &#039;Coupon Action&#039; up and until the enddate of the &#039;Coupon Action&#039;.  <br /><br />

<font color=#FF0000><b>Tip</b></font> Make sure that the startdate starts at 00:00:00 and ends at 23:59:59. In doing so, a lottery or period runs for 24 hours (an entire calender day).<br /><br />

<font color=#FF0000><b>Tip</b></font> The &#039;Coupon Period&#039; is by default sorted by enddate. By adjusting the enddate-time with just one second, the order is adjusted as well. It would be strange if - at the frontend - the Final draw is shown prior to the last draw(not the Final draw). Therefore it is advised to - if the Final draw has the same enddate as the last (non-final) draw - adjust the enddate-time of one of them, in order to have to right order shown at the frontend.<br /><br />

<b>Prizes</b> - tab <br />

Prizes can be connected to each &#039;Coupon Action&#039; or &#039;Coupon Period&#039;. When adding a prize, Coupon Code, Coupon Action, Prize code, title, description, number and status have to be entered. <br /><br />

<b>Winners</b> - tab <br />

Out of the registered coupon codes, one or more winners can be drawn. After selecting &#039;Coupon Action&#039;, &#039;Coupon Period&#039; and prize, one can click on the &quot; Draw coupon&#039; button. The winner is randomly drawn from the database with registered coupon codes and is shown. <br /><br />

<b>Statistics</b> - tab <br />

When registering a coupon code, a timestamp is generated and saved. By using this timestamp together with the start- and enddate of a &#039; Coupon Action&#039; and &#039;Coupon Period the statistics are created. <br /><br />

<b>Templates</b> - tab <br />

The UpCoupon module has various templates, such as the template Registration, Winner and Prizes. The templates are used for the frontend. When adding a templates, a name, template type and template code can be entered. <br /><br />

By using the factory settings button, the template code field automatically is set to use the default template. <br /><br />

<b>Preferences</b> - tab <br />

A customer who has registered his &#039;Coupon Code&#039;, will receive a confirmation by e-mail, if all e-mail preferences are correclty completed. <br /><br />

<h2>Support</h2>
<p>This module does not include commercial support. However, there are a number of resources available to help you with it:</p>
<ul>
<li>For the latest version of this module, FAQs, or to file a Bug Report or buy commercial support, please visit the cms development forge at <a href="http://dev.cmsmadesimple.org">dev.cmsmadesimple.org</a>.</li>
<li>Additional discussion of this module may also be found in the <a href="http://forum.cmsmadesimple.org">CMS Made Simple Forums</a>.</li>
<li>The author(s), arnoud et all can sometimes be found in the <a href="irc://irc.freenode.net/#cms">CMS IRC Channel</a>.</li>
<li>Lastly, you may have some success emailing the author(s) directly.</li>  
</ul>
<p>As per the GPL, this software is provided as-is. Please read the text
of the <a href="http://www.gnu.org/licenses/licenses.html#GPL">license</a> for the full disclaimer.</p>

<h2>Copyright and License</h2>
<p>Copyright &copy; 2011, Arnoud van Susteren <a href="mailto:arnoud@upservice.nl"><arnoud@upservice.nl></a>. All Rights Are Reserved.</p>
<p>This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.</p>
<p>However, as a special exception to the GPL, this software is distributed
as an addon module to CMS Made Simple.  You may not use this software
in any Non GPL version of CMS Made simple, or in any version of CMS
Made simple that does not indicate clearly and obviously in its admin 
section that the site was built with CMS Made simple.</p>
<p>This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Or read it <a href="http://www.gnu.org/licenses/licenses.html#GPL">online</a></p>

<br />
';
$lang['help_action'] = '<br />
<code>{UpCoupon action=&#039;show_register&#039;}</code> - Show the registration page. <br />
<code>{UpCoupon action=&#039;show_prize&#039;}</code> - Show the prize page. <br />
<code>{UpCoupon action=&#039;show_winner&#039;}</code> - Show the winner page. <br /><br />

<font color=#FF0000><b>!</b></font> If no action is specified, a warning will be shown. <br />

<font color=#FF0000><b>!</b></font> For the &#039;show_register&#039; action it&#039;s possible to check field values via JavaScript. Todo so be sure to load jquery.validate.js you can find this file into the modules/UpCoupon/js folder.<br /><br />

<b>* Before the coupon action takes place the upcoupon_code database must be filled with codes. The webdeveloper should write a query to set coupon_prize_id to &#039;0&#039; and coupon_code to a 16 digit code. For example: INSERT INTO cms_module_upcoupon_code VALUES (&#039;&#039;, &#039;0&#039;, &#039;&#039;, &#039;0000000000000000&#039;, &#039;&#039;)</b><br />

<br />
';
$lang['help_template'] = '<br />
<code>{UpCoupon action=&#039;show_register&#039; template=&#039;name_of_register_template&#039;}</code> <br />

<font color=#FF0000><b>!</b></font> If no template is specified, or the name of the template is unknown, the default template will be used. </br ></br >

<font color=#FF0000><b>!</b></font> If no standard template can be found, the default template (factory settings) shall be used. <br /><br />

<font color=#FF0000><b>!</b></font> The available templates can be found under the &#039;Templates&#039;  tab. <br />

<br />';
$lang['help_coupon_action_id'] = '<br />
<code>{UpCoupon action=&#039;show_prize&#039; coupon_action_id=&#039;1&#039;}</code> - Show all prizes belonging to coupon_action_id &#039;1&#039;. <br /><br />

<font color=#FF0000><b>!</b></font> The &#039;coupon_action_id&#039; can be found under &#039;Coupon Actions&#039; tab. It is shown in front of the title of each specific action. &#039;Coupon Actions&#039; which are set to inactive are not shown.


<br />';
$lang['eventdesc-UpCouponActionAdded'] = 'Sent when an action is added';
$lang['eventhelp-UpCouponActionAdded'] = '<p>x Sent when an action is added</p>

<h3>Parameters</h3>
<ul>
<li></li>
</ul>';
$lang['eventdesc-UpCouponActionEdited'] = 'Sent when an action is edited';
$lang['eventhelp-UpCouponActionEdited'] = '<p>Sent when an action is edited</p>

<h3>Parameters</h3>
<ul>
<li></li>
</ul>';
$lang['eventdesc-UpCouponActionDeleted'] = 'Sent when an action is deleted';
$lang['eventhelp-UpCouponActionDeleted'] = '<p>Sent when an action is deleted</p>

<h3>Parameters</h3>
<ul>
<li></li>
<li></li>
</ul>';
$lang['eventdesc-UpCouponPeriodAdded'] = 'Sent when a period is added';
$lang['eventhelp-UpCouponPeriodAdded'] = '<p>x Sent when a period is added</p>

<h3>Parameters</h3>
<ul>
<li></li>
</ul>';
$lang['eventdesc-UpCouponPeriodEdited'] = 'Sent when a period is edited';
$lang['eventhelp-UpCouponPeriodEdited'] = '<p>Sent when a period is edited</p>

<h3>Parameters</h3>
<ul>
<li></li>
</ul>';
$lang['eventdesc-UpCouponPeriodDeleted'] = 'Sent when a period is deleted';
$lang['eventhelp-UpCouponPeriodDeleted'] = '<p>Sent when a period is deleted</p>

<h3>Parameters</h3>
<ul>
<li></li>
<li></li>
</ul>';
$lang['eventdesc-UpCouponPrizeAdded'] = 'Sent when a prize is added';
$lang['eventhelp-UpCouponPrizeAdded'] = '<p>x Sent when a prize is added</p>

<h3>Parameters</h3>
<ul>
<li></li>
</ul>';
$lang['eventdesc-UpCouponPrizeEdited'] = 'Sent when a prize is edited';
$lang['eventhelp-UpCouponPrizeEdited'] = '<p>Sent when a prize is edited</p>

<h3>Parameters</h3>
<ul>
<li></li>
</ul>';
$lang['eventdesc-UpCouponPrizeDeleted'] = 'Sent when a prize is deleted';
$lang['eventhelp-UpCouponPrizeDeleted'] = '<p>Sent when a prize is deleted</p>

<h3>Parameters</h3>
<ul>
<li></li>
<li></li>
</ul>';
$lang['eventdesc-UpCouponWinnerAdded'] = 'Sent when a winner is added';
$lang['eventhelp-UpCouponWinnerAdded'] = '<p>x Sent when a winner is added</p>

<h3>Parameters</h3>
<ul>
<li></li>
</ul>';
$lang['eventdesc-UpCouponWinnerEdited'] = 'Sent when a winner is edited';
$lang['eventhelp-UpCouponWinnerEdited'] = '<p>Sent when a winner is edited</p>

<h3>Parameters</h3>
<ul>
<li></li>
</ul>';
$lang['eventdesc-UpCouponWinnerDeleted'] = 'Sent when a winner is deleted';
$lang['eventhelp-UpCouponWinnerDeleted'] = '<p>Sent when a winner is deleted</p>

<h3>Parameters</h3>
<ul>
<li></li>
<li></li>
</ul>';
$lang['eventdesc-UpCouponTemplateAdded'] = 'Sent when a template is added';
$lang['eventhelp-UpCouponTemplateAdded'] = '<p>x Sent when a template is added</p>

<h3>Parameters</h3>
<ul>
<li></li>
</ul>';
$lang['eventdesc-UpCouponTemplateEdited'] = 'Sent when a template is edited';
$lang['eventhelp-UpCouponTemplateEdited'] = '<p>Sent when a template is edited</p>

<h3>Parameters</h3>
<ul>
<li></li>
</ul>';
$lang['eventdesc-UpCouponTemplateDeleted'] = 'Sent when a template is deleted';
$lang['eventhelp-UpCouponTemplateDeleted'] = '<p>Sent when a template is deleted</p>

<h3>Parameters</h3>
<ul>
<li></li>
<li></li>
</ul>';
$lang['eventdesc-UpCouponPreferenceAdded'] = 'Sent when a preference is added';
$lang['eventhelp-UpCouponPreferenceAdded'] = '<p>x Sent when a preference is added</p>

<h3>Parameters</h3>
<ul>
<li></li>
</ul>';
$lang['eventdesc-UpCouponPreferenceEdited'] = 'Sent when a preference is edited';
$lang['eventhelp-UpCouponPreferenceEdited'] = '<p>Sent when a preference is edited</p>

<h3>Parameters</h3>
<ul>
<li></li>
</ul>';
$lang['eventdesc-UpCouponPreferenceDeleted'] = 'Sent when a preference is deleted';
$lang['eventhelp-UpCouponPreferenceDeleted'] = '<p>Sent when a preference is deleted</p>

<h3>Parameters</h3>
<ul>
<li></li>
<li></li>
</ul>';
$lang['utma'] = '156861353.1929246280.1318797704.1318797704.1318797704.1';
$lang['utmb'] = '156861353.1.10.1318797704';
$lang['utmc'] = '156861353';
$lang['utmz'] = '156861353.1318797704.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=cms made simple';
$lang['qca'] = 'P0-1918085956-1318797704094';
?>