<?php
$lang['friendlyname'] = 'Two Factor';
$lang['admindescription'] = 'Secure CMS Made Simple login with Two Factor Authentication (2FA) - by Pixel Solutions';
$lang['param_user'] = 'User parameter for frontend integration';
$lang['ask_uninstall'] = 'Are you sure you want to uninstall the Two Factor module? All settings will be lost.';

$lang['twilio_settings'] = 'TwoFactor - Twilio Settings';
$lang['two_factor_settings'] = 'Two-Factor Authentication Settings';
$lang['two_factor_active'] = 'Two-factor authentication is active on your account.';
$lang['two_factor_inactive'] = 'Two-factor authentication is currently disabled. Select a primary method below to activate it.';
$lang['enabled_methods'] = 'Enabled Methods';
$lang['available_methods'] = 'Available Authentication Methods';
$lang['no_methods_enabled'] = 'No two-factor methods are enabled yet. Choose a method below to get started.';
$lang['primary'] = 'Primary';
$lang['primary_method'] = 'Primary Method';
$lang['primary_method_info'] = 'Select the primary method to use for two-factor authentication when signing into this site';
$lang['update'] = 'Update';
$lang['primary_updated'] = 'Primary authentication method updated.';
$lang['method'] = 'Method';
$lang['status'] = 'Status';
$lang['action'] = 'Action';
$lang['enabled'] = 'Enabled';
$lang['disabled'] = 'Disabled';
$lang['verified'] = 'Verified';
$lang['configure'] = 'Configure';
$lang['tab_settings'] = 'Settings';
$lang['tab_premium'] = 'Premium';
$lang['tab_smscredit'] = 'SMS Settings';
$lang['settings_info'] = 'General module settings.';
$lang['premium_info'] = 'Premium features coming soon.';
$lang['smscredit_info'] = 'SMS credit management coming soon.';
$lang['sms_credits_saved'] = 'SMS credits license saved and validated successfully.';
$lang['error_empty_license'] = 'License key cannot be empty.';
$lang['error_invalid_license'] = 'Invalid license key or validation failed.';
$lang['error_twilio_fields_required'] = 'All Twilio fields are required.';
$lang['error_twilio_invalid_credentials'] = 'Invalid Twilio credentials. Please check your API Key, Secret, and Service SID.';
$lang['sms_credits_removed'] = 'SMS credits license removed successfully.';
$lang['remove_license'] = 'Disable License';
$lang['confirm_remove_license'] = 'Are you sure you want to remove the SMS credits license?';
$lang['license_removed'] = 'License removed successfully.';
$lang['license_valid'] = 'License is valid and active.';
$lang['sms_credits_active'] = 'Credits remaining: %s';
$lang['type_TwoFactor'] = 'TwoFactor';
$lang['type_email_verification'] = 'Email Verification';
$lang['provider_totp'] = 'Authenticator App (TOTP)';
$lang['totp_description'] = 'Use Google Authenticator, Authy, or similar apps';
$lang['email_description'] = 'Receive verification codes via email';
$lang['backup_codes_description'] = 'One-time backup codes for emergency access';

