-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored some code for Moodle coding guidelines compliance.
- Loading branch information
1 parent
fe80365
commit 8c4aa99
Showing
4 changed files
with
68 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,27 +25,24 @@ | |
|
||
defined('MOODLE_INTERNAL') || die(); | ||
|
||
$string['pluginname'] = 'Contact Form'; | ||
$string['privacy:metadata'] = 'The Contact Form plugin does not store any personal data about any user.'; | ||
$string['globalhelp'] = 'Contact Form is a plugin for Moodle that allows your site to process information submitted through HTML web forms to the site\'s support email address.'; | ||
$string['attachment'] = 'Enable file attachments'; | ||
$string['attachment_description'] = 'When enabled, Contact Form will support one attachment. See README.md for details on how to add support for an attachment to your form.'; | ||
$string['configure'] = 'Configure this plugin'; | ||
$string['confirmationpage'] = 'Status'; | ||
|
||
$string['field-name'] = 'name'; | ||
$string['field-email'] = 'email'; | ||
$string['field-subject'] = 'subject'; | ||
$string['field-message'] = 'message'; | ||
|
||
$string['noreplyto'] = 'No reply-to'; | ||
$string['noreplyto_description'] = 'Some SMTP servers reject emails if the from and noreply-to fields in the heading are different. Enable this option to ensure that the no-reply field matches the from address instead of the sender\'s email address.'; | ||
|
||
$string['confirmationemail'] = ' | ||
<p>Dear [fromname],</p> | ||
<p>Thank you for contacting us. If required, we will be in touch with you very soon.</p> | ||
<p>Regards,</p> | ||
<p>[supportname]<br> | ||
[sitefullname]<br> | ||
<a href="[siteurl]">[siteurl]</a></p> | ||
'; | ||
$string['confirmationmessage'] = 'Thank you for contacting us. If required, we will be in touch with you very soon.'; | ||
$string['confirmationpage'] = 'Status'; | ||
$string['confirmationsent'] = 'An email has been sent to your address at {$a}.'; | ||
$string['forbidden'] = 'Forbidden'; | ||
$string['errorsendingtitle'] = 'Failed to send e-mail'; | ||
$string['errorsending'] = 'An error occurred while sending the message. Please try again later.'; | ||
|
||
$string['defaultsubject'] = 'New message'; | ||
$string['duplicateemailaddresses'] = 'There are multiple users with the same email address.'; | ||
$string['errorsending'] = 'An error occurred while sending the message. Please try again later.'; | ||
$string['errorsendingtitle'] = 'Failed to send e-mail'; | ||
$string['extrainfo'] = '<hr> | ||
<p><strong>Additional User Information</strong></p> | ||
<ul> | ||
|
@@ -56,21 +53,30 @@ | |
<li><strong>Web Form:</strong> <a href="[http_referer]">[http_referer]</a></li> | ||
</ul> | ||
'; | ||
$string['confirmationemail'] = ' | ||
<p>Dear [fromname],</p> | ||
<p>Thank you for contacting us. If required, we will be in touch with you very soon.</p> | ||
<p>Regards,</p> | ||
<p>[supportname]<br> | ||
[sitefullname]<br> | ||
<a href="[siteurl]">[siteurl]</a></p> | ||
'; | ||
$string['field-email'] = 'email'; | ||
$string['field-message'] = 'message'; | ||
$string['field-name'] = 'name'; | ||
$string['field-subject'] = 'subject'; | ||
$string['forbidden'] = 'Forbidden'; | ||
$string['globalhelp'] = 'Contact Form is a plugin for Moodle that allows your site to process information submitted through HTML web forms to the site\'s support email address.'; | ||
$string['lockedout'] = 'LOCKED OUT'; | ||
$string['loginrequired'] = 'Login required'; | ||
$string['loginrequired_description'] = 'Only allow logged-in users to submit the Contact forms. Guests are not considered to be logged-in.'; | ||
$string['norecaptcha'] = 'No ReCAPTCHA'; | ||
$string['norecaptcha_description'] = 'Don\'t use ReCAPTCHA with forms procesed by Contact form.'; | ||
$string['noreplyto'] = 'No reply-to'; | ||
$string['noreplyto_description'] = 'Some SMTP servers reject emails if the from and noreply-to fields in the heading are different. Enable this option to ensure that the no-reply field matches the from address instead of the sender\'s email address.'; | ||
$string['nosubjectsitename'] = 'No site name in email subject field'; | ||
$string['nosubjectsitename_description'] = 'Enable to not prefix email subject with [site name]. Does not affect Moodle\'s own <strong>Email subject prefix text</strong> setting.'; | ||
$string['notconfirmed'] = 'NOT CONFIRMED'; | ||
$string['duplicateemailaddresses'] = 'There are multiple users with the same email address.'; | ||
|
||
$string['senderaddress'] = 'Custom sender'; | ||
$string['senderaddress_description'] = 'Emails will be delivered from this email address. If this field is blank, emails will be delivered from the no-reply email address.'; | ||
|
||
$string['pluginname'] = 'Contact Form'; | ||
$string['privacy:metadata'] = 'The Contact Form plugin does not store any personal data about any user.'; | ||
$string['recapchainfo'] = 'Using ReCAPTCHA'; | ||
$string['recapchainfo_description'] = 'ReCAPTCHA is currently enabled in Moodle. You <strong>must</strong>:<br> | ||
<ul> | ||
<li>Ensure that the {recaptcha} tag is included in all forms processed by Contact Form for Moodle.</li> | ||
<li>Ensure that the <a href="https://moodle.org/plugins/filter_filtercodes">FilterCodes plugin</a> is installed and enabled.</li> | ||
</ul>'; | ||
$string['recipient_list'] = 'List of available recipients'; | ||
$string['recipient_list_description'] = 'You can configure a list of potential recipients here, any of which can be used in a Contact Form to specify the email recipient using a hidden text field, or in a select dropdown list to allow users to select the recipient without divulging the recipient\'s actual email address. If the list is empty, emails will be sent to the Moodle email address, either the support email address or the primary Moodle administrator. | ||
Each line must consist of a unique text alias/label, a single email address and a name, each separated by pipe characters. For example: | ||
|
@@ -86,22 +92,5 @@ | |
science|[email protected]|Mr. Edison | ||
philosophy|[email protected]|Aristotle | ||
</pre>'; | ||
|
||
$string['loginrequired'] = 'Login required'; | ||
$string['loginrequired_description'] = 'Only allow logged-in users to submit the Contact forms. Guests are not considered to be logged-in.'; | ||
|
||
$string['nosubjectsitename'] = 'No site name in email subject field'; | ||
$string['nosubjectsitename_description'] = 'Enable to not prefix email subject with [site name]. Does not affect Moodle\'s own <strong>Email subject prefix text</strong> setting.'; | ||
|
||
$string['attachment'] = 'Enable file attachments'; | ||
$string['attachment_description'] = 'When enabled, Contact Form will support one attachment. See README.md for details on how to add support for an attachment to your form.'; | ||
|
||
$string['recapchainfo'] = 'Using ReCAPTCHA'; | ||
$string['recapchainfo_description'] = 'ReCAPTCHA is currently enabled in Moodle. You <strong>must</strong>:<br> | ||
<ul> | ||
<li>Ensure that the {recaptcha} tag is included in all forms processed by Contact Form for Moodle.</li> | ||
<li>Ensure that the <a href="https://moodle.org/plugins/filter_filtercodes">FilterCodes plugin</a> is installed and enabled.</li> | ||
</ul>'; | ||
|
||
$string['norecaptcha'] = 'No ReCAPTCHA'; | ||
$string['norecaptcha_description'] = 'Don\'t use ReCAPTCHA with forms procesed by Contact form.'; | ||
$string['senderaddress'] = 'Custom sender'; | ||
$string['senderaddress_description'] = 'Emails will be delivered from this email address. If this field is blank, emails will be delivered from the no-reply email address.'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters