<?php
/**
 * ITSWEBER CMS – English Installer Translations
 */
return [
    'title' => 'ITSWEBER CMS – Installation',
    'subtitle' => 'Installation',
    'footer_copyright' => '© :year ITSWEBER. All rights reserved.',
    'footer_author' => 'Benjamin Weber',
    'footer_website' => 'www.itsweber.de',
    'footer_email' => 'info@itsweber.de',

    'language_title' => 'Choose Language',
    'language_text' => 'Select the language for the installation and the system.',
    'language_label' => 'Installation Language',
    'language_de' => 'Deutsch',
    'language_en' => 'English',
    'language_continue' => 'Continue',

    'welcome_title' => 'Welcome to ITSWEBER CMS',
    'welcome_text' => 'This wizard will guide you through the installation process. Make sure you have your database credentials ready.',
    'welcome_start' => 'Start Installation',

    'req_title' => 'System Requirements',
    'req_text' => 'Checking your server environment…',
    'req_col_requirement' => 'Requirement',
    'req_col_status' => 'Status',
    'req_col_value' => 'Value',
    'req_back' => 'Back',
    'req_continue' => 'Continue',
    'req_fix_issues' => 'Fix issues before continuing',
    'req_loaded' => 'Loaded',
    'req_missing' => 'Missing',
    'req_writable' => 'Writable',
    'req_not_writable' => 'Not writable',

    'db_title' => 'Database Configuration',
    'db_text' => 'Enter your database connection details.',
    'db_host' => 'Database Host',
    'db_port' => 'Port',
    'db_name' => 'Database Name',
    'db_user' => 'Database User',
    'db_password' => 'Database Password',
    'db_prefix' => 'Table Prefix',
    'db_prefix_note' => 'Fixed at iw_ in this version. Configurable prefixes are planned for a future release.',
    'db_back' => 'Back',
    'db_continue' => 'Test & Continue',
    'db_error' => 'Database connection failed. Please check your credentials.',

    'tables_title' => 'Create Database Tables',
    'tables_text' => 'Click the button below to create all required database tables.',
    'tables_back' => 'Back',
    'tables_create' => 'Create Tables',
    'tables_error' => 'Migration failed: :error',

    'admin_title' => 'Create Admin Account',
    'admin_text' => 'Set up your administrator account.',
    'admin_username' => 'Username',
    'admin_email' => 'Email',
    'admin_password' => 'Password',
    'admin_password_hint' => 'Minimum 8 characters',
    'admin_password_confirm' => 'Confirm Password',
    'admin_back' => 'Back',
    'admin_create' => 'Create Account',
    'admin_error_required' => 'All fields are required.',
    'admin_error_mismatch' => 'Passwords do not match.',
    'admin_error_short' => 'Password must be at least 8 characters.',
    'admin_error_invalid_email' => 'Please enter a valid email address.',
    'admin_error_failed' => 'Failed to create admin user: :error',

    'site_title' => 'Site Configuration',
    'site_text' => 'Configure basic site information, choose a theme, and optionally set up mail delivery.',
    'site_name' => 'Website Name',
    'site_tagline' => 'Tagline / Subtitle',
    'site_email' => 'Contact Email',
    'site_theme' => 'Choose a Theme',
    'site_mail_title' => 'Mail Configuration',
    'site_mail_optional' => 'optional – can be changed later in app/Config/app.php',
    'site_mail_transport' => 'Mail Transport',
    'site_mail_php' => 'PHP mail() – uses server MTA (default)',
    'site_mail_smtp' => 'SMTP – direct server connection',
    'site_mail_from' => 'Sender Address (From)',
    'site_mail_from_name' => 'Sender Name',
    'site_smtp_host' => 'SMTP Host',
    'site_smtp_port' => 'SMTP Port',
    'site_smtp_encryption' => 'Encryption',
    'site_smtp_tls' => 'TLS / STARTTLS (port 587)',
    'site_smtp_ssl' => 'SSL / SMTPS (port 465)',
    'site_smtp_none' => 'None (port 25)',
    'site_smtp_user' => 'SMTP Username',
    'site_smtp_password' => 'SMTP Password',
    'site_mail_test' => 'Test your mail settings',
    'site_mail_test_to' => 'Send test to:',
    'site_mail_test_btn' => 'Send Test Mail',
    'site_mail_sending' => 'Sending…',
    'site_mail_enter_email' => 'Please enter a recipient e-mail address.',
    'site_mail_sent' => 'Sent!',
    'site_mail_failed' => 'Failed.',
    'site_mail_request_failed' => 'Request failed. Please try again.',
    'site_mail_note' => 'Used for password-reset e-mails. Leave all fields empty to use PHP mail() without configuration.',
    'site_back' => 'Back',
    'site_complete' => 'Complete Installation',
    'site_error' => 'Setup failed: :error',

    // Test mail (server-side AJAX responses)
    'test_mail_invalid_email' => 'Please enter a valid test recipient e-mail address.',
    'test_mail_smtp_required' => 'SMTP host is required when transport is set to SMTP.',
    'test_mail_sent_to'       => 'Test mail sent to :recipient. Please check your inbox.',
    'test_mail_failed'        => 'Mail could not be sent. Please verify your settings and check the server error log.',
    'test_mail_error_prefix'  => 'Error: ',

    // Validation
    'site_error_invalid_email'      => 'Please enter a valid contact email address.',
    'site_error_invalid_from_email' => 'Please enter a valid sender email address.',

    // Requirement labels (Step 2)
    'req_php_version'       => 'PHP Version >= 8.1',
    'req_pdo_mysql'         => 'PDO MySQL Extension',
    'req_mbstring'          => 'MBString Extension',
    'req_gd'                => 'GD Extension',
    'req_json'              => 'JSON Extension',
    'req_fileinfo'          => 'FileInfo Extension',
    'req_storage_writable'  => 'storage/ writable',
    'req_uploads_writable'  => 'public/uploads/ writable',
    'req_config_writable'   => 'app/Config/ writable',

    'complete_title' => 'Installation Complete!',
    'complete_text' => 'ITSWEBER CMS has been successfully installed. You can now start using your website.',
    'complete_visit' => 'Visit Website',
    'complete_admin' => 'Go to Admin Panel',
    'complete_security' => 'Security note: The installer is now locked. To reinstall, delete the file storage/.installed.',
];
