#!/bin/bash
# =============================================================================
# Recette - Messages Francais
# Systeme de Tests d'Acceptance Automatises
# =============================================================================

# Header
MSG_RECETTE_HEADER="Recette - Tests d'Acceptance Automatises"
MSG_RECETTE_VERSION="Version"
MSG_RECETTE_GOLDEN_RULE="Regle d'Or : Un bug corrige ne doit JAMAIS reapparaitre"

# Chrome MCP
MSG_CHROME_CHECKING="Verification du MCP Chrome..."
MSG_CHROME_OK="MCP Chrome : OK"
MSG_CHROME_NOT_FOUND="MCP 'claude-in-chrome' non detecte"
MSG_CHROME_NOT_CONNECTED="Extension Chrome non connectee"
MSG_CHROME_VERSION_OLD="Version de l'extension Chrome obsolete"
MSG_CHROME_PERMISSION_REQUIRED="Permission Chrome requise pour"
MSG_CHROME_SOLUTIONS="Solutions :"
MSG_CHROME_SOLUTION_1="Lancer Claude Code avec : claude --chrome"
MSG_CHROME_SOLUTION_2="Ou executer /chrome dans cette session"
MSG_CHROME_SOLUTION_3="Verifier l'extension Chrome (v1.0.36+)"

# Session
MSG_SESSION_CREATED="Session creee"
MSG_SESSION_RESUMED="Session reprise"
MSG_SESSION_ID="ID de session"
MSG_SESSION_NOT_FOUND="Session non trouvee"
MSG_SESSION_STATUS="Statut"
MSG_SESSION_PAUSED="en pause"
MSG_SESSION_RUNNING="en cours"
MSG_SESSION_COMPLETED="terminee"
MSG_SESSION_FAILED="echouee"

# Test Plan
MSG_PLAN_GENERATING="Generation du plan de test..."
MSG_PLAN_GENERATED="Plan de test genere"
MSG_PLAN_LOADING="Chargement du plan de test..."
MSG_PLAN_LOADED="Plan de test charge"
MSG_PLAN_CATEGORIES="Categories de test"
MSG_PLAN_TESTS_COUNT="tests"
MSG_PLAN_VALIDATION_PASSED="Validation du plan reussie"
MSG_PLAN_VALIDATION_FAILED="Validation du plan echouee"

# Test Execution
MSG_EXEC_STARTING="Demarrage de l'execution des tests..."
MSG_EXEC_TEST="Execution du test"
MSG_EXEC_STEP="Etape"
MSG_EXEC_OF="sur"
MSG_EXEC_ACTION="Action"
MSG_EXEC_PASSED="REUSSI"
MSG_EXEC_FAILED="ECHOUE"
MSG_EXEC_SKIPPED="IGNORE"
MSG_EXEC_ASSERTION="Assertion"
MSG_EXEC_SCREENSHOT="Capture d'ecran..."
MSG_EXEC_COMPLETE="Execution terminee"

# Progress
MSG_PROGRESS_TITLE="Progression"
MSG_PROGRESS_TOTAL="Total"
MSG_PROGRESS_PASSED="Reussis"
MSG_PROGRESS_FAILED="Echoues"
MSG_PROGRESS_PENDING="En attente"
MSG_PROGRESS_SKIPPED="Ignores"
MSG_PROGRESS_RATE="Taux de reussite"

# Errors
MSG_ERROR="Erreur"
MSG_ERROR_DETECTED="Erreur detectee"
MSG_ERROR_TYPE="Type d'erreur"
MSG_ERROR_CLASSIFYING="Classification de l'erreur..."
MSG_ERROR_CLASSIFICATION="Classification de l'erreur"
MSG_ERROR_GENERATING_TESTS="Generation des tests de regression..."
MSG_ERROR_TESTS_GENERATED="Tests de regression generes"

# Error Types
MSG_ERROR_TYPE_VISUAL="visuel"
MSG_ERROR_TYPE_INTERACTION="interaction"
MSG_ERROR_TYPE_VALIDATION="validation"
MSG_ERROR_TYPE_LOGIC="logique"
MSG_ERROR_TYPE_SECURITY="securite"
MSG_ERROR_TYPE_API="API"

# Regression
MSG_REGRESSION_TITLE="Suite de Regression"
MSG_REGRESSION_REGISTRY="Registre de regression"
MSG_REGRESSION_ADDING="Ajout au registre de regression..."
MSG_REGRESSION_ADDED="Ajoute au registre de regression"
MSG_REGRESSION_DETECTING="Detection des regressions..."
MSG_REGRESSION_DETECTED="Regressions detectees"
MSG_REGRESSION_NONE="Aucune regression"
MSG_REGRESSION_NEW_FAILURES="Nouveaux echecs"
MSG_REGRESSION_FIXED="Corriges"
MSG_REGRESSION_ALERT="ALERTE REGRESSION"

# Checkpoints
MSG_CHECKPOINT_CREATING="Creation du checkpoint..."
MSG_CHECKPOINT_CREATED="Checkpoint cree"
MSG_CHECKPOINT_RESTORING="Restauration depuis le checkpoint..."
MSG_CHECKPOINT_RESTORED="Checkpoint restaure"

# Reports
MSG_REPORT_GENERATING="Generation du rapport..."
MSG_REPORT_GENERATED="Rapport genere"
MSG_REPORT_FORMAT="Format"
MSG_REPORT_PATH="Chemin du rapport"

# Summary
MSG_SUMMARY_TITLE="Resume de la Recette"
MSG_SUMMARY_SESSION="Session"
MSG_SUMMARY_SCOPE="Perimetre"
MSG_SUMMARY_TARGET="Cible"
MSG_SUMMARY_DURATION="Duree"
MSG_SUMMARY_TESTS="Tests"
MSG_SUMMARY_ERRORS="Erreurs"
MSG_SUMMARY_REGRESSIONS="Regressions"

# Actions
MSG_ACTION_NAVIGATE="naviguer"
MSG_ACTION_CLICK="cliquer"
MSG_ACTION_TYPE="saisir"
MSG_ACTION_FILL_FORM="remplir_formulaire"
MSG_ACTION_SCROLL="defiler"
MSG_ACTION_WAIT="attendre"
MSG_ACTION_SCREENSHOT="capture_ecran"
MSG_ACTION_HOVER="survoler"
MSG_ACTION_SELECT="selectionner"
MSG_ACTION_CHECK="cocher"
MSG_ACTION_UPLOAD="telecharger"

# Assertions
MSG_ASSERT_URL_MATCHES="URL correspond"
MSG_ASSERT_ELEMENT_VISIBLE="Element visible"
MSG_ASSERT_ELEMENT_TEXT="Texte de l'element"
MSG_ASSERT_NO_CONSOLE_ERRORS="Pas d'erreurs console"
MSG_ASSERT_RESPONSE_CODE="Code de reponse"

# Dry Run
MSG_DRY_RUN_MODE="Mode dry run"
MSG_DRY_RUN_PLAN_ONLY="Plan genere (pas d'execution)"

# Resume
MSG_RESUME_FROM="Reprise depuis"
MSG_RESUME_TEST="test"
MSG_RESUME_STEP="etape"

# Misc
MSG_LOADING="Chargement..."
MSG_SAVING="Sauvegarde..."
MSG_DONE="Termine"
MSG_CANCELLED="Annule"
MSG_WARNING="Avertissement"
MSG_INFO="Info"
MSG_SUCCESS="Succes"
MSG_YES="oui"
MSG_NO="non"
