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

// Admin menu
$lang['menu'] = 'Calendar Management';

// General
$lang['calendar'] = 'Calendar';
$lang['events'] = 'Events';
$lang['event'] = 'Event';
$lang['today'] = 'Today';
$lang['tomorrow'] = 'Tomorrow';
$lang['yesterday'] = 'Yesterday';

// Event fields
$lang['title'] = 'Title';
$lang['description'] = 'Description';
$lang['date'] = 'Date';
$lang['time'] = 'Time';
$lang['start_time'] = 'Start Time';
$lang['end_time'] = 'End Time';
$lang['end_date'] = 'End Date';
$lang['color'] = 'Color';
$lang['namespace'] = 'Namespace';
$lang['all_day'] = 'All Day';

// Actions
$lang['add_event'] = 'Add Event';
$lang['edit_event'] = 'Edit Event';
$lang['delete_event'] = 'Delete Event';
$lang['save'] = 'Save';
$lang['cancel'] = 'Cancel';
$lang['close'] = 'Close';
$lang['search'] = 'Search';
$lang['clear'] = 'Clear';

// Task-related
$lang['task'] = 'Task';
$lang['mark_as_task'] = 'Mark as Task';
$lang['completed'] = 'Completed';
$lang['past_due'] = 'Past Due';

// Recurring events
$lang['recurring'] = 'Recurring';
$lang['repeat'] = 'Repeat';
$lang['daily'] = 'Daily';
$lang['weekly'] = 'Weekly';
$lang['monthly'] = 'Monthly';
$lang['yearly'] = 'Yearly';
$lang['every'] = 'Every';
$lang['days'] = 'days';
$lang['weeks'] = 'weeks';
$lang['months'] = 'months';
$lang['years'] = 'years';
$lang['repeat_on'] = 'Repeat on';
$lang['ends'] = 'Ends';
$lang['never'] = 'Never';
$lang['after_occurrences'] = 'After occurrences';
$lang['on_date'] = 'On date';

// Days of week
$lang['sunday'] = 'Sunday';
$lang['monday'] = 'Monday';
$lang['tuesday'] = 'Tuesday';
$lang['wednesday'] = 'Wednesday';
$lang['thursday'] = 'Thursday';
$lang['friday'] = 'Friday';
$lang['saturday'] = 'Saturday';
$lang['sun'] = 'Sun';
$lang['mon'] = 'Mon';
$lang['tue'] = 'Tue';
$lang['wed'] = 'Wed';
$lang['thu'] = 'Thu';
$lang['fri'] = 'Fri';
$lang['sat'] = 'Sat';

// Months
$lang['january'] = 'January';
$lang['february'] = 'February';
$lang['march'] = 'March';
$lang['april'] = 'April';
$lang['may'] = 'May';
$lang['june'] = 'June';
$lang['july'] = 'July';
$lang['august'] = 'August';
$lang['september'] = 'September';
$lang['october'] = 'October';
$lang['november'] = 'November';
$lang['december'] = 'December';

// Messages
$lang['no_events'] = 'No events';
$lang['no_events_today'] = 'No events today';
$lang['no_events_this_month'] = 'No events this month';
$lang['no_events_found'] = 'No events match your search';
$lang['event_saved'] = 'Event saved successfully';
$lang['event_deleted'] = 'Event deleted successfully';
$lang['confirm_delete'] = 'Are you sure you want to delete this event?';
$lang['loading'] = 'Loading...';
$lang['searching'] = 'Searching...';

// Search
$lang['search_this_month'] = 'Search this month';
$lang['search_all_dates'] = 'Search all dates';
$lang['found_events'] = 'Found %d event(s) across all dates';

// Sync
$lang['sync'] = 'Sync';
$lang['sync_now'] = 'Sync Now';
$lang['last_sync'] = 'Last sync';
$lang['sync_successful'] = 'Sync completed successfully';
$lang['sync_failed'] = 'Sync failed';

// Admin sections
$lang['manage_events'] = 'Manage Events';
$lang['sync_settings'] = 'Sync Settings';
$lang['backup_restore'] = 'Backup & Restore';
$lang['statistics'] = 'Statistics';
$lang['important_namespaces'] = 'Important Namespaces';
$lang['cleanup_events'] = 'Cleanup Old Events';

// Sidebar widget
$lang['upcoming_events'] = 'Upcoming Events';
$lang['important_events'] = 'Important Events';
$lang['past_events'] = 'Past Events';

