Current path: home/webdevt/www/demo2/wp-content/plugins/divi-contact-form-helper/d4/app/Admin/Controllers/
?? Go up: /home/webdevt/www/demo2/wp-content/plugins/divi-contact-form-helper/d4/app/Admin
<?php
namespace KS_PAC_DCFH\Admin\Controllers;
if (!defined('ABSPATH')) {
exit;
}
class Strings
{
private static $_instance;
public static function instance(): self
{
if (self::$_instance === null) {
self::$_instance = new self();
}
return self::$_instance;
}
public function strings($key): array
{
$is_multi_language = ks_pac_dcfh_db()::is_setting_enabled('pwh_dcfh_multilingual_enabled');
$strings = [
'admin_i10' => [
'please_wait_text' => __('Please wait...', 'divi-contact-form-helper'),
'smtp_host' => __('SMTP host required.', 'divi-contact-form-helper'),
'smtp_from_email' => __('SMTP from email required.', 'divi-contact-form-helper'),
'smtp_from_name' => __('SMTP from name required.', 'divi-contact-form-helper'),
'smtp_port' => __('SMTP port required.', 'divi-contact-form-helper'),
'smtp_username' => __('SMTP username required.', 'divi-contact-form-helper'),
'smtp_password' => __('SMTP password required.', 'divi-contact-form-helper'),
'smtp_settings_alert' => __('Have you saved your SMTP settings? Please save the settings before testing SMTP.', 'divi-contact-form-helper'),
'select_term' => __('Please Select Term', 'divi-contact-form-helper'),
'not_applicable' => __('Not Applicable', 'divi-contact-form-helper'),
'custom_field_name' => __('Enter custom field name.', 'divi-contact-form-helper'),
'choose_custom_field_name' => __('Choose Custom Field', 'divi-contact-form-helper'),
'tmd_email_address_required' => __('Email Address is required.', 'divi-contact-form-helper'),
],
'frontend_i10' => [
'form_unique_id_warning' => __('Important: Unique ID Required<br>To ensure your form entries are saved correctly in the website database, each contact form must have a unique ID. This ID is essential for connecting the form to the database and identifying which entries belong to each form. Our plugin automatically assigns a unique ID in the "Admin Label" toggle in the Divi Contact Form settings. If you have more than one form on your site, each one must have a unique ID. This is managed automatically unless you duplicate a form using the Divi Builder\'s duplicate button. For more information on using unique IDs, please refer to our <a href="https://www.peeayecreative.com/docs/divi-contact-form-helper/saving-entries-to-database/" target="_blank">plugin documentation</a>.', 'divi-contact-form-helper'),
'file_upload_btn_text' => $is_multi_language ? __('Choose Files', 'divi-contact-form-helper') : ks_pac_dcfh_db()::get_setting('pwh_dcfh_file_upload_btn_text', 'Choose Files'),
'accepted_file_text' => $is_multi_language ? __('Accepted file types:', 'divi-contact-form-helper') : ks_pac_dcfh_db()::get_setting('pwh_dcfh_accepted_file_text', 'Accepted file types:'),
'max_filesize_text' => $is_multi_language ? __('Max. file size:', 'divi-contact-form-helper') : ks_pac_dcfh_db()::get_setting('pwh_dcfh_max_filesize_text', 'Max. file size:'),
'chosen_file_text' => $is_multi_language ? __('No file chosen', 'divi-contact-form-helper') : ks_pac_dcfh_db()::get_setting('pwh_dcfh_chosen_file_text', 'No file chosen'),
'selected_files_text' => $is_multi_language ? __('{chosen_files_count} file{_s_} selected', 'divi-contact-form-helper') : ks_pac_dcfh_db()::get_setting('pwh_dcfh_selected_files_text', '{chosen_files_count} file{_s_} selected'),
'uploading_text' => $is_multi_language ? __('{percentage} uploaded your files, please wait for the system to continue.', 'divi-contact-form-helper') : ks_pac_dcfh_db()::get_setting('pwh_dcfh_uploading_text', '{percentage} uploaded your files, please wait for the system to continue.'),
'already_attached_text' => $is_multi_language ? __('File {filename} has already attached. Please choose another file.', 'divi-contact-form-helper') : ks_pac_dcfh_db()::get_setting('pwh_dcfh_already_attached_text', 'File {filename} has already attached. Please choose another file.'),
'allow_filesize_text' => $is_multi_language ? __('File {filename} not uploaded. Maximum file size {allowed_filesize}.', 'divi-contact-form-helper') : ks_pac_dcfh_db()::get_setting('pwh_dcfh_allow_filesize_text', 'File {filename} not uploaded. Maximum file size {allowed_filesize}.'),
'x_files_allow_text' => $is_multi_language ? __('Only {allowed_files} files are allowed to upload.', 'divi-contact-form-helper') : ks_pac_dcfh_db()::get_setting('pwh_dcfh_x_files_allow_text', 'Only {allowed_files} files are allowed to upload.'),
'remove_file_text' => $is_multi_language ? __('Are you sure you want to remove {filename}?', 'divi-contact-form-helper') : ks_pac_dcfh_db()::get_setting('pwh_dcfh_remove_file_text', 'Are you sure you want to remove {filename}?'),
'delete_file_icon_hover_text' => $is_multi_language ? __('Remove an attachment', 'divi-contact-form-helper') : ks_pac_dcfh_db()::get_setting('pwh_dcfh_delete_file_icon_hover_text', 'Remove an attachment'),
'security_reason_text' => $is_multi_language ? __('File {filename} has failed to upload. Sorry, this file type is not permitted for security reasons.', 'divi-contact-form-helper') : ks_pac_dcfh_db()::get_setting('pwh_dcfh_security_reason_text', 'File {filename} has failed to upload. Sorry, this file type is not permitted for security reasons.'),
'fill_message_text' => $is_multi_language ? __('Please fill in the following fields:', 'divi-contact-form-helper') : ks_pac_dcfh_db()::get_setting('pwh_dcfh_fill_message_text', 'Please fill in the following fields:'),
'fix_message_text' => $is_multi_language ? __('Please fix the following errors:', 'divi-contact-form-helper') : ks_pac_dcfh_db()::get_setting('pwh_dcfh_fix_message_text', 'Please fix the following errors:'),
'siganture_empty_text' => $is_multi_language ? __('The signature pad is empty. Please sign it and then save.', 'divi-contact-form-helper') : ks_pac_dcfh_db()::get_setting('pwh_dcfh_siganture_empty_text', 'The signature pad is empty. Please sign it and then save.'),
'siganture_before_save_text' => $is_multi_language ? __('Are you sure you want to save the signature?', 'divi-contact-form-helper') : ks_pac_dcfh_db()::get_setting('pwh_dcfh_siganture_before_save_text', 'Are you sure you want to save the signature?'),
'siganture_save_text' => $is_multi_language ? __('The signature has been saved successfully!', 'divi-contact-form-helper') : ks_pac_dcfh_db()::get_setting('pwh_dcfh_siganture_save_text', 'The signature has been saved successfully!'),
'siganture_delete_text' => $is_multi_language ? __('The signature has been deleted successfully!', 'divi-contact-form-helper') : ks_pac_dcfh_db()::get_setting('pwh_dcfh_siganture_delete_text', 'The signature has been deleted successfully!'),
'siganture_save_btn_text' => $is_multi_language ? __('Save', 'divi-contact-form-helper') : ks_pac_dcfh_db()::get_setting('pwh_dcfh_siganture_save_btn_text', 'Save'),
'siganture_clear_btn_text' => $is_multi_language ? __('Clear', 'divi-contact-form-helper') : ks_pac_dcfh_db()::get_setting('pwh_dcfh_siganture_clear_btn_text', 'Clear'),
'required_captcha_text' => $is_multi_language ? __('Please complete the CAPTCHA.', 'divi-contact-form-helper') : ks_pac_dcfh_db()::get_setting('pwh_dcfh_required_captcha_text', 'Please complete the CAPTCHA.'),
'wrong_captcha_text' => $is_multi_language ? __('There was a problem with the captcha verification.', 'divi-contact-form-helper') : ks_pac_dcfh_db()::get_setting('pwh_dcfh_wrong_captcha_text', 'There was a problem with the captcha verification.'),
'invalid_email_text' => $is_multi_language ? __('Please enter a valid email address.', 'divi-contact-form-helper') : ks_pac_dcfh_db()::get_setting('pwh_dcfh_invalid_email_text', 'Please enter a valid email address.'),
]
];
return $strings[$key];
}
}