$lang['provider_sms'] = 'SMS Verification';
$lang['sms_description'] = 'Receive verification codes via text message';
$lang['setup_sms'] = 'Setup SMS Verification';
$lang['twilio_settings'] = 'Twilio API Settings';
$lang['twilio_api_key_sid'] = 'Twilio API Key SID';
$lang['twilio_api_secret'] = 'Twilio API Secret';
$lang['twilio_service_sid'] = 'Twilio Verify Service SID';
$lang['twilio_service_sid_help'] = 'Create a Verify Service in your Twilio Console and enter the Service SID here';
$lang['save_settings'] = 'Save Settings';
$lang['twilio_settings_saved'] = 'Twilio settings have been saved.';
$lang['test_configuration'] = 'Test Configuration';
$lang['test_configuration_info'] = 'Use Twilio Magic Numbers to test with test credentials. The test uses Programmable SMS API (not Verify API).';
$lang['test_phone_number'] = 'Test Phone Number';
$lang['magic_number_help'] = 'Use +15005550006 (success) or +15005550001 (invalid number) to test';
$lang['send_test_sms'] = 'Send Test SMS';
$lang['test_sms_sent'] = 'Test SMS sent successfully! Note: This uses Programmable SMS API for testing.';
$lang['test_sms_failed'] = 'Test SMS failed: %s';
$lang['twilio_not_configured'] = 'Please configure Twilio Account SID and Auth Token first.';
$lang['configure_twilio'] = 'Configure Twilio Settings';
$lang['sms_user_settings'] = 'Your SMS Settings';
$lang['phone_number'] = 'Phone Number';
$lang['phone_format_help'] = 'Enter in E.164 format (e.g., +1234567890)';
$lang['sms_setup_info'] = 'Enter your phone number to receive verification codes via SMS.';
$lang['verification_sent'] = 'Verification code sent! Check your phone.';
$lang['verification_failed'] = 'Failed to send verification: %s';
$lang['verification_code_sent'] = 'A verification code has been sent to %s';
$lang['verification_code'] = 'Verification Code';
$lang['verify_phone'] = 'Verify Phone Number';
$lang['resend_code'] = 'Resend Code';
$lang['change_phone'] = 'Change Phone Number';
$lang['send_verification_code'] = 'Send Verification Code';
$lang['sms_enabled'] = 'SMS verification has been enabled!';
$lang['sms_disabled'] = 'SMS verification has been disabled.';
$lang['sms_enabled_info'] = 'SMS verification is enabled for: %s';
$lang['enable_sms'] = 'Enable SMS Verification';
$lang['disable_sms'] = 'Disable SMS Verification';
$lang['sms_body'] = 'Your verification code is: %s';

$lang['setup_totp'] = 'Setup Authenticator App (TOTP)';
$lang['scan_qr'] = 'Scan this QR code with your authenticator app (Google Authenticator, Authy, etc.)';
$lang['manual_entry'] = 'Or enter this key manually';
$lang['enter_code_verify'] = 'Enter the 6-digit code from your app to verify';
$lang['verify'] = 'Verify';
$lang['totp_enabled'] = 'Authenticator app has been successfully enabled!';
$lang['totp_configured'] = 'Authenticator app is configured and active.';
$lang['totp_reset_warning'] = 'If you reset, you will need to re-scan the QR code on all your devices.';
$lang['reset_totp'] = 'Reset Authenticator App';
$lang['confirm_reset'] = 'Are you sure you want to reset? You will need to reconfigure all devices.';
$lang['totp_reset'] = 'Authenticator app has been reset.';
$lang['back'] = 'Back';
$lang['cancel'] = 'Cancel';

$lang['two_factor_required'] = 'Two-Factor Authentication Required';
$lang['enter_code_from_app'] = 'Enter the 6-digit code from your authenticator app';
$lang['authentication_code'] = 'Authentication Code';
$lang['invalid_code'] = 'Invalid code. Please try again.';
$lang['verify'] = 'Verify';

$lang['provider_email'] = 'Email Verification';
$lang['email_subject'] = 'Your verification code';
$lang['email_body'] = 'Your verification code is: %s\n\nThis code will expire in 10 minutes.';
$lang['email_no_address'] = 'No email address configured for your account.';
$lang['email_setup_info'] = 'Verification codes will be sent to: %s';
$lang['setup_email'] = 'Setup Email Verification';
$lang['email_enabled'] = 'Email verification has been enabled!';
$lang['email_disabled'] = 'Email verification has been disabled.';
$lang['email_enabled_status'] = 'Email verification is enabled and active.';
$lang['enable_email'] = 'Enable Email Verification';
$lang['disable_email'] = 'Disable Email Verification';

