"""English translations."""

TRANSLATIONS = {
    # CLI help
    "cli.description": "Fast Python syntax and import checker for Git hooks",
    "cli.help.quiet": "Reduce output messages",
    "cli.help.fail_fast": "Stop immediately on first error",
    "cli.help.timeout": "Import check timeout in seconds (default: 30)",
    "cli.help.check_relative": "Forbid relative imports (fail if found)",
    "cli.help.venv": "Virtual environment path (e.g., . or /path/to/project)",
    "cli.help.i_understand": "I understand that import checking will actually load and execute all module code",
    "cli.help.subcommand": "Subcommand",
    "cli.help.syntax": "Check Python syntax",
    "cli.help.imports": "Check import dependencies",
    "cli.help.install_hooks": "Install Git hooks",
    "cli.help.uninstall_hooks": "Remove Git hooks",
    "cli.help.hook_type": "Hook type (default: pre-commit)",
    "cli.examples": """Examples:
  pyci-check syntax                                        # Check syntax only
  pyci-check imports --i-understand-this-will-execute-code # Check imports (will execute code)
  pyci-check --quiet --i-understand-this-will-execute-code # Run all checks in quiet mode
  pyci-check install-hooks                                 # Install pre-commit hook
  pyci-check install-hooks --type pre-push                 # Install pre-push hook
  pyci-check uninstall-hooks                               # Remove all hooks
""",
    # Syntax check
    "syntax.no_files": "No Python files found",
    "syntax.checking": "Checking syntax of {} files...",
    "syntax.success": "✓ All files have correct syntax",
    # Import check - execution
    "imports.checking": "Checking import dependencies...",
    "imports.pythonpath": "PYTHONPATH: {}",
    "imports.venv": "Virtual environment: {}",
    "imports.mode_static": "✓ Mode: Static analysis (safe, does not execute code)",
    "imports.mode_static_hint": "💡 Tip: To detect runtime errors, add --i-understand-this-will-execute-code",
    "imports.mode_execute": "⚠️  Mode: Real import execution (will load and execute all code)",
    "imports.mode_execute_warning": "⚠️  Security Warning: May trigger side effects (file writes, network requests, system changes, etc.)",
    "imports.relative_import_warning": "⚠️  Relative import: {}:{} - {}",
    "imports.module_failed": "❌ Load failed: {}",
    "imports.file": "   File: {}:{}",
    "imports.statement": "   Statement: {}",
    "imports.reason": "   Reason: {}",
    "imports.success": "✓ All import dependencies are correct",
    # Check all
    "check_all.start": "Starting checks...",
    "check_all.syntax_phase": "[1/2] Syntax check",
    "check_all.imports_phase": "[2/2] Import check",
    "check_all.success": "✓ All checks passed",
    "check_all.errors": "✗ Errors found",
    # Git hooks
    "hooks.find_git_error": "Error: .git directory not found",
    "hooks.find_git_hint": "Please ensure you are running this command in a Git repository",
    "hooks.create_error": "Failed to create hook: {}",
    "hooks.malformed_markers": "⚠️  Hook file malformed: found start marker but missing end marker",
    "hooks.remove_error": "Failed to remove hook block: {}",
    "hooks.file_exists": "⚠️  {} already exists",
    "hooks.overwrite_prompt": "Overwrite? (y/N): ",
    "hooks.skip": "Skipping {} hook",
    "hooks.install_success": "✓ Installed {} hook: {}",
    "hooks.uninstall_success": "✓ Removed {} hook",
    "hooks.uninstall_not_pyci": "⚠️  {} was not generated by pyci-check, skipping",
    "hooks.uninstall_none_found": "No hooks found to remove",
    # Hook templates
    "hooks.template.no_py_files": "No Python files to check",
    "hooks.template.checking": "Running Python checks...",
    "hooks.template.not_installed": "Error: pyci-check not installed",
    "hooks.template.install_hint": "Please run: pip install pyci-check",
    # Import check (standalone mode - when imports.py is run directly)
    "imports.standalone.relative_warning": "[Warning] Relative import: {} line {} - {}",
    "imports.standalone.load_failed": "[Error] Load failed: {}",
    "imports.standalone.file_line": "       File: {} line {}",
    "imports.standalone.statement": "       Statement: {}",
    "imports.standalone.reason": "       Reason: {}",
    "imports.standalone.summary_line": "-" * 60,
    "imports.standalone.summary_time": "Check completed, total time: {:.2f} seconds",
    "imports.standalone.summary_modules": "Checked {} unique modules",
    "imports.standalone.summary_failed": "Found {} modules that failed to load",
    "imports.standalone.summary_success": "All modules loaded successfully ✓",
    "imports.standalone.start_check": "Starting check: {}",
    "imports.standalone.pythonpath": "PYTHONPATH: {}",
    "imports.standalone.exclude_dirs": "Excluded directories: {}",
    "imports.standalone.exclude_files": "Excluded files: {}",
    "imports.standalone.mode": "Using subprocess parallel checking (actual import execution)",
    "imports.standalone.found_modules": "Found {} unique modules, starting check...",
    "imports.standalone.run_dynamic": "Running dynamic import check: {}",
    # Import error messages
    "imports.error.find_spec_failed": "find_spec failed: {}",
    "imports.error.module_not_found": "Static analysis cannot find module: {}",
    "imports.error.invalid_module_name": "Invalid module name: {}",
    "imports.error.import_timeout": "Import timeout ({}s)",
    "imports.error.failed_to_execute": "Failed to execute Python: {}",
    "imports.error.unexpected_error": "Unexpected error: {}",
    # Syntax error messages
    "syntax.error.syntax_error": "SyntaxError: {}",
    "syntax.error.encoding_error": "Encoding Error: {}",
    "syntax.error.file_error": "File Error: {}",
    "syntax.error.unexpected_error": "Unexpected Error: {}",
    "syntax.error.exception": "Exception: {}",
}
