// TagAlly Engine — output texts English.
// Terminology follows ISO 14289-1 (PDF/UA), the Matterhorn Protocol and WCAG,
// so the report reads like the standards it certifies against.

module.exports = {
  // Language metadata
  "meta.locale": "en-GB",
  "meta.htmlLang": "en",
  "meta.name": "English",

  // ---------- Report: header & metadata ----------
  "report.docType": "PDF/UA conformance report",
  "report.title": "Conformance report — {file}",
  "report.metaFile": "File",
  "report.metaProfile": "Validation profile",
  "report.metaProfileValue": "{profile} · Matterhorn Protocol",
  "report.metaEngine": "Validation engine",
  "report.metaEngineValue": "veraPDF (machine validation) · TagAlly Engine {version}",
  "report.metaDate": "Checked on",

  // ---------- Part 1: machine validation ----------
  "report.part1": "Part 1 — Machine validation",
  "report.passed": "PASSED",
  "report.failed": "NOT PASSED",
  "report.verdictSub": "{passed} rules passed · {failed} failed{checks} — all machine-checkable conditions of the Matterhorn Protocol",
  "report.verdictChecks": " · {n} individual failures",
  "report.thClause": "Clause",
  "report.thCondition": "Condition",
  "report.thViolations": "Failures",
  "report.test": "Test {n}",
  "report.pages": "Pages: {list}",

  // ---------- Part 2: manual validation ----------
  "report.part2": "Part 2 — Manual validation",
  "report.part2Intro": "No software can judge these conditions — they require human review. The PDF/UA evidence is only complete once this checklist has been worked through.",
  "report.hint": "Tick the checklist on screen, add remarks and your name below, then save it as a PDF via your browser's print function — that is the archivable record.",
  "report.toolsTitle": "Visual inspection — how to verify the checklist",
  "report.toolsFooter": "These symbols reappear at the head of each checklist group and show which tool helps there.",
  "report.remarks": "Remarks",
  "report.remarksPlaceholder": "Observations, limitations, page ranges checked …",
  "report.signedBy": "Checked by",
  "report.signedDate": "Date, signature",
  "report.footer": "Created with TagAlly Pro — accessible PDFs from InDesign",
  "report.page": "Page 1",

  // ---------- Tool box ----------
  "tool.sv": "Structure view",
  "tool.acr": "Acrobat",
  "tool.sr": "Screen reader",
  "tool.cc": "TagAlly contrast check",
  "tool.svText": "<b>TagAlly structure view</b> (“Structure view” button in the panel, tab ②): shows <b>reading order, heading hierarchy, images with alternative texts, tables and language changes</b> straight from the validated PDF — no extra software needed.",
  "tool.acrText": "<b>Acrobat</b>: the Tags panel and the “Reading order” tool for checking individual elements in detail; document properties for title, language and bookmarks.",
  "tool.srText": "<b>Screen reader cross-check</b>: run VoiceOver (macOS, ⌘F5) or NVDA (Windows, free) over the document once — the most honest test of the reading flow.",
  "tool.ccText": "<b>TagAlly contrast check</b> (step “Alternative texts, tables &amp; contrast” in tab ① and live in the object inspector): measures text colour against the background area to WCAG (4.5:1 and 3:1 respectively) directly in the document; text over images is listed for visual inspection. For pixel measurements in the finished PDF, the “Colour Contrast Analyser” (TPGi, free) remains an alternative.",

  // ---------- Manual checklist ----------
  "check.structure": "Structure & reading order",
  "check.structure.1": "The reading order of the tags matches the intended reading flow of the document.",
  "check.structure.2": "No content-bearing element has been hidden as an artifact.",
  "check.structure.3": "The semantic tags (paragraph, quotation, list …) match the meaning of the content.",
  "check.headings": "Headings",
  "check.headings.1": "The heading levels correctly reflect the structure of the content.",
  "check.language": "Language",
  "check.language.1": "The declared document language matches the content.",
  "check.language.2": "Passages in other languages are tagged with their respective language.",
  "check.graphics": "Graphics & alternative texts",
  "check.graphics.1": "Every alternative text describes the image content accurately and concisely.",
  "check.graphics.2": "Purely decorative graphics are marked as artifacts.",
  "check.graphics.3": "Complex figures (charts, infographics) are explained in the text or in a long description.",
  "check.tables": "Tables",
  "check.tables.1": "Header cells are correct and completely defined.",
  "check.tables.2": "The tagged table structure matches the visual layout.",
  "check.links": "Links & references",
  "check.links.1": "Link texts and link descriptions are meaningful (no “click here”).",
  "check.color": "Colour & contrast",
  "check.color.1": "Colour is never the only means of conveying information.",
  "check.color.2": "Text meets the contrast requirements (at least AA).",
  "check.meta": "Metadata & navigation",
  "check.meta.1": "The document title is meaningful.",
  "check.meta.2": "Longer documents have bookmarks, and they are correct.",
  "check.final": "Final check",
  "check.final.1": "The post-processed PDF (…-ua.pdf) is visually identical to the original export.",

  // ---------- Contrast findings in the report ----------
  "contrast.fails": "✗ TagAlly contrast check: {n} instance(s) below the WCAG threshold — fix them in the panel (step “Alternative texts, tables &amp; contrast”) and export again.",
  "contrast.manualItem": "Visual contrast check: text over image/gradient on page {pages} — is it legible enough?",
  "contrast.covered": "✓ Machine-checked (TagAlly contrast check): {checked} text ranges, none below the WCAG thresholds{approved} — no further contrast check required.",
  "contrast.coveredApproved": " — plus {n} instance(s) of text over image/gradient visually checked and approved",

  // ---------- Error messages (engine) ----------
  "err.fileNotFound": "File not found: {file}",
  "err.verapdfMissing": "veraPDF not found. Set the path in engine/config.json under \"verapdfPath\".",
  "err.verapdfFailed": "veraPDF call failed: {msg}",
  "err.verapdfParse": "Could not parse the veraPDF report: {msg}",

  // ---------- Structure view (TagAllyView, passed through to Java) ----------
  "view.docType": "Structure view (tag tree)",
  "view.intro": "Reading order from top to bottom — exactly how a screen reader works through the document. Document language: {lang} · passages in other languages have a blue background (badge on the right) · alternative texts below each figure.",
  "view.langConflict": "⚠ Language conflict: the tag structure declares “{lang}” at its top level while the document language is “{docLang}” — a screen reader will therefore read the ENTIRE document in the wrong language. Check the language in InDesign and export again.",
  "view.alt": "Alt",
  "view.altMissing": "MISSING",
  "view.noStructure": "This PDF contains no tag structure (it is not a tagged PDF).",
  "view.pageChip": "p. {n}",
  "view.footer": "Generated by TagAlly Pro · {headings} headings · {figures} figures ({noAlt} without alt text) · {tables} tables · {links} links",
  "view.stats": "Elements: {headings} headings · {figures} figures ({noAlt} without alt) · {tables} tables · {links} links",
  "view.saved": "Structure view: {file}",

  // ---------- Post-processing (TagAllyFix) ----------
  "fix.cidSets": "CIDSet streams removed: {n}",
  "fix.links": "Link annotations given a description (Contents): {n}",
  "fix.orphanLinks": "Orphaned link annotations wrapped in Link elements: {n}",
  "fix.thScope": "TH cells given a Scope attribute: {n}",
  "fix.paths": "Untagged vector paths wrapped as artifacts: {n}",
  "fix.rootLang": "Root language of the tag structure corrected: {n}",
  "fix.roleMap": "Role mappings flattened (style names → standard tags): {n}",
  "fix.langInject": "Language changes tagged (Lang): {n}",
  "fix.displayDocTitle": "ViewerPreferences/DisplayDocTitle = true",
  "fix.xmpAdded": "XMP: pdfuaid:part = 1 added",
  "fix.xmpPresent": "XMP: pdfuaid:part already present",
  "fix.saved": "Saved: {file}",
  "fix.langSkipped": "Language injection skipped: {msg}",
  "fix.rootLangDetail": "  {type}: Lang {from} → {to}",

  // ---------- Meldungen des Starters und der Konsole ----------
  "console.starting": "Starting the TagAlly Engine. Please leave this window open.",
  "console.running": "TagAlly Engine {version} is running at {url}",
  "console.verapdf": "veraPDF: {path}",
  "console.verapdfMissing": "veraPDF was not found. Please enter its path in config.json.",
  "console.alreadyRunning": "TagAlly Engine {version} is already running at {url}. Nothing to do.",
  "console.closeWindow": "You can close this window.",
  "console.olderRunning": "Version {running} is still running, version {local} is on disk.",
  "console.replacing": "Replacing the older engine …",
  "console.replaced": "Replaced.",
  "console.stopping": "Stopping the engine (requested by the starter).",
  "console.stopFailed": "The running engine could not stop itself.",
  "console.stopFailedHint": "With very old versions that is normal. Please do it once by hand:",
  "console.stopFailedRetry": "Then run this starter again.",
  "console.portBusy": "Port {port} is already in use.",
  "console.portBusyHint": "Is the engine already running? Then please use the starter, it replaces an older version by itself.",
  "console.nodeMissing": "Node.js was not found.",
  "console.nodeMissingHint": "Please install it from https://nodejs.org and run this script again.",
  "console.engineStopped": "The engine has stopped.",
  "console.pressEnter": "Press Enter to close this window …"
};
