import type { Messages } from '../types';

export const enSystemManagerMessages: Messages = {
  'terminal.layer.system': 'System',

  'systemManager.noSession': 'No active terminal session.',
  'systemManager.notConnected': 'Connect to a host to manage processes and services.',
  'systemManager.empty': 'No data available.',
  'systemManager.tabs.processes': 'Processes',
  'systemManager.tabs.tmux': 'tmux',
  'systemManager.tabs.docker': 'Docker',
  'systemManager.popup.loading': 'Opening terminal…',
  'systemManager.popup.startupFailed': 'The startup command did not complete successfully. Check that the target is still available and try again.',

  'systemManager.errors.loadProcesses': 'Failed to load processes',
  'systemManager.errors.loadTmux': 'Failed to load tmux sessions',
  'systemManager.errors.loadTmuxWindows': 'Failed to load tmux windows',
  'systemManager.errors.loadTmuxPanes': 'Failed to load tmux panes',
  'systemManager.errors.loadTmuxClients': 'Failed to load tmux clients',
  'systemManager.errors.actionFailed': 'Action failed',
  'systemManager.errors.loadDocker': 'Failed to load containers',
  'systemManager.errors.loadDockerStats': 'Failed to load container stats',
  'systemManager.errors.loadDockerImages': 'Failed to load images',
  'systemManager.errors.sshChannelUnavailable': 'The server refused to open a new execution channel. Try again later, or reconnect this host.',

  'systemManager.processes.search': 'Search processes…',
  'systemManager.processes.command': 'Command',
  'systemManager.processes.user': 'User',
  'systemManager.processes.term': 'Terminate',
  'systemManager.processes.kill': 'Kill',
  'systemManager.processes.stop': 'Stop (SIGSTOP)',
  'systemManager.processes.cont': 'Continue (SIGCONT)',
  'systemManager.processes.hup': 'Hang up (SIGHUP)',
  'systemManager.processes.renice': 'Renice',
  'systemManager.processes.renicePrompt': 'Nice value (-20 to 19)',
  'systemManager.processes.reniceInvalid': 'Nice value must be between -20 and 19',
  'systemManager.processes.confirmKill': 'Send SIGKILL to process {{pid}}?',
  'systemManager.processes.confirmSignal': 'Send SIG{{signal}} to process {{pid}}?',
  'systemManager.processes.filter.all': 'All',
  'systemManager.processes.filter.running': 'Running',
  'systemManager.processes.ppid': 'Parent PID',
  'systemManager.processes.rss': 'RSS',
  'systemManager.processes.vsz': 'Virtual size',
  'systemManager.processes.elapsed': 'Elapsed',
  'systemManager.processes.stat': 'State',
  'systemManager.processes.meta': '{{count}} process(es)',
  'systemManager.processes.loading': 'Loading processes…',
  'systemManager.processes.loadingMore': 'Loading more processes…',
  'systemManager.processes.state.running': 'Running',
  'systemManager.processes.state.sleeping': 'Sleeping',
  'systemManager.processes.state.stopped': 'Stopped',
  'systemManager.processes.state.zombie': 'Zombie',
  'systemManager.processes.sort.cpu': 'CPU',
  'systemManager.processes.sort.mem': 'MEM',
  'systemManager.processes.sort.pid': 'PID',
  'systemManager.processes.sort.command': 'Command',
  'systemManager.processes.sort.user': 'User',

  'systemManager.common.dismiss': 'Dismiss',
  'systemManager.common.checkingAvailability': 'Checking availability…',
  'systemManager.common.loading': 'Loading…',
  'systemManager.common.loadingDetails': 'Loading details…',
  'systemManager.common.loadingStats': 'Loading stats…',

  'systemManager.tmux.new': 'New',
  'systemManager.tmux.search': 'Search sessions…',
  'systemManager.tmux.newSessionTitle': 'New tmux session',
  'systemManager.tmux.newSessionDesc': 'Name the session and optionally run a script on start.',
  'systemManager.tmux.newSessionTabCustom': 'Custom command',
  'systemManager.tmux.newSessionTabSnippet': 'From snippet',
  'systemManager.tmux.pickSnippet': 'From snippets',
  'systemManager.tmux.pickSnippetEmpty': 'No snippets yet — add some in the Scripts panel or Vault.',
  'systemManager.tmux.selectedSnippet': 'Using snippet: {{label}}',
  'systemManager.tmux.newSessionName': 'Session name',
  'systemManager.tmux.newSessionCommand': 'Start command',
  'systemManager.tmux.newSessionCommandPlaceholder': 'e.g. htop or npm run dev (optional)',
  'systemManager.tmux.newSessionCommandHint': 'Leave empty for a default shell session.',
  'systemManager.tmux.creating': 'Creating…',
  'systemManager.tmux.newSessionPlaceholder': 'my-session',
  'systemManager.tmux.newSessionRequired': 'Enter a session name first',
  'systemManager.tmux.empty': 'No tmux sessions',
  'systemManager.tmux.attach': 'Attach',
  'systemManager.tmux.attached': 'Attached',
  'systemManager.tmux.detached': 'Detached',
  'systemManager.tmux.windows': '{{count}} window(s)',
  'systemManager.tmux.created': 'Created',
  'systemManager.tmux.activity': 'Activity',
  'systemManager.tmux.rename': 'Rename',
  'systemManager.tmux.detach': 'Detach all',
  'systemManager.tmux.killSession': 'Kill session',
  'systemManager.tmux.killServer': 'Kill server',
  'systemManager.tmux.loadingDetails': 'Loading details…',
  'systemManager.tmux.clients': 'Attached clients',
  'systemManager.tmux.windowList': 'Windows',
  'systemManager.tmux.newWindow': 'New window',
  'systemManager.tmux.newWindowPlaceholder': 'Window name (optional)',
  'systemManager.tmux.noWindows': 'No windows',
  'systemManager.tmux.unavailable': 'tmux is not available on this host',
  'systemManager.docker.unavailable': 'Docker is not available on this host',
  'systemManager.tmux.windowsMismatch': 'Session reports {{count}} window(s) but list-windows returned none',
  'systemManager.tmux.lastCommand': 'last command: {{command}}',
  'systemManager.tmux.noPanes': 'No panes',
  'systemManager.tmux.panes': '{{count}} pane(s)',
  'systemManager.tmux.active': 'active',
  'systemManager.tmux.unnamedWindow': 'Unnamed window',
  'systemManager.tmux.unnamedPane': 'Unnamed pane',
  'systemManager.tmux.attachWindow': 'Attach to window',
  'systemManager.tmux.selectWindow': 'Select window',
  'systemManager.tmux.killWindow': 'Kill window',
  'systemManager.tmux.killPane': 'Kill pane',
  'systemManager.tmux.splitHorizontal': 'Split horizontal',
  'systemManager.tmux.splitVertical': 'Split vertical',
  'systemManager.tmux.sendKeys': 'Send keys',
  'systemManager.tmux.sendKeysTo': 'Send keys to window {{window}} pane {{pane}}',
  'systemManager.tmux.sendKeysPlaceholder': 'Command or text…',
  'systemManager.tmux.renameSessionPrompt': 'Rename session',
  'systemManager.tmux.renameWindowPrompt': 'Rename window',
  'systemManager.tmux.windowName': 'Window name',
  'systemManager.tmux.confirmKillSession': 'Kill tmux session "{{name}}"?',
  'systemManager.tmux.confirmDetachSession': 'Detach all clients from "{{name}}"?',
  'systemManager.tmux.confirmKillWindow': 'Kill window "{{name}}"?',
  'systemManager.tmux.confirmKillPane': 'Kill pane #{{index}}?',
  'systemManager.tmux.confirmKillServer': 'Kill tmux server? All sessions will be terminated.',
  'systemManager.tmux.meta': '{{count}} session(s)',

  'systemManager.docker.title': 'Containers',
  'systemManager.docker.subTabs.containers': 'Containers',
  'systemManager.docker.subTabs.images': 'Images',
  'systemManager.docker.empty': 'No containers found',
  'systemManager.docker.imagesEmpty': 'No images found',
  'systemManager.docker.search': 'Search containers…',
  'systemManager.docker.searchImages': 'Search images…',
  'systemManager.docker.filter.all': 'All',
  'systemManager.docker.filter.running': 'Running',
  'systemManager.docker.filter.stopped': 'Stopped',
  'systemManager.docker.filter.paused': 'Paused',
  'systemManager.docker.shell': 'Shell',
  'systemManager.docker.logs': 'Logs',
  'systemManager.docker.details': 'Details',
  'systemManager.docker.inspect': 'Inspect',
  'systemManager.docker.imageInspect': 'Image inspect',
  'systemManager.docker.confirmRemove': 'Remove this container?',
  'systemManager.docker.confirmKill': 'Force kill this container?',
  'systemManager.docker.confirmRemoveImage': 'Remove image "{{name}}"?',
  'systemManager.docker.confirmPrune': 'Remove dangling images?',
  'systemManager.docker.confirmPruneAll': 'Remove all unused images?',
  'systemManager.docker.pause': 'Pause',
  'systemManager.docker.unpause': 'Unpause',
  'systemManager.docker.restart': 'Restart',
  'systemManager.docker.kill': 'Kill',
  'systemManager.docker.renamePrompt': 'Container name',
  'systemManager.docker.prune': 'Prune',
  'systemManager.docker.pruneAll': 'Prune all',
  'systemManager.docker.tag': 'Tag',
  'systemManager.docker.tagRepoPrompt': 'Repository name',
  'systemManager.docker.tagNamePrompt': 'Tag name',
  'systemManager.docker.meta': '{{count}} container(s)',
  'systemManager.docker.imagesMeta': '{{count}} image(s)',
  'systemManager.docker.start': 'Start',
  'systemManager.docker.stop': 'Stop',

  'systemManager.inspect.status': 'Status',
  'systemManager.inspect.image': 'Image',
  'systemManager.inspect.created': 'Created',
  'systemManager.inspect.started': 'Started',
  'systemManager.inspect.restartPolicy': 'Restart policy',
  'systemManager.inspect.command': 'Command',
  'systemManager.inspect.ports': 'Ports',
  'systemManager.inspect.networks': 'Networks',
  'systemManager.inspect.mounts': 'Mounts',
  'systemManager.inspect.env': 'Environment',
  'systemManager.inspect.labels': 'Labels',
  'systemManager.inspect.tags': 'Tags',
  'systemManager.inspect.digests': 'Digests',
  'systemManager.inspect.size': 'Size',
  'systemManager.inspect.platform': 'Platform',
  'systemManager.inspect.workdir': 'Working dir',
  'systemManager.inspect.exposedPorts': 'Exposed ports',
  'systemManager.inspect.showRaw': 'JSON',
  'systemManager.inspect.hideRaw': 'Hide JSON',
};