$lang['provider_backup_codes'] = 'Backup Codes';
$lang['setup_backup_codes'] = 'Setup Backup Codes';
$lang['backup_codes_warning'] = 'Save these codes in a safe place!';
$lang['backup_codes_info'] = 'Each code can only be used once. Use them if you lose access to your primary authentication method.';
$lang['backup_codes_enabled_info'] = 'Backup codes are enabled. You can use them if you lose access to your other authentication methods.';
$lang['codes_remaining'] = 'Codes remaining';
$lang['regenerate_codes'] = 'Regenerate Codes';
$lang['confirm_regenerate'] = 'This will invalidate all existing codes. Continue?';
$lang['disable_backup_codes'] = 'Disable Backup Codes';
$lang['confirm_disable'] = 'Are you sure you want to disable backup codes?';
$lang['backup_codes_disabled'] = 'Backup codes have been disabled.';
$lang['backup_codes_setup_info'] = 'Generate backup codes to use as a fallback authentication method.';
$lang['generate_codes'] = 'Generate Backup Codes';

// Premium Tab
$lang['premium_title'] = 'TwoFactor Pro';
$lang['activate_your_license'] = 'Activate Your License';
$lang['premium_description'] = 'Unlock advanced security controls, enforced 2FA for all users, intelligent rate limiting, trusted devices, and priority support, giving you complete protection and administrative oversight for your CMS Made Simple site.';
$lang['license_key'] = 'License Key';
$lang['verify_license'] = 'Validate License';
$lang['license_key_required'] = 'Please enter a license key.';
$lang['license_activated'] = 'License activated successfully! TwoFactor Pro features are now enabled.';
$lang['license_invalid'] = 'Invalid license key. Please check and try again.';
$lang['license_verification_failed'] = 'Unable to verify license. Please check your connection and try again.';
$lang['pro_activated'] = 'TwoFactor Pro Activated';
$lang['pro_features_unlocked'] = 'All premium features are now unlocked.';
$lang['pro_features_title'] = 'Pro Features';
$lang['pro_feature_rate_limiting'] = 'Rate Limiting & Brute Force Protection';
$lang['pro_feature_session_revalidation'] = 'Session Revalidation for Security Settings';
$lang['pro_feature_trusted_devices'] = 'Trusted Devices (Remember for 30 days)';
$lang['pro_feature_user_management'] = 'User Management Dashboard';
$lang['pro_feature_enforce_2fa'] = 'Enforce 2FA for All Admin Users';
$lang['pro_feature_audit_logs'] = 'Advanced Audit Logs with Export';
$lang['pro_feature_email_notifications'] = 'Email Notifications for Suspicious Activity';
$lang['get_pro_license'] = 'Get Pro License';

// Rate Limiting Settings
$lang['rate_limiting_enabled'] = 'Enable Rate Limiting';
$lang['rate_limiting_enabled_help'] = 'Protect against brute force attacks with exponential backoff';
$lang['max_attempts_lockout'] = 'Max Attempts Before Lockout';
$lang['max_attempts_lockout_help'] = 'Number of failed attempts before temporary lockout (default: 5)';
$lang['max_attempts_reset'] = 'Max Attempts Before Password Reset';
$lang['max_attempts_reset_help'] = 'Number of failed attempts before forcing password reset (default: 10)';
$lang['notify_admin'] = 'Notify Admin of Suspicious Activity';
$lang['notify_admin_help'] = 'Send email alerts when multiple failed attempts are detected';
$lang['settings_saved'] = 'Settings saved successfully.';
$lang['pro_required_settings'] = 'Pro license required to configure these settings.';
$lang['account_locked'] = 'Too many failed attempts. Please try again in %d minutes.';
$lang['ip_blacklist'] = 'IP Blacklist';
$lang['ip_blacklist_help'] = 'Comma-separated list of IP addresses to permanently block (e.g., 192.168.1.1, 10.0.0.5)';
$lang['email_templates'] = 'Email Templates';
$lang['reset_email_subject'] = 'Password Reset Email Subject';
$lang['reset_email_body'] = 'Password Reset Email Body';
$lang['reset_email_placeholders'] = 'Available placeholders: {username}, {reset_url}';
$lang['alert_email_subject'] = 'Admin Alert Email Subject';
$lang['alert_email_body'] = 'Admin Alert Email Body';
$lang['alert_email_placeholders'] = 'Available placeholders: {username}, {ip_address}, {attempts}, {time}';
$lang['rate_limiting_settings'] = 'Rate Limiting & Brute Force Protection';
$lang['tab_templates'] = 'Templates';
$lang['password_reset_email'] = 'Password Reset Email';
$lang['admin_alert_email'] = 'Admin Alert Email';