// Time conflicts
$lang['time_conflict'] = 'Time Conflict';
$lang['conflicts_with'] = 'Conflicts with';

// Admin tabs
$lang['tab_manage'] = 'Manage Events';
$lang['tab_update'] = 'Update Plugin';
$lang['tab_sync'] = 'Outlook Sync';
$lang['tab_themes'] = 'Themes';

// Admin manage tab sections
$lang['event_browser'] = 'Event Browser';
$lang['important_namespaces'] = 'Important Namespaces';
$lang['cleanup_events'] = 'Cleanup Old Events';
$lang['backup_events'] = 'Backup Events';
$lang['restore_events'] = 'Restore Events';

// Admin sync tab
$lang['outlook_sync_settings'] = 'Outlook Sync Settings';
$lang['sync_url'] = 'Sync URL';
$lang['sync_interval'] = 'Sync Interval';
$lang['enable_sync'] = 'Enable Sync';
$lang['test_connection'] = 'Test Connection';

// Admin themes tab
$lang['theme_preview'] = 'Theme Preview';
$lang['select_theme'] = 'Select Theme';

// Buttons and actions
$lang['run_now'] = 'Run Now';
$lang['download'] = 'Download';
$lang['upload'] = 'Upload';
$lang['delete'] = 'Delete';
$lang['refresh'] = 'Refresh';
$lang['view_log'] = 'View Log';
$lang['clear_log'] = 'Clear Log';
$lang['save'] = 'Save';
$lang['cancel'] = 'Cancel';
$lang['close'] = 'Close';
$lang['preview'] = 'Preview';
$lang['rescan'] = 'Rescan';
$lang['select_all'] = 'All';
$lang['select_none'] = 'None';
$lang['move_to'] = 'Move to';

// Manage Events Tab
$lang['manage_calendar_events'] = 'Manage Calendar Events';
$lang['events_manager'] = 'Events Manager';
$lang['events_manager_desc'] = 'Scan, export, and import all calendar events across all namespaces.';
$lang['total_events'] = 'Total Events';
$lang['namespaces'] = 'Namespaces';
$lang['json_files'] = 'JSON Files';
$lang['recurring'] = 'Recurring';
$lang['last_scanned'] = 'Last scanned';
$lang['rescan_events'] = 'Re-scan Events';
$lang['export_all_events'] = 'Export All Events';
$lang['import_events'] = 'Import Events';
$lang['import_confirm'] = 'Import will merge with existing events. Continue?';
$lang['view_breakdown'] = 'View Breakdown by Namespace';
$lang['events_column'] = 'Events';
$lang['files_column'] = 'Files';
$lang['default_ns'] = '(default)';

// Important Namespaces
$lang['important_namespaces'] = 'Important Namespaces';
$lang['important_ns_desc'] = 'Events from these namespaces will be visually highlighted throughout the calendar:';
$lang['visual_effects'] = 'Visual Effects';
$lang['effect_grid'] = 'Calendar Grid: ⭐ star icon on event bars';
$lang['effect_sidebar'] = 'Event Sidebar: ⭐ star + highlighted background + accent border';
$lang['effect_widget'] = 'Sidebar Widget: Dedicated "Important Events" section + highlighting';
$lang['effect_popup'] = 'Day Popup: Events shown with full details';
$lang['important_ns_hint'] = 'Comma-separated list of namespace names (e.g., "important,urgent,bills")';

// Cleanup Events
$lang['cleanup_old_events'] = 'Cleanup Old Events';
$lang['cleanup_desc'] = 'Delete events based on criteria below. Automatic backup created before deletion.';
$lang['by_age'] = 'By Age';
$lang['by_status'] = 'By Status';
$lang['by_date_range'] = 'By Date Range';
$lang['delete_older_than'] = 'Delete events older than';
$lang['months'] = 'months';
$lang['years'] = 'years';
$lang['completed_tasks'] = 'Completed tasks';
$lang['past_events'] = 'Past events';
$lang['from_date'] = 'From';
$lang['to_date'] = 'To';
$lang['namespace_filter'] = 'Namespace';
$lang['namespace_filter_hint'] = 'Leave empty for all, or specify: work, personal, etc.';
$lang['backup_auto'] = 'Backup created automatically';
$lang['cleanup_confirm'] = 'Are you sure you want to delete these events? A backup will be created first, but this action cannot be easily undone.';
$lang['no_events_match'] = 'No events match the criteria. Nothing would be deleted.';
$lang['events_would_delete'] = 'The following %d event(s) would be deleted:';
$lang['loading_preview'] = 'Loading preview...';
$lang['error_loading'] = 'Error loading preview';
$lang['debug_info'] = 'Debug Info';

