<?php
return [
    // ========================================
    // === GENERAL & NAVIGATION ===
    // ========================================
    'installer_title'             => 'SahtoutCMS Installer',
    'installer_name'              => 'SahtoutCMS Installer',
    'step'                        => 'Step',
    'requirement'                 => 'Requirement',
    'status'                      => 'Status',
    'extension'                   => 'Extension',
    'module'                      => 'Module',
    'enabled'                     => 'Enabled',
    'missing'                     => 'Missing',
    'unknown'                     => 'Unknown',

    // ========================================
    // === INDEX.PHP (Welcome) ===
    // ========================================
    'welcome_message_line1'       => 'Welcome, adventurer.',
    'welcome_message_line2'       => 'This installer will guide you through the setup of <strong>SahtoutCMS</strong>, for World of Warcraft private servers.',
    'welcome_message_line3'       => 'Prepare your database credentials and your server, for the journey begins now.',
    'note_dev_info'               => 'Note: I created this project alone for fun, learning, and testing. While I’ve tried to make it look and feel professional, it’s not a team project, and some bugs may still exist. Enjoy exploring and give feedback if you find issues!',
    'btn_begin_install'           => 'Begin Installation',

    // ========================================
    // === STEP2_CHECK.PHP ===
    // ========================================
    'step2_title'                 => 'Step 2: Environment Check',
    'php_version'                 => 'PHP Version',
    'required_php_extensions'     => 'Required PHP Extensions',
    'optional_php_extensions'     => 'Optional PHP Extensions',
    'required_apache_modules'     => 'Required Apache Modules',
    'optional_apache_modules'     => 'Optional Apache Modules',
    'btn_how_to_enable'           => '💡 How to enable PHP & Apache modules?',
    'help_php_extensions'         => 'PHP Extensions',
    'help_php_desc'               => 'To enable a PHP extension:',
    'help_php_path'               => 'Go to C:\\xampp\\php',
    'help_php_ini'                => 'Locate your <code>php.ini</code> file.',
    'help_php_uncomment'          => 'Find the line with the extension name, e.g., <code>;extension=curl</code>.',
    'help_php_enable'             => 'Remove the semicolon <code>;</code> to enable it: <code>extension=curl</code>.',
    'help_php_restart'            => 'Restart your web server (Apache/Nginx).',
    'help_apache_modules'         => 'Apache Modules',
    'help_apache_desc'            => 'To enable Apache modules:',
    'help_apache_path'            => 'Go to C:\\xampp\\apache\\conf',
    'help_apache_httpd'           => 'For Windows XAMPP, check the <code>httpd.conf</code> file and uncomment the module lines.',
    'help_apache_restart'         => 'Restart Apache:',
    'img_example'                 => 'image example',
    'btn_proceed_to_db'           => 'Proceed to Database Setup ➡️',
    'err_required_failed'         => '❌ Some required checks failed. Fix them before continuing.',

    // ========================================
    // === STEP3_DB.PHP ===
    // ========================================
    'step3_title' => 'Step 3: Database & reCAPTCHA Setup',
    'db_credentials' => 'Database Credentials',
    'label_db_host' => 'Database Host',
    'label_db_user' => 'Database Username',
    'label_db_pass' => 'Database Password',
    'label_db_auth' => 'Auth DB Name',
    'label_db_world' => 'World DB Name',
    'label_db_char' => 'Char DB Name',
    'label_db_site' => 'Site DB Name',
    'note_site_db' => '“sahtout_site” is recommended for the site database name',
    'section_recaptcha' => 'reCAPTCHA V2 Checkbox Keys (Optional)',
    'label_recaptcha_site_key' => 'Site Key',
    'label_recaptcha_secret_key' => 'Secret Key',
    'placeholder_recaptcha_default' => 'Leave empty for default',
    'note_recaptcha_empty' => 'Leave reCAPTCHA fields empty to use default keys',
    'btn_test_save_db' => 'Test & Save Database and reCAPTCHA Settings',
    'err_db_host_required' => 'Database host is required',
    'err_db_user_required' => 'Database username is required',
    'err_db_auth_required' => 'Auth database name is required',
    'err_db_world_required' => 'World database name is required',
    'err_db_char_required' => 'Character database name is required',
    'err_db_site_required' => 'Site database name is required',
    'err_missing_table' => 'Missing required table: %s',
    'err_connection_failed' => 'Connection failed: %s',
    'err_config_dir_not_writable' => 'Config directory is not writable: %s',
    'err_cap_dir_not_writable' => 'reCAPTCHA config directory is not writable: %s',
    'err_failed_write_config' => 'Failed to write config file: %s',
    'err_failed_write_cap' => 'Failed to write reCAPTCHA config file: %s',
    'err_close_connection' => 'Failed to close connection: %s',
    'err_fix_errors' => 'Please fix the following errors:',
    'msg_config_saved' => 'All databases connected successfully! Config and reCAPTCHA files created.',
    'btn_proceed_to_realm' => 'Proceed to Step 4 Realm configuration ➡️',
    // New keys for step3_db.php
    'label_recaptcha_enabled' => 'Enable reCAPTCHA',
    'err_recaptcha_keys_required' => 'reCAPTCHA Site Key and Secret Key are required when reCAPTCHA is enabled.',
    'captcha_enabled' => 'Enabled',
    'captcha_missing' => 'Disabled',

    // ========================================
    // === STEP4_REALM.PHP ===
    // ========================================
    'forge_title' => 'Sahtout RealmForge',
    'forge_name' => '⚔️ RealmForge Setup',
    'step4_title' => 'Phase 4: realm Setup',
    'section_realm_config' => 'realm Configuration',
    'err_fix_errors_realm' => 'Resolve the following issues:',
    'msg_realm_saved' => 'realm configuration stored successfully!',
    'label_realm_name' => 'realm Name',
    'label_realm_ip' => 'realm Address / Host',
    'label_realm_port' => 'realm Port',
    'label_realm_logo' => 'realm Emblem',
    'placeholder_realm_name' => 'Enter realm name',
    'placeholder_realm_logo' => 'Upload a PNG, SVG, JPG, or WebP emblem (max 2MB).',
    'btn_choose_file' => 'Select Emblem',
    'btn_save_realm' => 'Store realm Configuration',
    'btn_proceed_to_mail' => 'Advance to Email Configuration ➡️',
    'note_realm_config' => 'Note: This configures the realm settings.',
    'err_realm_name_required' => 'realm name is mandatory.',
    'err_realm_ip_required' => 'realm address is mandatory.',
    'err_realm_port_invalid' => 'realm port must be a valid number (1-65535).',
    'err_config_dir_not_writable_realm' => 'Configuration directory is not writable: %s',
    'err_write_realm_config' => 'Cannot write realm configuration file: %s',
    'err_read_realm_config' => 'Cannot read realm configuration file: %s',
    'err_update_realm_config' => 'Failed to update realm configuration: $realmlist not found or invalid.',
    'error_realm_logo_too_large' => 'realm emblem size exceeds 2MB.',
    'error_invalid_realm_logo_type' => 'Invalid emblem format. Only PNG, SVG, JPG, or WebP permitted.',
    'error_realm_logo_upload_failed' => 'Failed to upload realm emblem. Verify server permissions.',
    'error_direct_access_realm' => 'Direct access to this file is prohibited.',
    'error_access_denied' => 'Access denied.',

    // ========================================
    // === STEP5_MAIL.PHP ===
    // ========================================
     'step5_title' => 'Step 5: Email Setup',
    'err_smtp_host_required' => 'SMTP Host is required.',
    'err_smtp_user_required' => 'SMTP Username is required.',
    'err_smtp_pass_required' => 'SMTP Password is required.',
    'mail_test_subject' => 'Test Email - Sahtout CMS',
    'mail_test_body' => 'This is a test email from your Sahtout CMS installation.',
    'err_write_mail_config' => 'Cannot write to %s.',
    'err_smtp_test_failed' => 'SMTP test failed: %s',
    'error_direct_access' => 'Direct access to this file is not allowed.',
    'msg_mail_saved' => 'Email configuration saved! Test email sent successfully.',
    'btn_proceed_to_soap' => 'Proceed to Soap Configuration ➡️',
    'label_enable_smtp' => 'Enable SMTP Mailer?',
    'smtp_mail_enabled' => 'Enabled',
    'smtp_mail_missing' => 'Disabled',
    'section_smtp_config' => 'SMTP Configuration',
    'label_smtp_host' => 'SMTP Host',
    'label_email_address' => 'Email Address',
    'label_app_password' => 'App Password / SMTP Password',
    'label_from_email' => 'From Email',
    'label_from_name' => 'From Name',
    'label_port' => 'Port',
    'label_encryption' => 'Encryption (tls or ssl)',
    'placeholder_smtp_host' => 'e.g., smtp.gmail.com',
    'placeholder_email' => 'e.g., yourname@gmail.com',
    'placeholder_app_password' => 'App password for Gmail/Outlook',
    'helper_title_smtp' => 'How to get your SMTP info / App Password (Click to expand)',
    'helper_smtp_li1' => 'Use a real email account (Gmail, Outlook, or your own domain).',
    'helper_smtp_li2' => 'For Gmail, enable 2FA and generate an <strong>App Password</strong>.',
    'helper_smtp_li3' => 'SMTP Host examples:',
    'helper_smtp_custom_domain' => 'Custom domain: usually mail.yourdomain.com',
    'helper_smtp_li4' => 'Use port <strong>587</strong> with <strong>TLS</strong> or port <strong>465</strong> with <strong>SSL</strong>.',
    'helper_smtp_li5' => 'Enter your email address as the username and your App Password (or regular password if allowed).',
    'helper_smtp_li6' => 'The "From Email" can be the same as your SMTP user or a different sender you own.',

    // ========================================
    // === STEP6_SOAP.PHP ===
    // ========================================
    'step6_title'                 => 'Step 6: SOAP Setup',
    'section_soap_config'         => 'SOAP Configuration',
    'label_soap_url'              => 'SOAP URL',
    'label_gm_username'           => 'GM Account Username',
    'placeholder_gm_level3'       => 'Must be GM level 3',
    'label_soap_password'         => 'SOAP Password',
    'placeholder_soap_pass'       => 'SOAP password=Account password',
    'btn_save_verify_gm'          => 'Save & Verify GM',
    'err_soap_account_not_found'  => 'Account \'%s\' does not exist in Auth DB.',
    'err_soap_gm_level'           => 'Account \'%s\' exists but is not GM level 3.',
    'err_write_soap_config'       => 'Cannot write to',
    'msg_soap_saved'              => 'SOAP configuration saved! GM account verified.',
    'msg_soap_note'               => 'Make sure its gm',
    'btn_proceed_to_finish'       => 'Proceed to Finish Installation ➡️',
    'important_steps'             => 'Important Steps:',
    'info_soap_li1'               => 'Make sure the GM account exists in your Auth DB and has GM level 3 in <code>account_access</code> with <code>RealmID = -1</code>.',
    'info_soap_li2'               => 'Open your <code>worldserver.conf</code> file and set: <strong>SOAP.Enabled = 1</strong>',
    'info_soap_li3'               => 'Ensure the SOAP port in <code>soap_url</code> is correct and accessible.',
    'footer_connect'       => '🌟 Connect with Me:',
    'footer_all_rights'    => 'All rights reserved.',
    // === finish.php ===
'finish_title'               => 'Installer Complete',
'err_config_missing'         => 'Configuration file missing:',
'finish_errors_msg'          => 'Some required configuration files are missing. Please make sure all steps are completed.',
'finish_all_present'         => 'All configuration files are present!',
'finish_congrats'            => 'Congratulations, SahtoutCMS is fully installed and ready to use.',
'finish_security_note'       => 'For security, it is strongly recommended to <strong>delete the "install" folder</strong> from your server.',
'btn_go_to_homepage'         => 'Go to SahtoutCMS Homepage',
];