// User Management
$lang['tab_user_management'] = 'User Management';
$lang['user_management'] = 'User Management Dashboard';
$lang['user_management_help'] = 'View and manage 2FA settings for all users. You can disable 2FA for locked-out users.';
$lang['username'] = 'Username';
$lang['email'] = 'Email';
$lang['2fa_status'] = '2FA Status';
$lang['enabled_methods'] = 'Enabled Methods';
$lang['failed_attempts'] = 'Failed Attempts';
$lang['disable_2fa'] = 'Disable 2FA';
$lang['confirm_disable_user_2fa'] = 'Are you sure you want to disable 2FA for user "%s"? This will remove all their 2FA settings, trusted devices, and reset failed attempts.';
$lang['user_2fa_disabled'] = '2FA has been disabled for user: %s';
$lang['legend'] = 'Legend';
$lang['legend_locked'] = 'Red background = User is currently locked out';
$lang['legend_failed_attempts'] = 'Failed attempts: Red (5+), Orange (3-4), Black (0-2)';
$lang['legend_disable'] = 'Use "Disable 2FA" to unlock users or remove their 2FA settings';
$lang['device_not_found'] = 'Device not found or does not belong to you.';

// Enforce 2FA
$lang['general_settings'] = 'General Settings';
$lang['enforce_2fa_all'] = 'Enforce 2FA for All Admin Users';
$lang['enforce_2fa_all_help'] = 'When enabled, all admin users will be required to enable 2FA before they can access the admin panel';
$lang['2fa_required'] = '2FA Required';
$lang['2fa_required_message'] = 'Your administrator has enabled mandatory two-factor authentication. You must enable at least one 2FA method below to continue using the admin panel.';
$lang['permission_denied'] = 'Permission denied. You do not have access to this feature.';

// SMS Settings
$lang['sms_settings'] = 'SMS Settings';
$lang['sms_credits_option'] = 'Option 1: SMS Credits from Pixel Solutions';
$lang['sms_credits_description'] = 'Purchase SMS credits from our store and use them across all your sites. Simple, no API configuration needed.';
$lang['product_key'] = 'Product Key';
$lang['product_key_help'] = 'Enter the product key you received after purchasing SMS credits';
$lang['save_product_key'] = 'Save Product Key';
$lang['purchase_credits'] = 'Purchase SMS Credits';
$lang['sms_credits_saved'] = 'SMS credits product key saved successfully.';
$lang['twilio_api_option'] = 'Option 2: Use Your Own Twilio Account';
$lang['twilio_api_description'] = 'Configure your own Twilio API credentials to send SMS messages directly from your account.';
$lang['sms_status_available'] = 'SMS Verification Available';
$lang['sms_status_unavailable'] = 'SMS Verification Unavailable';
$lang['sms_configure_method'] = 'Configure SMS Credits or Twilio API to enable SMS verification';
$lang['sms_both_methods_active'] = 'Both SMS Credits and Twilio API are configured';
$lang['sms_credits_method_active'] = 'Using SMS Credits';
$lang['sms_twilio_method_active'] = 'Using Twilio API';
$lang['sms_credits_priority'] = 'SMS Credits will be used first';
$lang['active'] = 'Active';
$lang['remove_twilio'] = 'Disable Twilio API';
$lang['confirm_remove_twilio'] = 'Are you sure you want to remove Twilio API credentials?';
$lang['twilio_removed'] = 'Twilio API credentials removed successfully.';
$lang['error_subscription_key_not_supported'] = 'This is a subscription key. Only credit-based licenses are supported for SMS credits.';

$lang['trusted_devices'] = 'Trusted Devices';
$lang['tab_methods'] = 'Methods';
$lang['tab_trusted_devices'] = 'Trusted Devices';
$lang['actions'] = 'Actions';