// Recurring Events
$lang['recurring_events'] = 'Recurring Events';
$lang['trim_all_past'] = 'Trim All Past';
$lang['rescan'] = 'Rescan';

// Namespace Explorer
$lang['namespace_explorer'] = 'Namespace Explorer';
$lang['namespace_explorer_desc'] = 'Select events and move between namespaces. Drag & drop also supported.';
$lang['search_events'] = 'Search events by title...';
$lang['type_or_select'] = 'Type or select...';
$lang['drop_target'] = 'Drop Target';
$lang['drop_here'] = 'Drop here';

// Recurring Events Table
$lang['search_recurring'] = 'Search recurring events...';
$lang['no_recurring_found'] = 'No recurring events found.';
$lang['col_title'] = 'Title';
$lang['col_namespace'] = 'Namespace';
$lang['col_pattern'] = 'Pattern';
$lang['col_range'] = 'Range';
$lang['col_count'] = 'Count';
$lang['col_source'] = 'Source';
$lang['col_actions'] = 'Actions';
$lang['source_flagged'] = 'Flagged';
$lang['source_detected'] = 'Detected';
$lang['btn_edit'] = 'Edit';
$lang['btn_manage'] = 'Manage';
$lang['btn_del'] = 'Del';
$lang['total_series'] = 'Total: %d series';

// Recurrence patterns
$lang['pattern_daily'] = 'Daily';
$lang['pattern_weekly'] = 'Weekly';
$lang['pattern_monthly'] = 'Monthly';
$lang['pattern_yearly'] = 'Yearly';
$lang['pattern_custom'] = 'Custom';

// Namespace Explorer control bar
$lang['btn_move'] = 'Move';
$lang['new_namespace'] = 'New Namespace';
$lang['cleanup_empty'] = 'Cleanup';
$lang['x_selected'] = '%d selected';
$lang['zero_selected'] = '0 selected';

// Button tooltips
$lang['tooltip_edit'] = 'Edit title, time, namespace, pattern';
$lang['tooltip_manage'] = 'Extend, trim, pause, change dates';
$lang['tooltip_delete_all'] = 'Delete all occurrences';

// JavaScript messages
$lang['no_events_selected'] = 'No events selected';
$lang['delete_confirm'] = 'Delete %d selected event(s)?\n\nThis cannot be undone!';
$lang['delete_ns_confirm'] = 'Delete ENTIRE namespace: %s?\n\nThis will delete ALL events in this namespace!\n\nThis cannot be undone!';
$lang['scanning'] = 'Scanning...';
$lang['cleaning'] = 'Cleaning...';
$lang['no_empty_ns'] = 'No empty namespaces or orphan calendar folders found.';
$lang['found_items'] = 'Found %d item(s) to clean up';
$lang['proceed_cleanup'] = 'Proceed with cleanup?';

// New Namespace dialog
$lang['enter_namespace'] = 'Enter new namespace name:\n\nExamples:\n- work\n- personal\n- projects:alpha';
$lang['invalid_namespace'] = 'Invalid namespace name.\n\nUse only letters, numbers, underscore, hyphen, and colon.\nExample: work:projects:alpha';

// Rename namespace dialog
$lang['rename_namespace'] = 'Rename namespace: %s\n\nEnter new name:';

// Delete recurring series
$lang['delete_recurring_confirm'] = 'Delete ALL occurrences of: %s (%s)?\n\nThis cannot be undone!';

// Trim recurring events
$lang['no_past_recurring'] = 'No past recurring events found to remove.';
$lang['found_past_recurring'] = 'Found %d past recurring event(s) to remove.\n\nThis cannot be undone. Proceed?';
$lang['counting'] = 'Counting...';
$lang['trimming'] = 'Trimming...';

// Manage recurring dialog buttons
$lang['btn_trim'] = 'Trim';
$lang['btn_change'] = 'Change';
$lang['btn_shift'] = 'Shift';
$lang['trim_confirm'] = 'Remove all occurrences before %s?';
$lang['respace_confirm'] = 'Respace all future occurrences?';
$lang['shift_confirm'] = 'Shift all occurrences to new start date?';

