<?php

// Version & releases page strings (R16). Shared buttons live in common.php.
return [
    // Header
    'eyebrow' => 'Version',
    'heading' => 'Version & releases',
    'check_updates' => 'Check for updates',

    // Status banner
    'channel_badge' => 'Channel: :channel',
    'latest_release_badge' => 'latest release v:tag',
    'banner_default' => 'Installed version. “Check for updates” honestly compares it against the newest tagged release in the channel. Updating runs through the deploy (pull image + migrate).',
    'checked_at' => 'checked :time',

    // Update-check results (notifications / status line)
    'status_none_tagged' => 'No release tagged yet — installed version v:installed (channel: :channel).',
    'status_update_available' => 'Update available: v:latest (channel: :channel).',
    'status_current' => 'Up to date — v:installed (channel: :channel).',

    // "What's new" preview (shown before updating)
    'whats_new_title' => "What's new in :tag",
    'whats_new_subtitle' => 'read before updating',

    // Changelog panel
    'changelog_title' => 'Changelog',
    'changelog_subtitle' => ':count versions',
    'unreleased' => 'Unreleased',
    'in_progress' => 'in progress',
    'changelog_empty' => 'No changelog found.',

    // Series index + pagination (changelog grouped by major.minor series)
    'series_nav' => 'Version series',
    'series_label' => 'Series :series',
    'series_count' => '{1} :count release|[2,*] :count releases',
    'series_other' => 'Other',
    'series_installed' => 'Installed series',
    'pagination_nav' => 'Pages',
    'pagination_prev' => 'Previous',
    'pagination_next' => 'Next',

    // Changelog section labels (Keep a Changelog subsections)
    'section_added' => 'Added',
    'section_changed' => 'Changed',
    'section_fixed' => 'Fixed',
    'section_security' => 'Security',
    'section_removed' => 'Removed',
    'section_deprecated' => 'Deprecated',

    // Installed panel
    'installed_title' => 'Installed',
    'running' => 'running',
    'build' => 'Build',
    'branch' => 'Branch',
    'channel' => 'Channel',
    'latest_release' => 'Latest release',
    'license' => 'License',

    // Update panel
    'update_title' => 'Update',
    'update_hint' => 'Updates arrive via tagged releases. On the host a single command rebuilds the image and applies migrations:',

    // Dashboard-triggered update (one-click; a host watcher runs update.sh)
    'update_now' => 'Update now',
    'update_started' => 'Update started — the interface will be unreachable for a minute or two while the stack rebuilds. Reload the page afterwards.',
    'update_running' => 'Update in progress — the stack is rebuilding. Reload shortly.',
    'update_not_available' => 'No update available — the installed version is already current.',
    'update_throttled' => 'Too many update requests — try again in :seconds seconds.',
    'update_write_failed' => 'Could not start the update (sentinel not writable). Please update once via SSH with "sudo clusev update".',
    'update_done' => 'Update complete — now on v:version.',
    'update_stalled' => 'Update is taking unusually long — check the logs (journalctl -u clusev-update.service) or reload.',

    // Project panel
    'project_title' => 'Project',
    'open_core' => 'Open Core · :license',

    // Page title
    'title' => 'Version — Clusev',
];
