<?php
/**
 * English language file for taskmassivas plugin
 */

$lang['menu'] = 'Bulk Tasks';

// Main titles
$lang['admin_title'] = 'Bulk Task Upload';
$lang['upload_tasks'] = 'Upload Tasks';
$lang['view_log'] = 'Upload History';
$lang['settings'] = 'Settings';

// Upload form
$lang['upload_title'] = 'Upload Tasks from Excel';
$lang['upload_info'] = 'Upload an Excel (.xlsx) or CSV file with tasks to create. Select the target project where tasks will be inserted.';
$lang['download_template'] = 'Download Excel Template';
$lang['select_project'] = 'Target Project';
$lang['select_file'] = 'Excel (.xlsx) or CSV file';
$lang['preview_only'] = 'Preview only (do not create tasks)';
$lang['btn_upload'] = 'Upload Tasks';
$lang['btn_confirm'] = 'Confirm and Create Tasks';

// Results
$lang['upload_preview'] = 'Tasks Preview';
$lang['upload_result'] = 'Upload Result';
$lang['tasks_created'] = 'Tasks created';
$lang['tasks_skipped'] = 'Tasks skipped';
$lang['tasks_errors'] = 'Errors';
$lang['upload_success'] = 'Tasks uploaded successfully';
$lang['upload_error'] = 'Error uploading tasks';

// Preview table
$lang['col_row'] = 'Row';
$lang['col_content'] = 'Description';
$lang['col_plan_date'] = 'Plan Date';
$lang['col_assignee'] = 'Assignee';
$lang['col_program'] = 'Program';
$lang['col_type'] = 'Type';
$lang['col_status'] = 'Status';

// Statuses
$lang['status_ok'] = 'OK';
$lang['status_error'] = 'Error';
$lang['status_warning'] = 'Warning';

// History
$lang['log_title'] = 'Upload History';
$lang['log_date'] = 'Date';
$lang['log_project'] = 'Project';
$lang['log_file'] = 'File';
$lang['log_tasks'] = 'Tasks';
$lang['log_user'] = 'User';
$lang['no_logs'] = 'No uploads recorded';

// Errors
$lang['error_no_permission'] = 'You do not have permission to access this section.';
$lang['error_no_project'] = 'You must select a project.';
$lang['error_no_file'] = 'You must select a file.';
$lang['error_invalid_file'] = 'Invalid file format. Use Excel (.xlsx) or CSV.';
$lang['error_empty_file'] = 'The file is empty or has no valid data.';
$lang['error_template_not_found'] = 'Template file not found.';
$lang['error_project_not_found'] = 'Selected project does not exist.';
$lang['error_no_content'] = 'Task has no description';
$lang['error_no_date'] = 'Task has no plan date';
$lang['error_invalid_date'] = 'Invalid date format';
$lang['error_user_not_found'] = 'User not found';
$lang['error_invalid_log'] = 'Invalid upload log entry';

// Template
$lang['template_info'] = 'The template must contain the following columns:';
$lang['template_col_content'] = 'contenido - Task description (required)';
$lang['template_col_date'] = 'fecha_plan - Plan date YYYY-MM-DD (required)';
$lang['template_col_assignee'] = 'responsable - Assigned user (optional)';
$lang['template_col_program'] = 'programa - Task program name (optional)';
$lang['template_col_type'] = 'tipo - correction, corrective, preventive, program (optional)';

// Task types
$lang['type_correction'] = 'Correction';
$lang['type_corrective'] = 'Corrective';
$lang['type_preventive'] = 'Preventive';
$lang['type_program'] = 'Program';