// Manage Recurring Dialog
$lang['manage_recurring_title'] = 'Manage Recurring Series';
$lang['occurrences'] = 'occurrences';
$lang['extend_series'] = 'Extend Series';
$lang['add_occurrences'] = 'Add occurrences:';
$lang['days_apart'] = 'Days apart:';
$lang['btn_extend'] = 'Extend';
$lang['trim_past_events'] = 'Trim Past Events';
$lang['remove_before'] = 'Remove before:';
$lang['change_pattern'] = 'Change Pattern';
$lang['respace_note'] = 'Respaces future occurrences only. Past events stay in place.';
$lang['new_interval'] = 'New interval:';
$lang['change_start_date'] = 'Change Start Date';
$lang['shift_note'] = 'Shifts ALL occurrences by the difference between old and new start date.';
$lang['current_label'] = 'Current:';
$lang['pause_series'] = 'Pause Series';
$lang['resume_series'] = 'Resume Series';
$lang['pause_note'] = 'Adds ⏸ prefix to future occurrences. They remain in the calendar but are visually marked as paused.';
$lang['resume_note'] = 'Removes ⏸ prefix and paused flag from all occurrences.';
$lang['btn_pause'] = 'Pause';
$lang['btn_resume'] = 'Resume';
$lang['btn_close'] = 'Close';

// Interval options
$lang['interval_daily'] = 'Daily';
$lang['interval_weekly'] = 'Weekly';
$lang['interval_biweekly'] = 'Bi-weekly';
$lang['interval_monthly'] = 'Monthly';
$lang['interval_quarterly'] = 'Quarterly';
$lang['interval_yearly'] = 'Yearly';

// Edit Recurring Dialog
$lang['edit_recurring_title'] = 'Edit Recurring Event';
$lang['changes_apply_to'] = 'Changes apply to ALL occurrences of:';
$lang['field_title'] = 'TITLE';
$lang['field_start_time'] = 'START TIME';
$lang['field_end_time'] = 'END TIME';
$lang['field_namespace'] = 'NAMESPACE';
$lang['field_color'] = 'COLOR';
$lang['recurrence_pattern'] = 'RECURRENCE PATTERN';
$lang['every'] = 'Every';
$lang['on_days'] = 'On days:';
$lang['monthly_options'] = 'Monthly options:';
$lang['day_of_month'] = 'Day of month:';
$lang['ordinal_weekday'] = 'Ordinal weekday:';
$lang['btn_save_changes'] = 'Save Changes';
$lang['btn_cancel'] = 'Cancel';

// Ordinal labels
$lang['ordinal_first'] = 'First';
$lang['ordinal_second'] = 'Second';
$lang['ordinal_third'] = 'Third';
$lang['ordinal_fourth'] = 'Fourth';
$lang['ordinal_fifth'] = 'Fifth';
$lang['ordinal_last'] = 'Last';

// Day names short
$lang['day_sun'] = 'Sun';
$lang['day_mon'] = 'Mon';
$lang['day_tue'] = 'Tue';
$lang['day_wed'] = 'Wed';
$lang['day_thu'] = 'Thu';
$lang['day_fri'] = 'Fri';
$lang['day_sat'] = 'Sat';

// Day names full
$lang['day_sunday'] = 'Sunday';
$lang['day_monday'] = 'Monday';
$lang['day_tuesday'] = 'Tuesday';
$lang['day_wednesday'] = 'Wednesday';
$lang['day_thursday'] = 'Thursday';
$lang['day_friday'] = 'Friday';
$lang['day_saturday'] = 'Saturday';

// Recurrence type labels
$lang['rec_days'] = 'Day(s)';
$lang['rec_weeks'] = 'Week(s)';
$lang['rec_months'] = 'Month(s)';
$lang['rec_years'] = 'Year(s)';

// Backup Events
$lang['backup_events'] = 'Backup Events';
$lang['backup_desc'] = 'Create full backups of all event data. Download or manage existing backups.';
$lang['create_backup'] = 'Create Backup';
$lang['available_backups'] = 'Available Backups';
$lang['no_backups'] = 'No backups found';
$lang['backup_date'] = 'Date';
$lang['backup_size'] = 'Size';
$lang['backup_actions'] = 'Actions';
$lang['delete_selected'] = 'Delete Selected';
$lang['confirm_delete_backups'] = 'Are you sure you want to delete the selected backups?';

// Static Calendar
$lang['previous_month'] = 'Previous Month';
$lang['next_month'] = 'Next Month';
$lang['print_calendar'] = 'Print Calendar';
$lang['no_events_scheduled'] = 'No events scheduled for this month.';
$lang['calendar_label'] = 'Calendar';
$lang['details'] = 'Details';
