-- Keybinding globals: must be set before Bindings.xml processes
BINDING_HEADER_BPS           = "Battle Pet Statistics"
BINDING_NAME_BPS_FORFEIT     = "Forfeit current pet battle"
BINDING_NAME_BPS_REQUEUE     = "Queue for PvP pet battle"
BINDING_NAME_BPS_ENTERBATTLE = "Accept / Enter pet battle"

BPS_L = {}

local L_EN = {
    -- Battle overlay
    SESSION_TITLE      = "Session:",
    OVERALL            = "Overall : Wins : %d  Lose: %d",
    WINRATE             = "Winrate : %d%%",
    GOAL_LINE           = "Goal: %s (%d/%d)",
    GOAL_DONE_LINE      = "Congratulations, you finished the PvP pet battle achievements.",
    VS                  = "Vs",
    VS_RANDOM            = "Random",
    WIN                 = "Wins",
    LOSE                = "Loses",
    YOU_SHOULD_WIN      = "You should Win",
    YOU_SHOULD_LOSE     = "You should Lose",
    FORFEIT_BUTTON      = "Forfeit",
    REQUEUE_BUTTON      = "Queue Again",

    -- Options
    OPTIONS_TITLE       = "Battle Pet Statistics - Options",
    OPTIONS_TITLE_TAB   = "Options",
    STATS_TITLE_TAB     = "Statistics",
    INTERFACE_TITLE_TAB = "Interface",
    SESSION_LINE        = "Session: Won: %d  Lost: %d",
    LANGUAGE             = "Language",
    LANG_AUTO            = "Auto (detect)",
    LANG_EN              = "English",
    LANG_FR              = "French",
    LANG_PL              = "Polish",
    LANG_SV              = "Swedish",
    LANG_CS              = "Czech",
    LANG_DE              = "German",
    LANG_IT              = "Italian",
    LANG_RU              = "Russian",
    LANG_ZH              = "Chinese (Simplified)",
    LANG_PT              = "Portuguese (Portugal)",
    LANG_ES              = "Spanish",
    STATS_TITLE          = "Statistics",
    STATS_GLOBAL_TITLE     = "Global Statistics",
    TOTAL_GAMES             = "Total games: %d",
    TOTAL_WON               = "Won: %d",
    TOTAL_LOST              = "Lost: %d",
    SESSION_COUNT_LINE      = "Number of sessions completed: %d",
    SESSION_CURRENT_TITLE   = "Current session:",
    SESSION_GAMES_PLAYED    = "Games played this session: %d",
    FAIRPLAY_REFRESH_HINT   = "The ranking may take a few seconds to update.",
    COL_PET              = "Opponent",
    COL_WIN              = "Won",
    COL_LOSE             = "Lost",
    COL_RATIO            = "Ratio",
    COL_WINRATE           = "Winrate",
    COL_SECTION_TOTAL     = "Total",
    COL_SECTION_NO_RANDOM = "Without Random",
    NR_TOTAL_GAMES          = "Without Random: %d",
    NR_TOTAL_WON            = "Won: %d",
    NR_TOTAL_LOST           = "Lost: %d",
    NR_SESSION_GAMES        = "Without Random: %d",
    SHOW_NR_STATS           = "Show No-Random games/winrate",

    AUTO_SECTION_TITLE      = "Automation",
    AUTO_REQUEUE_LABEL      = "Auto-requeue after each battle",
    AUTO_REQUEUE_HINT       = "Automatically re-enters the PvP queue after each battle ends.",
    AUTO_REQUEUE_DELAY_LABEL = "Delay before requeue (seconds):",
    AUTO_REQUEUE_DELAY_HINT  = "Increase if your PC is slow to load between battles.",
    FAIRPLAY_TITLE        = "Most fair-play opponents (W/L ratio closest to 1)",
    NO_DATA               = "No data recorded yet.",
    RESET_BUTTON          = "Reset All Stats",
    RESET_CONFIRM         = "Are you sure you want to reset ALL Battle Pet Statistics data?",
    TOTAL                 = "Total games: %d  (Won: %d / Lost: %d)",
    MINIMAP_TOOLTIP        = "Battle Pet Statistics\nClick to open options",
    EDIT_BUTTON            = "Edit",
    EDIT_TITLE             = "Edit stats for %s",
    EDIT_WINS              = "Wins:",
    EDIT_LOSSES            = "Losses:",
    SAVE_BUTTON            = "Save",
    CANCEL_BUTTON          = "Cancel",

    DISPLAY_SECTION_TITLE  = "Battle overlay lines",
    DISPLAY_SECTION_HINT   = "Choose which lines and buttons are shown on the overlay during pet battles.",
    SHOW_OVERALL            = "Show Overall line",
    SHOW_WINRATE             = "Show Winrate line",
    SHOW_GOAL                = "Show Goal line",
    SHOW_VS                  = "Show opponent name line",
    SHOW_VS_STATS            = "Show opponent W/L line",
    SHOW_VS_WINRATE          = "Show opponent winrate line",
    SHOW_PREDICTION          = "Show Win/Lose prediction line",
    SHOW_FORFEIT_BUTTON      = "Show Forfeit button",
    SHOW_FORFEIT_VS_RANDOM_WHEN_WINNING = "Show Forfeit button vs Random even when you should win",
    BATTLE_EDIT_BUTTON       = "Edit",

    GOAL_SECTION_TITLE      = "Achievement goal",
    GOAL_CURRENT             = "Current goal:",
    GOAL_COMPLETED           = "Completed",
    GOAL_COMPLETED_LIST_TITLE = "Completed achievements:",
    GOAL_NONE_COMPLETED      = "No achievement completed yet.",

    -- Achievement (goal) names - official Blizzard English names
    GOAL_NAME_BRAWLER_10     = "Pet Brawler",
    GOAL_NAME_BRAWLER_50     = "Experienced Pet Brawler",
    GOAL_NAME_BRAWLER_250    = "Master Pet Brawler",
    GOAL_NAME_BRAWLER_1000   = "Grand Master Pet Brawler",
    GOAL_NAME_BRAWLER_5000   = "Legendary Pet Brawler",
    GOAL_NAME_MERCILESS      = "Ruthless Pet Brawler",
    GOAL_NAME_VENGEFUL       = "Vengeful Pet Brawler",
    GOAL_NAME_BRUTAL         = "Brutal Pet Brawler",
    GOAL_NAME_DEADLY         = "Deadly Pet Brawler",

    KEYBIND_SECTION_TITLE   = "Keybindings",
    KEYBIND_HINT             = "Set your keybindings in the standard WoW Key Bindings panel, category \"Battle Pet Statistics\".",
    OPEN_KEYBINDINGS         = "Open Key Bindings",

    -- Trade Win Session section
    TRADEWIN_SECTION_TITLE      = "Trade Win Session",
    TRADEWIN_INTRO              = "Choose one of the following options to automatically rename your pets with your character's name:",
    TRADEWIN_SHOW_STARTUP       = "Show the window at startup",
    TRADEWIN_SHOW_AFTER_BATTLE  = "Show the window after your first battle",
    TRADEWIN_SHOW_NEVER         = "Never show the window",
    TRADEWIN_SHOW_IF_NOT_RENAMED = "Show the window only if your first pet hasn't been renamed yet",
    TRADEWIN_RESTORE_QUESTION   = "When you exit WoW, would you like your current team's pets to be restored to their default names?",
    TRADEWIN_RESTORE_YES        = "Yes",
    TRADEWIN_RESTORE_NO         = "No",

    BIG_CONGRATS             = "Congratulations, you finished the PvP pet battle achievements.",

    -- Alias setup popups
    ALIAS_PROMPT_TITLE          = "Your Alias :",
    ALIAS_VALIDATE               = "Validate",
}

local L_FR = {
    SESSION_TITLE      = "Session :",
    OVERALL            = "Total : Gagnées : %d  Perdues : %d",
    WINRATE             = "Winrate : %d%%",
    GOAL_LINE           = "Objectif : %s (%d/%d)",
    GOAL_DONE_LINE      = "Félicitation vous avez fini les combats de mascottes en Pvp.",
    VS                  = "Vs",
    VS_RANDOM            = "Random",
    WIN                 = "Gagnées",
    LOSE                = "Perdues",
    YOU_SHOULD_WIN      = "Tu dois Gagner",
    YOU_SHOULD_LOSE     = "Tu dois Perdre",
    FORFEIT_BUTTON      = "Abandonner",
    REQUEUE_BUTTON      = "Relancer un combat",

    OPTIONS_TITLE       = "Battle Pet Statistics - Options",
    OPTIONS_TITLE_TAB   = "Options",
    STATS_TITLE_TAB     = "Statistiques",
    INTERFACE_TITLE_TAB = "Interface",
    SESSION_LINE        = "Session : Gagnées : %d  Perdues : %d",
    LANGUAGE             = "Langue",
    LANG_AUTO            = "Auto (détecter)",
    LANG_EN              = "Anglais",
    LANG_FR              = "Français",
    LANG_PL              = "Polonais",
    LANG_SV              = "Suédois",
    LANG_CS              = "Tchèque",
    LANG_DE              = "Allemand",
    LANG_IT              = "Italien",
    LANG_RU              = "Russe",
    LANG_ZH              = "Chinois (simplifié)",
    LANG_PT              = "Portugais (Portugal)",
    LANG_ES              = "Espagnol",
    STATS_TITLE          = "Statistiques",
    STATS_GLOBAL_TITLE     = "Statistique Globale",
    TOTAL_GAMES             = "Partie totale : %d",
    TOTAL_WON               = "Gagnées : %d",
    TOTAL_LOST              = "Perdues : %d",
    SESSION_COUNT_LINE      = "Nombre de session effectuées : %d",
    SESSION_CURRENT_TITLE   = "Session actuel :",
    SESSION_GAMES_PLAYED    = "Parties jouées cette session : %d",
    FAIRPLAY_REFRESH_HINT   = "Le classement peut prendre quelques secondes à s'actualiser.",
    COL_PET              = "Adversaire",
    COL_WIN              = "Gagnées",
    COL_LOSE             = "Perdues",
    COL_RATIO            = "Ratio",
    COL_WINRATE           = "Winrate",
    COL_SECTION_TOTAL     = "Total",
    COL_SECTION_NO_RANDOM = "Sans Random",
    NR_TOTAL_GAMES          = "Sans Random : %d",
    NR_TOTAL_WON            = "Gagnées : %d",
    NR_TOTAL_LOST           = "Perdues : %d",
    NR_SESSION_GAMES        = "Sans Random : %d",
    SHOW_NR_STATS           = "Afficher parties/winrate sans Random",

    AUTO_SECTION_TITLE      = "Automatisation",
    AUTO_REQUEUE_LABEL      = "Re-lancer la file automatiquement après chaque combat",
    AUTO_REQUEUE_HINT       = "Relance automatiquement la file PvP après chaque combat.",
    AUTO_REQUEUE_DELAY_LABEL = "Délai avant la re-file (secondes) :",
    AUTO_REQUEUE_DELAY_HINT  = "Augmentez si votre PC est lent au chargement entre les combats.",
    FAIRPLAY_TITLE        = "Adversaires les plus fair-play (ratio G/P le plus proche de 1)",
    NO_DATA               = "Aucune donnée enregistrée pour le moment.",
    RESET_BUTTON          = "Réinitialiser les statistiques",
    RESET_CONFIRM         = "Es-tu sûr de vouloir réinitialiser TOUTES les statistiques de Battle Pet Statistics ?",
    TOTAL                 = "Parties totales : %d  (Gagnées : %d / Perdues : %d)",
    MINIMAP_TOOLTIP        = "Battle Pet Statistics\nClique pour ouvrir les options",
    EDIT_BUTTON            = "Modifier",
    EDIT_TITLE             = "Modifier les stats de %s",
    EDIT_WINS              = "Gagnées :",
    EDIT_LOSSES            = "Perdues :",
    SAVE_BUTTON            = "Enregistrer",
    CANCEL_BUTTON          = "Annuler",

    DISPLAY_SECTION_TITLE  = "Lignes affichées en combat",
    DISPLAY_SECTION_HINT   = "Choisis quelles lignes et quels boutons s'affichent en combat de mascotte.",
    SHOW_OVERALL            = "Afficher la ligne Total",
    SHOW_WINRATE             = "Afficher la ligne Winrate",
    SHOW_GOAL                = "Afficher la ligne Objectif",
    SHOW_VS                  = "Afficher le nom de l'adversaire",
    SHOW_VS_STATS            = "Afficher les G/P contre l'adversaire",
    SHOW_VS_WINRATE          = "Afficher le winrate contre l'adversaire",
    SHOW_PREDICTION          = "Afficher la prédiction Gagner/Perdre",
    SHOW_FORFEIT_BUTTON      = "Afficher le bouton Abandonner",
    SHOW_FORFEIT_VS_RANDOM_WHEN_WINNING = "Afficher le bouton Abandonner contre un Random même si tu dois gagner",
    BATTLE_EDIT_BUTTON       = "Modifier",

    GOAL_SECTION_TITLE      = "Objectif (haut faits)",
    GOAL_CURRENT             = "Objectif actuel :",
    GOAL_COMPLETED           = "Terminé",
    GOAL_COMPLETED_LIST_TITLE = "Haut Fait validés :",
    GOAL_NONE_COMPLETED      = "Aucun haut fait validé pour le moment.",

    -- Noms des hauts faits (noms officiels Blizzard en français)
    GOAL_NAME_BRAWLER_10     = "Poids mouche",
    GOAL_NAME_BRAWLER_50     = "Poids coq",
    GOAL_NAME_BRAWLER_250    = "Poids plume",
    GOAL_NAME_BRAWLER_1000   = "Poids léger",
    GOAL_NAME_BRAWLER_5000   = "Poids moyen",
    GOAL_NAME_MERCILESS      = "Dresseur de mascottes impitoyable",
    GOAL_NAME_VENGEFUL       = "Dresseur de mascottes Vengeur",
    GOAL_NAME_BRUTAL         = "Dresseur de mascottes brutal",
    GOAL_NAME_DEADLY         = "Dresseur de mascottes fatal",

    KEYBIND_SECTION_TITLE   = "Raccourcis clavier",
    KEYBIND_HINT             = "Définis tes raccourcis dans le panneau standard de WoW (Touches), catégorie \"Battle Pet Statistics\".",
    OPEN_KEYBINDINGS         = "Ouvrir les raccourcis",

    -- Section Trade Win Session
    TRADEWIN_SECTION_TITLE      = "Session Trade Win",
    TRADEWIN_INTRO              = "Choisis l'une des options suivantes pour renommer automatiquement tes mascottes avec le nom de ton personnage :",
    TRADEWIN_SHOW_STARTUP       = "Afficher la fenêtre au démarrage",
    TRADEWIN_SHOW_AFTER_BATTLE  = "Afficher la fenêtre après ton premier combat",
    TRADEWIN_SHOW_NEVER         = "Ne jamais afficher la fenêtre",
    TRADEWIN_SHOW_IF_NOT_RENAMED = "Afficher la fenêtre seulement si ta première mascotte n'a pas encore été renommée",
    TRADEWIN_RESTORE_QUESTION   = "Quand tu quittes WoW, veux-tu que les mascottes de ton équipe actuelle retrouvent leur nom par défaut ?",
    TRADEWIN_RESTORE_YES        = "Oui",
    TRADEWIN_RESTORE_NO         = "Non",

    BIG_CONGRATS             = "Félicitation vous avez fini les combats de mascottes en Pvp.",

    ALIAS_PROMPT_TITLE          = "Ton pseudo :",
    ALIAS_VALIDATE               = "Valider",
}

BPS_L.EN = L_EN
BPS_L.FR = L_FR

-- ===================== New languages =====================
-- Only the battle-overlay strings were provided by the user (native speakers).
-- Everything else (Options tab, popups, etc.) falls back to English below via
-- setmetatable, so nothing is ever missing or guessed.

local L_PL = {
    OVERALL          = "Wszystkie wygrane: %d  wszystkie przegrane: %d",
    WINRATE          = "Procent wygranych: %d%%",
    GOAL_LINE        = "Cel: %s (%d/%d)",
    VS               = "Przeciw",
    WIN              = "Wygrane",
    LOSE             = "Przegrane",
    YOU_SHOULD_WIN   = "Powinieneś wygrać",
    YOU_SHOULD_LOSE  = "Powinieneś przegrać",
    LANG_PL          = "Polski",
}

local L_SV = {
    -- Battle overlay
    SESSION_TITLE      = "Session:",
    OVERALL            = "Totalt: Vinster: %d  Förluster: %d",
    WINRATE             = "Vinstprocent: %d%%",
    GOAL_LINE           = "Mål: %s (%d/%d)",
    GOAL_DONE_LINE      = "Grattis, du har uppnått dina Battle Pet-mål.",
    VS                  = "Mot",
    VS_RANDOM            = "Okänd motståndare",
    WIN                 = "Vinster",
    LOSE                = "Förluster",
    YOU_SHOULD_WIN      = "Förväntad vinst",
    YOU_SHOULD_LOSE     = "Förväntad förlust",
    FORFEIT_BUTTON      = "Ge Upp",
    REQUEUE_BUTTON      = "Köa igen",

    -- Options
    OPTIONS_TITLE       = "Battle Pet Statistik - Inställningar",
    OPTIONS_TITLE_TAB   = "Inställningar",
    STATS_TITLE_TAB     = "Statistik",
    SESSION_LINE        = "Session: Vinster: %d  Förluster: %d",
    LANGUAGE             = "Språk",
    LANG_AUTO            = "Identifiera språk automatiskt",
    LANG_EN              = "Engelska",
    LANG_FR              = "Franska",
    LANG_PL              = "Polska",
    LANG_SV              = "Svenska",
    LANG_CS              = "Tjeckiska",
    LANG_DE              = "Tyska",
    LANG_IT              = "Italienska",
    STATS_TITLE          = "Statistik",
    STATS_GLOBAL_TITLE     = "Global Statistics",
    TOTAL_GAMES             = "Totalt spelade matcher: %d",
    TOTAL_WON               = "Vinster: %d",
    TOTAL_LOST              = "Förluster: %d",
    SESSION_COUNT_LINE      = "Antal sessioner: %d",
    SESSION_CURRENT_TITLE   = "Nuvarande session:",
    FAIRPLAY_REFRESH_HINT   = "Rankningen kan ta några sekunder att uppdateras.",
    COL_PET              = "Motståndare",
    COL_WIN              = "Vinster",
    COL_LOSE             = "Förluster",
    COL_RATIO            = "Vinstkvot",
    COL_WINRATE           = "Vinstprocent",
    FAIRPLAY_TITLE        = "Jämnaste motståndare (V/F-kvot närmast 1)",
    NO_DATA               = "Ingen data har registrerats än.",
    RESET_BUTTON          = "Nollställ all statistik",
    RESET_CONFIRM         = "Är du säker på att du vill återställa all statistik för Battle Pets?",
    TOTAL                 = "Totalt: %d  (Vinster: %d / Förluster: %d)",
    MINIMAP_TOOLTIP        = "Battle Pet Statistik\nKlicka för att öppna Inställningar",
    EDIT_BUTTON            = "Ändra",
    EDIT_TITLE             = "Ändra statistik för %s",
    EDIT_WINS              = "Vinster:",
    EDIT_LOSSES            = "Förluster:",
    SAVE_BUTTON            = "Spara",
    CANCEL_BUTTON          = "Avbryt",

    DISPLAY_SECTION_TITLE  = "Battle overlay sektioner",
    SHOW_OVERALL            = "Visa Totalt",
    SHOW_WINRATE             = "Visa vinstprosent",
    SHOW_GOAL                = "Visa mål",
    SHOW_VS                  = "Visa motståndarens namn",
    SHOW_VS_STATS            = "Visa motståndarens vinster/förluster",
    SHOW_VS_WINRATE          = "Visa motståndarens vinstprosent",
    SHOW_PREDICTION          = "Visa vinst/förlust prognos",
    SHOW_FORFEIT_BUTTON      = "Visa Ge Upp Knapp",

    GOAL_SECTION_TITLE      = "Achievement Mål",
    GOAL_CURRENT             = "Nuvarande Mål:",
    GOAL_COMPLETED           = "Uppnått",
    GOAL_COMPLETED_LIST_TITLE = "Uppnådda achievements:",
    GOAL_NONE_COMPLETED      = "Inga achievements uppnådda än.",

    -- Achievement (goal) names - official Blizzard English names
    GOAL_NAME_BRAWLER_10     = "Pet Brawler",
    GOAL_NAME_BRAWLER_50     = "Experienced Pet Brawler",
    GOAL_NAME_BRAWLER_250    = "Master Pet Brawler",
    GOAL_NAME_BRAWLER_1000   = "Grand Master Pet Brawler",
    GOAL_NAME_BRAWLER_5000   = "Legendary Pet Brawler",
    GOAL_NAME_MERCILESS      = "Ruthless Pet Brawler",
    GOAL_NAME_VENGEFUL       = "Vengeful Pet Brawler",
    GOAL_NAME_BRUTAL         = "Brutal Pet Brawler",
    GOAL_NAME_DEADLY         = "Deadly Pet Brawler",

    KEYBIND_SECTION_TITLE   = "Tangentbindningar",
    KEYBIND_HINT             = "Ändra dina tangentbindningar i WoWs standardmeny, under kategorin \"Battle Pet Statistik\".",
    OPEN_KEYBINDINGS         = "Öppna tangentbindningar",

    -- Trade Win Session section
    TRADEWIN_SECTION_TITLE      = "Win-trade-session",
    TRADEWIN_INTRO              = "Välj ett av följande alternativ för att automatiskt ge dina Battle Pets namn baserade på din karaktär:",
    TRADEWIN_SHOW_STARTUP       = "Visa fönstret vid start",
    TRADEWIN_SHOW_AFTER_BATTLE  = "Visa fönstret efter din första battle",
    TRADEWIN_SHOW_NEVER         = "Visa aldrig fönstret",
    TRADEWIN_SHOW_IF_NOT_RENAMED = "Visa endast fönstret om din första Battle Pet inte har fått din karaktärs namn.",
    TRADEWIN_RESTORE_QUESTION   = "När du stänger WoW, vill du att dina Battle Pet-namn återställs?",
    TRADEWIN_RESTORE_YES        = "Ja",
    TRADEWIN_RESTORE_NO         = "Nej",

    BIG_CONGRATS             = "Grattis! Du har uppnått alla Battle Pet Achievements!",

    -- Alias setup popups
    ALIAS_PROMPT_TITLE          = "Ditt alias:",
    ALIAS_VALIDATE               = "Validera",
}


local L_CS = {
    OVERALL          = "Celkem: Výhry %d  Prohry: %d",
    WINRATE          = "Úspěšnost: %d%%",
    GOAL_LINE        = "Cíl: %s (%d/%d)",
    VS               = "Proti",
    WIN              = "Výhry",
    LOSE             = "Prohry",
    YOU_SHOULD_WIN   = "Měl bys vyhrát",
    YOU_SHOULD_LOSE  = "Měl bys prohrát",
    LANG_CS          = "Čeština",
}

local L_DE = {
    -- Battle overlay
    SESSION_TITLE      = "Sitzung:",
    OVERALL            = "Gesamt: Siege: %d  Niederlagen: %d",
    WINRATE            = "Siegquote: %d%%",
    GOAL_LINE          = "Ziel: %s (%d/%d)",
    GOAL_DONE_LINE     = "Herzlichen Glückwunsch, du hast alle PvP-Haustierkampf-Erfolge abgeschlossen.",
    VS                 = "Gegen",
    VS_RANDOM          = "Zufällig",
    WIN                = "Siege",
    LOSE               = "Niederlagen",
    YOU_SHOULD_WIN     = "Du solltest gewinnen",
    YOU_SHOULD_LOSE    = "Du solltest verlieren",
    FORFEIT_BUTTON     = "Aufgeben",
    REQUEUE_BUTTON     = "Erneut anmelden",
	
    -- Options
    OPTIONS_TITLE       = "Battle Pet Statistics - Optionen",
    OPTIONS_TITLE_TAB   = "Optionen",
    STATS_TITLE_TAB     = "Statistiken",
    SESSION_LINE        = "Sitzung: Siege: %d  Niederlagen: %d",
    LANGUAGE            = "Sprache",
    LANG_AUTO           = "Automatisch (erkennen)",
    LANG_EN             = "Englisch",
    LANG_FR             = "Französisch",
    LANG_PL             = "Polnisch",
    LANG_SV             = "Schwedisch",
    LANG_CS             = "Tschechisch",
    LANG_DE             = "Deutsch",
    LANG_IT             = "Italienisch",
    STATS_TITLE         = "Statistiken",
    STATS_GLOBAL_TITLE  = "Globale Statistiken",
    TOTAL_GAMES         = "Gesamtspiele: %d",
    TOTAL_WON           = "Gewonnen: %d",
    TOTAL_LOST          = "Verloren: %d",
    SESSION_COUNT_LINE  = "Abgeschlossene Sitzungen: %d",
    SESSION_CURRENT_TITLE = "Aktuelle Sitzung:",
    FAIRPLAY_REFRESH_HINT = "Die Rangliste kann einige Sekunden zum Aktualisieren benötigen.",
    COL_PET             = "Gegner",
    COL_WIN             = "Siege",
    COL_LOSE            = "Niederlagen",
    COL_RATIO           = "Verhältnis",
    COL_WINRATE         = "Siegquote",
    FAIRPLAY_TITLE      = "Fairste Gegner (S/N-Verhältnis am nächsten bei 1)",
    NO_DATA             = "Noch keine Daten aufgezeichnet.",
    RESET_BUTTON        = "Alle Statistiken zurücksetzen",
    RESET_CONFIRM       = "Möchtest du wirklich ALLE Battle Pet Statistics-Daten zurücksetzen?",
    TOTAL               = "Gesamtspiele: %d (Gewonnen: %d / Verloren: %d)",
    MINIMAP_TOOLTIP     = "Battle Pet Statistics\nKlicken, um die Optionen zu öffnen",
    EDIT_BUTTON         = "Bearbeiten",
    EDIT_TITLE          = "Statistiken für %s bearbeiten",
    EDIT_WINS           = "Siege:",
    EDIT_LOSSES         = "Niederlagen:",
    SAVE_BUTTON         = "Speichern",
    CANCEL_BUTTON       = "Abbrechen",	
	
    DISPLAY_SECTION_TITLE   = "Zeilen der Kampfanzeige",
    SHOW_OVERALL            = "Gesamtzeile anzeigen",
    SHOW_WINRATE            = "Siegquote anzeigen",
    SHOW_GOAL               = "Zielzeile anzeigen",
    SHOW_VS                 = "Gegnernamen anzeigen",
    SHOW_VS_STATS           = "S/N-Zeile des Gegners anzeigen",
    SHOW_VS_WINRATE         = "Siegquote des Gegners anzeigen",
    SHOW_PREDICTION         = "Gewinn-/Niederlagenvorhersage anzeigen",
    SHOW_FORFEIT_BUTTON     = "Aufgeben-Schaltfläche anzeigen",

    GOAL_SECTION_TITLE      = "Erfolgsziel",
    GOAL_CURRENT            = "Aktuelles Ziel:",
    GOAL_COMPLETED          = "Abgeschlossen",
    GOAL_COMPLETED_LIST_TITLE = "Abgeschlossene Erfolge:",
    GOAL_NONE_COMPLETED     = "Noch kein Erfolg abgeschlossen.",

	-- Achievement (goal) names - official Blizzard English names
    GOAL_NAME_BRAWLER_10    = "Haustierraufbold",
    GOAL_NAME_BRAWLER_50    = "Erfahrener Haustierraufbold",
    GOAL_NAME_BRAWLER_250   = "Meisterlicher Haustierraufbold",
    GOAL_NAME_BRAWLER_1000  = "Großmeister der Haustierraufbolde",
    GOAL_NAME_BRAWLER_5000  = "Legendärer Haustierraufbold",
    GOAL_NAME_MERCILESS     = "Gnadenloser Haustierraufbold",
    GOAL_NAME_VENGEFUL      = "Rachsüchtiger Haustierraufbold",
    GOAL_NAME_BRUTAL        = "Brutaler Haustierraufbold",
    GOAL_NAME_DEADLY        = "Tödlicher Haustierraufbold",	
	
    KEYBIND_SECTION_TITLE   = "Tastenbelegungen",
    KEYBIND_HINT            = "Lege deine Tastenbelegungen im Standard-Menü für WoW-Tastenbelegungen unter der Kategorie \"Battle Pet Statistics\" fest.",
    OPEN_KEYBINDINGS        = "Tastenbelegungen öffnen",

    -- Trade Win Session
    TRADEWIN_SECTION_TITLE       = "Trade-Win-Sitzung",
    TRADEWIN_INTRO               = "Wähle eine der folgenden Optionen, um deine Haustiere automatisch mit dem Namen deines Charakters umzubenennen:",
    TRADEWIN_SHOW_STARTUP        = "Fenster beim Spielstart anzeigen",
    TRADEWIN_SHOW_AFTER_BATTLE   = "Fenster nach dem ersten Kampf anzeigen",
    TRADEWIN_SHOW_NEVER          = "Fenster niemals anzeigen",
    TRADEWIN_SHOW_IF_NOT_RENAMED = "Fenster nur anzeigen, wenn das erste Haustier noch nicht umbenannt wurde",
    TRADEWIN_RESTORE_QUESTION    = "Möchtest du beim Verlassen von WoW die Namen der Haustiere deines aktuellen Teams auf ihre Standardnamen zurücksetzen?",
    TRADEWIN_RESTORE_YES         = "Ja",
    TRADEWIN_RESTORE_NO          = "Nein",

    BIG_CONGRATS = "Herzlichen Glückwunsch, du hast alle PvP-Haustierkampf-Erfolge abgeschlossen.",

    -- Alias setup
    ALIAS_PROMPT_TITLE = "Dein Alias:",
    ALIAS_VALIDATE     = "Bestätigen",	
}

local L_RU = {
    -- Battle overlay
    SESSION_TITLE      = "Сессия:",
    OVERALL            = "Всего: Побед: %d  Поражений: %d",
    WINRATE            = "Процент побед: %d%%",
    GOAL_LINE          = "Цель: %s (%d/%d)",
    GOAL_DONE_LINE     = "Поздравляем! Вы завершили все достижения PvP-сражений питомцев.",
    VS                 = "Против",
    VS_RANDOM          = "Случайный",
    WIN                = "Победы",
    LOSE               = "Поражения",
    YOU_SHOULD_WIN     = "Вы должны победить",
    YOU_SHOULD_LOSE    = "Вы должны проиграть",
    FORFEIT_BUTTON     = "Сдаться",
    REQUEUE_BUTTON     = "Снова в очередь",
	
    -- Options
    OPTIONS_TITLE       = "Battle Pet Statistics - Настройки",
    OPTIONS_TITLE_TAB   = "Настройки",
    STATS_TITLE_TAB     = "Статистика",
    SESSION_LINE        = "Сессия: Побед: %d  Поражений: %d",
    LANGUAGE            = "Язык",
    LANG_AUTO           = "Авто (определить)",
    LANG_EN             = "Английский",
    LANG_FR             = "Французский",
    LANG_PL             = "Польский",
    LANG_SV             = "Шведский",
    LANG_CS             = "Чешский",
    LANG_DE             = "Немецкий",
    LANG_IT             = "Итальянский",
    STATS_TITLE         = "Статистика",
    STATS_GLOBAL_TITLE  = "Общая статистика",
    TOTAL_GAMES         = "Всего боёв: %d",
    TOTAL_WON           = "Побед: %d",
    TOTAL_LOST          = "Поражений: %d",
    SESSION_COUNT_LINE  = "Завершённых сессий: %d",
    SESSION_CURRENT_TITLE = "Текущая сессия:",
    FAIRPLAY_REFRESH_HINT = "Обновление рейтинга может занять несколько секунд.",
    COL_PET             = "Соперник",
    COL_WIN             = "Победы",
    COL_LOSE            = "Поражения",
    COL_RATIO           = "Соотношение",
    COL_WINRATE         = "Процент побед",
    FAIRPLAY_TITLE      = "Самые честные соперники (соотношение побед/поражений ближе всего к 1)",
    NO_DATA             = "Данные пока отсутствуют.",
    RESET_BUTTON        = "Сбросить всю статистику",
    RESET_CONFIRM       = "Вы уверены, что хотите сбросить ВСЮ статистику Battle Pet Statistics?",
    TOTAL               = "Всего боёв: %d (Побед: %d / Поражений: %d)",
    MINIMAP_TOOLTIP     = "Battle Pet Statistics\nНажмите, чтобы открыть настройки",
    EDIT_BUTTON         = "Изменить",
    EDIT_TITLE          = "Изменить статистику для %s",
    EDIT_WINS           = "Победы:",
    EDIT_LOSSES         = "Поражения:",
    SAVE_BUTTON         = "Сохранить",
    CANCEL_BUTTON       = "Отмена",	
	
    DISPLAY_SECTION_TITLE   = "Строки боевого интерфейса",
    SHOW_OVERALL            = "Показывать общую строку",
    SHOW_WINRATE            = "Показывать процент побед",
    SHOW_GOAL               = "Показывать цель",
    SHOW_VS                 = "Показывать имя противника",
    SHOW_VS_STATS           = "Показывать победы/поражения противника",
    SHOW_VS_WINRATE         = "Показывать процент побед противника",
    SHOW_PREDICTION         = "Показывать прогноз победы/поражения",
    SHOW_FORFEIT_BUTTON     = "Показывать кнопку «Сдаться»",

    GOAL_SECTION_TITLE      = "Цель достижения",
    GOAL_CURRENT            = "Текущая цель:",
    GOAL_COMPLETED          = "Завершено",
    GOAL_COMPLETED_LIST_TITLE = "Завершённые достижения:",
    GOAL_NONE_COMPLETED     = "Пока нет завершённых достижений.",

	-- Achievement (goal) names - official Blizzard English names
    GOAL_NAME_BRAWLER_10    = "Зверовод",
    GOAL_NAME_BRAWLER_50    = "Опытный зверовод",
    GOAL_NAME_BRAWLER_250   = "Мастер-зверовод",
    GOAL_NAME_BRAWLER_1000  = "Великий мастер – зверовод",
    GOAL_NAME_BRAWLER_5000  = "Легендарный зверовод",
    GOAL_NAME_MERCILESS     = "Безжалостный зверовод",
    GOAL_NAME_VENGEFUL      = "Мстительный зверовод",
    GOAL_NAME_BRUTAL        = "Жестокий зверовод",
    GOAL_NAME_DEADLY        = "Смертоносный зверовод",	
	
    KEYBIND_SECTION_TITLE   = "Назначение клавиш",
    KEYBIND_HINT            = "Настройте сочетания клавиш в стандартном меню назначения клавиш WoW в категории \"Battle Pet Statistics\".",
    OPEN_KEYBINDINGS        = "Открыть назначение клавиш",

    -- Trade Win Session
    TRADEWIN_SECTION_TITLE       = "Сессия Trade Win",
    TRADEWIN_INTRO               = "Выберите один из вариантов ниже, чтобы автоматически переименовать питомцев именем вашего персонажа:",
    TRADEWIN_SHOW_STARTUP        = "Показывать окно при запуске",
    TRADEWIN_SHOW_AFTER_BATTLE   = "Показывать окно после первого боя",
    TRADEWIN_SHOW_NEVER          = "Никогда не показывать окно",
    TRADEWIN_SHOW_IF_NOT_RENAMED = "Показывать окно только если первый питомец ещё не переименован",
    TRADEWIN_RESTORE_QUESTION    = "При выходе из WoW восстановить стандартные имена питомцев текущей команды?",
    TRADEWIN_RESTORE_YES         = "Да",
    TRADEWIN_RESTORE_NO          = "Нет",

    BIG_CONGRATS = "Поздравляем! Вы завершили все достижения PvP-сражений питомцев.",

    -- Alias setup
    ALIAS_PROMPT_TITLE = "Ваш псевдоним:",
    ALIAS_VALIDATE     = "Подтвердить",	
}

local L_IT = {
    -- Battle overlay
    SESSION_TITLE      = "Sessione:",
    OVERALL            = "Totale: Vittorie: %d  Sconfitte: %d",
    WINRATE            = "Percentuale di vittorie: %d%%",
    GOAL_LINE          = "Obiettivo: %s (%d/%d)",
    GOAL_DONE_LINE     = "Congratulazioni, hai completato tutti gli obiettivi PvP delle battaglie tra mascotte.",
    VS                 = "Contro",
    VS_RANDOM          = "Casuale",
    WIN                = "Vittorie",
    LOSE               = "Sconfitte",
    YOU_SHOULD_WIN     = "Dovresti vincere",
    YOU_SHOULD_LOSE    = "Dovresti perdere",
    FORFEIT_BUTTON     = "Rinuncia",
    REQUEUE_BUTTON     = "Rimettiti in coda",
	
    -- Options
    OPTIONS_TITLE       = "Battle Pet Statistics - Opzioni",
    OPTIONS_TITLE_TAB   = "Opzioni",
    STATS_TITLE_TAB     = "Statistiche",
    SESSION_LINE        = "Sessione: Vittorie: %d  Sconfitte: %d",
    LANGUAGE            = "Lingua",
    LANG_AUTO           = "Automatico (rileva)",
    LANG_EN             = "Inglese",
    LANG_FR             = "Francese",
    LANG_PL             = "Polacco",
    LANG_SV             = "Svedese",
    LANG_CS             = "Ceco",
    LANG_DE             = "Tedesco",
    LANG_IT             = "Italiano",
    STATS_TITLE         = "Statistiche",
    STATS_GLOBAL_TITLE  = "Statistiche globali",
    TOTAL_GAMES         = "Partite totali: %d",
    TOTAL_WON           = "Vinte: %d",
    TOTAL_LOST          = "Perse: %d",
    SESSION_COUNT_LINE  = "Sessioni completate: %d",
    SESSION_CURRENT_TITLE = "Sessione corrente:",
    FAIRPLAY_REFRESH_HINT = "La classifica potrebbe richiedere alcuni secondi per aggiornarsi.",
    COL_PET             = "Avversario",
    COL_WIN             = "Vittorie",
    COL_LOSE            = "Sconfitte",
    COL_RATIO           = "Rapporto",
    COL_WINRATE         = "Percentuale vittorie",
    FAIRPLAY_TITLE      = "Avversari più corretti (rapporto V/S più vicino a 1)",
    NO_DATA             = "Nessun dato registrato.",
    RESET_BUTTON        = "Azzera tutte le statistiche",
    RESET_CONFIRM       = "Sei sicuro di voler azzerare TUTTI i dati di Battle Pet Statistics?",
    TOTAL               = "Partite totali: %d (Vinte: %d / Perse: %d)",
    MINIMAP_TOOLTIP     = "Battle Pet Statistics\nClicca per aprire le opzioni",
    EDIT_BUTTON         = "Modifica",
    EDIT_TITLE          = "Modifica statistiche di %s",
    EDIT_WINS           = "Vittorie:",
    EDIT_LOSSES         = "Sconfitte:",
    SAVE_BUTTON         = "Salva",
    CANCEL_BUTTON       = "Annulla",

    DISPLAY_SECTION_TITLE   = "Righe della sovrapposizione di battaglia",
    SHOW_OVERALL            = "Mostra riga totale",
    SHOW_WINRATE            = "Mostra percentuale vittorie",
    SHOW_GOAL               = "Mostra riga obiettivo",
    SHOW_VS                 = "Mostra nome avversario",
    SHOW_VS_STATS           = "Mostra vittorie/sconfitte avversario",
    SHOW_VS_WINRATE         = "Mostra percentuale vittorie avversario",
    SHOW_PREDICTION         = "Mostra previsione vittoria/sconfitta",
    SHOW_FORFEIT_BUTTON     = "Mostra pulsante Rinuncia",

    GOAL_SECTION_TITLE      = "Obiettivo conquista",
    GOAL_CURRENT            = "Obiettivo attuale:",
    GOAL_COMPLETED          = "Completato",
    GOAL_COMPLETED_LIST_TITLE = "Conquiste completate:",
    GOAL_NONE_COMPLETED     = "Nessuna conquista completata.",

	-- Achievement (goal) names - official Blizzard English names
    GOAL_NAME_BRAWLER_10    = "Allenatore Scontroso",
    GOAL_NAME_BRAWLER_50    = "Allenatore Scontroso Esperto",
    GOAL_NAME_BRAWLER_250   = "Maestro Allenatore Scontroso",
    GOAL_NAME_BRAWLER_1000  = "Gran Maestro Allenatore Scontroso",
    GOAL_NAME_BRAWLER_5000  = "Allenatore Scontroso Leggendario",
    GOAL_NAME_MERCILESS     = "Allenatore Spietato",
    GOAL_NAME_VENGEFUL      = "Allenatore Vendicativo",
    GOAL_NAME_BRUTAL        = "Allenatore Brutale",
    GOAL_NAME_DEADLY        = "Allenatore Letale",	
	
    KEYBIND_SECTION_TITLE   = "Assegnazione tasti",
    KEYBIND_HINT            = "Configura i tasti nel pannello standard delle scorciatoie di WoW, categoria \"Battle Pet Statistics\".",
    OPEN_KEYBINDINGS        = "Apri assegnazione tasti",

    -- Trade Win Session
    TRADEWIN_SECTION_TITLE       = "Sessione Trade Win",
    TRADEWIN_INTRO               = "Scegli una delle seguenti opzioni per rinominare automaticamente le tue mascotte con il nome del tuo personaggio:",
    TRADEWIN_SHOW_STARTUP        = "Mostra la finestra all'avvio",
    TRADEWIN_SHOW_AFTER_BATTLE   = "Mostra la finestra dopo il primo combattimento",
    TRADEWIN_SHOW_NEVER          = "Non mostrare mai la finestra",
    TRADEWIN_SHOW_IF_NOT_RENAMED = "Mostra la finestra solo se la prima mascotte non è ancora stata rinominata",
    TRADEWIN_RESTORE_QUESTION    = "Quando esci da WoW, desideri ripristinare i nomi originali delle mascotte della squadra corrente?",
    TRADEWIN_RESTORE_YES         = "Sì",
    TRADEWIN_RESTORE_NO          = "No",

    BIG_CONGRATS = "Congratulazioni, hai completato tutti gli obiettivi PvP delle battaglie tra mascotte.",

    -- Alias setup
    ALIAS_PROMPT_TITLE = "Il tuo alias:",
    ALIAS_VALIDATE     = "Conferma",	
}

local L_ZH = {
    -- Battle overlay
    SESSION_TITLE      = "本次会话：",
    OVERALL            = "总计：胜利：%d  失败：%d",
    WINRATE            = "胜率：%d%%",
    GOAL_LINE          = "目标：%s (%d/%d)",
    GOAL_DONE_LINE     = "恭喜，你已完成所有 PvP 宠物对战成就。",
    VS                 = "对战",
    VS_RANDOM          = "随机",
    WIN                = "胜利",
    LOSE               = "失败",
    YOU_SHOULD_WIN     = "你应该获胜",
    YOU_SHOULD_LOSE    = "你应该失败",
    FORFEIT_BUTTON     = "认输",
    REQUEUE_BUTTON     = "再次排队",

    -- Options
    OPTIONS_TITLE       = "Battle Pet Statistics - 选项",
    OPTIONS_TITLE_TAB   = "选项",
    STATS_TITLE_TAB     = "统计",
    SESSION_LINE        = "本次会话：胜利：%d  失败：%d",
    LANGUAGE            = "语言",
    LANG_AUTO           = "自动（检测）",
    LANG_EN             = "英语",
    LANG_FR             = "法语",
    LANG_PL             = "波兰语",
    LANG_SV             = "瑞典语",
    LANG_CS             = "捷克语",
    LANG_DE             = "德语",
    LANG_IT             = "意大利语",
    STATS_TITLE         = "统计",
    STATS_GLOBAL_TITLE  = "总体统计",
    TOTAL_GAMES         = "总场次：%d",
    TOTAL_WON           = "胜利：%d",
    TOTAL_LOST          = "失败：%d",
    SESSION_COUNT_LINE  = "已完成会话：%d",
    SESSION_CURRENT_TITLE = "当前会话：",
    FAIRPLAY_REFRESH_HINT = "排行榜可能需要几秒钟才能更新。",
    COL_PET             = "对手",
    COL_WIN             = "胜利",
    COL_LOSE            = "失败",
    COL_RATIO           = "比率",
    COL_WINRATE         = "胜率",
    FAIRPLAY_TITLE      = "最公平的对手（胜负比最接近 1）",
    NO_DATA             = "尚无记录数据。",
    RESET_BUTTON        = "重置所有统计",
    RESET_CONFIRM       = "确定要重置 Battle Pet Statistics 的所有数据吗？",
    TOTAL               = "总场次：%d（胜利：%d / 失败：%d）",
    MINIMAP_TOOLTIP     = "Battle Pet Statistics\n点击打开选项",
    EDIT_BUTTON         = "编辑",
    EDIT_TITLE          = "编辑 %s 的统计",
    EDIT_WINS           = "胜利：",
    EDIT_LOSSES         = "失败：",
    SAVE_BUTTON         = "保存",
    CANCEL_BUTTON       = "取消",	
	
    DISPLAY_SECTION_TITLE   = "战斗覆盖层显示",
    SHOW_OVERALL            = "显示总计",
    SHOW_WINRATE            = "显示胜率",
    SHOW_GOAL               = "显示目标",
    SHOW_VS                 = "显示对手名称",
    SHOW_VS_STATS           = "显示对手胜负记录",
    SHOW_VS_WINRATE         = "显示对手胜率",
    SHOW_PREDICTION         = "显示胜负预测",
    SHOW_FORFEIT_BUTTON     = "显示认输按钮",

    GOAL_SECTION_TITLE      = "成就目标",
    GOAL_CURRENT            = "当前目标：",
    GOAL_COMPLETED          = "已完成",
    GOAL_COMPLETED_LIST_TITLE = "已完成成就：",
    GOAL_NONE_COMPLETED     = "尚未完成任何成就。",

	-- Achievement (goal) names - official Blizzard English names
    GOAL_NAME_BRAWLER_10    = "宠物格斗家",
    GOAL_NAME_BRAWLER_50    = "老练的宠物格斗家",
    GOAL_NAME_BRAWLER_250   = "大师级宠物格斗家",
    GOAL_NAME_BRAWLER_1000  = "宗师级宠物格斗家",
    GOAL_NAME_BRAWLER_5000  = "传说级宠物格斗家",
    GOAL_NAME_MERCILESS     = "残酷宠物格斗家",
    GOAL_NAME_VENGEFUL      = "复仇宠物格斗家",
    GOAL_NAME_BRUTAL        = "野蛮宠物格斗家",
    GOAL_NAME_DEADLY        = "致命宠物格斗家",	
	
    KEYBIND_SECTION_TITLE   = "按键绑定",
    KEYBIND_HINT            = "请在 WoW 默认按键绑定界面的 \"Battle Pet Statistics\" 分类中设置快捷键。",
    OPEN_KEYBINDINGS        = "打开按键绑定",

    -- Trade Win Session
    TRADEWIN_SECTION_TITLE       = "Trade Win 会话",
    TRADEWIN_INTRO               = "请选择以下选项之一，以自动将你的宠物重命名为角色名称：",
    TRADEWIN_SHOW_STARTUP        = "启动时显示窗口",
    TRADEWIN_SHOW_AFTER_BATTLE   = "首次战斗后显示窗口",
    TRADEWIN_SHOW_NEVER          = "永不显示窗口",
    TRADEWIN_SHOW_IF_NOT_RENAMED = "仅当第一只宠物尚未重命名时显示窗口",
    TRADEWIN_RESTORE_QUESTION    = "退出 WoW 时，是否恢复当前队伍宠物的默认名称？",
    TRADEWIN_RESTORE_YES         = "是",
    TRADEWIN_RESTORE_NO          = "否",

    BIG_CONGRATS = "恭喜，你已完成所有 PvP 宠物对战成就。",

    -- Alias setup
    ALIAS_PROMPT_TITLE = "你的别名：",
    ALIAS_VALIDATE     = "确认",	
}

local L_PT = {
    -- Battle overlay
    SESSION_TITLE      = "Sessão:",
    OVERALL            = "Total: Vitórias: %d  Derrotas: %d",
    WINRATE            = "Taxa de vitórias: %d%%",
    GOAL_LINE          = "Objetivo: %s (%d/%d)",
    GOAL_DONE_LINE     = "Parabéns, concluíste todas as conquistas de batalhas de mascotes PvP.",
    VS                 = "Contra",
    VS_RANDOM          = "Aleatório",
    WIN                = "Vitórias",
    LOSE               = "Derrotas",
    YOU_SHOULD_WIN     = "Deves vencer",
    YOU_SHOULD_LOSE    = "Deves perder",
    FORFEIT_BUTTON     = "Desistir",
    REQUEUE_BUTTON     = "Entrar novamente na fila",
	
    -- Options
    OPTIONS_TITLE       = "Battle Pet Statistics - Opções",
    OPTIONS_TITLE_TAB   = "Opções",
    STATS_TITLE_TAB     = "Estatísticas",
    SESSION_LINE        = "Sessão: Vitórias: %d  Derrotas: %d",
    LANGUAGE            = "Idioma",
    LANG_AUTO           = "Automático (detetar)",
    LANG_EN             = "Inglês",
    LANG_FR             = "Francês",
    LANG_PL             = "Polaco",
    LANG_SV             = "Sueco",
    LANG_CS             = "Checo",
    LANG_DE             = "Alemão",
    LANG_IT             = "Italiano",
    STATS_TITLE         = "Estatísticas",
    STATS_GLOBAL_TITLE  = "Estatísticas Globais",
    TOTAL_GAMES         = "Total de jogos: %d",
    TOTAL_WON           = "Vitórias: %d",
    TOTAL_LOST          = "Derrotas: %d",
    SESSION_COUNT_LINE  = "Número de sessões concluídas: %d",
    SESSION_CURRENT_TITLE = "Sessão atual:",
    FAIRPLAY_REFRESH_HINT = "A classificação pode demorar alguns segundos a atualizar.",
    COL_PET             = "Adversário",
    COL_WIN             = "Vitórias",
    COL_LOSE            = "Derrotas",
    COL_RATIO           = "Rácio",
    COL_WINRATE         = "Taxa de vitórias",
    FAIRPLAY_TITLE      = "Adversários mais fair-play (rácio V/D mais próximo de 1)",
    NO_DATA             = "Ainda não existem dados registados.",
    RESET_BUTTON        = "Repor todas as estatísticas",
    RESET_CONFIRM       = "Tens a certeza de que pretendes repor TODOS os dados do Battle Pet Statistics?",
    TOTAL               = "Total de jogos: %d (Vitórias: %d / Derrotas: %d)",
    MINIMAP_TOOLTIP     = "Battle Pet Statistics\nClique para abrir as opções",
    EDIT_BUTTON         = "Editar",
    EDIT_TITLE          = "Editar estatísticas de %s",
    EDIT_WINS           = "Vitórias:",
    EDIT_LOSSES         = "Derrotas:",
    SAVE_BUTTON         = "Guardar",
    CANCEL_BUTTON       = "Cancelar",

    DISPLAY_SECTION_TITLE   = "Linhas da sobreposição de batalha",
    SHOW_OVERALL            = "Mostrar linha Total",
    SHOW_WINRATE            = "Mostrar taxa de vitórias",
    SHOW_GOAL               = "Mostrar linha do objetivo",
    SHOW_VS                 = "Mostrar nome do adversário",
    SHOW_VS_STATS           = "Mostrar vitórias/derrotas do adversário",
    SHOW_VS_WINRATE         = "Mostrar taxa de vitórias do adversário",
    SHOW_PREDICTION         = "Mostrar previsão de vitória/derrota",
    SHOW_FORFEIT_BUTTON     = "Mostrar botão Desistir",

    GOAL_SECTION_TITLE      = "Objetivo de conquista",
    GOAL_CURRENT            = "Objetivo atual:",
    GOAL_COMPLETED          = "Concluído",
    GOAL_COMPLETED_LIST_TITLE = "Conquistas concluídas:",
    GOAL_NONE_COMPLETED     = "Ainda não foi concluída nenhuma conquista.",

	-- Achievement (goal) names - official Blizzard English names
    GOAL_NAME_BRAWLER_10    = "Atiçador de Mascotes",
    GOAL_NAME_BRAWLER_50    = "Atiçador de Mascotes Veterano",
    GOAL_NAME_BRAWLER_250   = "Atiçador de Mascotes Mestre",
    GOAL_NAME_BRAWLER_1000  = "Atiçador de Mascotes Grão-mestre",
    GOAL_NAME_BRAWLER_5000  = "Atiçador de Mascotes Lendário",
    GOAL_NAME_MERCILESS     = "Atiçador de mascotes inclemente",
    GOAL_NAME_VENGEFUL      = "Atiçador de mascotes vingativo",
    GOAL_NAME_BRUTAL        = "Atiçador de mascotes brutal",
    GOAL_NAME_DEADLY        = "Atiçador de mascotes letal",	
	
    KEYBIND_SECTION_TITLE   = "Atalhos de teclado",
    KEYBIND_HINT            = "Configura os teus atalhos no painel padrão de Atalhos de Teclado do WoW, na categoria \"Battle Pet Statistics\".",
    OPEN_KEYBINDINGS        = "Abrir atalhos de teclado",

    -- Trade Win Session
    TRADEWIN_SECTION_TITLE       = "Sessão Trade Win",
    TRADEWIN_INTRO               = "Escolhe uma das seguintes opções para renomear automaticamente os teus mascotes com o nome da tua personagem:",
    TRADEWIN_SHOW_STARTUP        = "Mostrar a janela ao iniciar",
    TRADEWIN_SHOW_AFTER_BATTLE   = "Mostrar a janela após a primeira batalha",
    TRADEWIN_SHOW_NEVER          = "Nunca mostrar a janela",
    TRADEWIN_SHOW_IF_NOT_RENAMED = "Mostrar a janela apenas se o primeiro mascote ainda não tiver sido renomeado",
    TRADEWIN_RESTORE_QUESTION    = "Ao sair do WoW, pretendes restaurar os nomes originais dos mascotes da equipa atual?",
    TRADEWIN_RESTORE_YES         = "Sim",
    TRADEWIN_RESTORE_NO          = "Não",

    BIG_CONGRATS = "Parabéns, concluíste todas as conquistas de batalhas de mascotes PvP.",

    -- Alias setup
    ALIAS_PROMPT_TITLE = "O teu alias:",
    ALIAS_VALIDATE     = "Validar",	
}

local L_ES = {
    -- Battle overlay
    SESSION_TITLE      = "Sesión de intercambio de victorias",
    OVERALL            = "Total : Victorias : %d  Derrotas: %d",
    WINRATE             = "Ratio de victorias : %d%%",
    GOAL_LINE           = "Objetivo: %s (%d/%d)",
    GOAL_DONE_LINE      = "Felicidades, has conseguido todos los logros de Duelos de mascotas.",
    VS                  = "Vs",
    VS_RANDOM            = "Aleatorio",
    WIN                 = "Victorias",
    LOSE                = "Derrotas",
    YOU_SHOULD_WIN      = "Te toca ganar",
    YOU_SHOULD_LOSE     = "Te toca perder",
    FORFEIT_BUTTON      = "Rendirse",
    REQUEUE_BUTTON      = "Vuelve a anotar",

    -- Options
    OPTIONS_TITLE       = "Battle Pet Trade Win - Opciones",
    OPTIONS_TITLE_TAB   = "Opciones",
    STATS_TITLE_TAB     = "Estadísticas",
    SESSION_LINE        = "Sesión: Victorias: %d  Derrotas: %d",
    LANGUAGE             = "Idioma",
    LANG_AUTO            = "Auto (detección)",
    LANG_EN              = "Inglés",
    LANG_FR              = "Francés",
    LANG_PL              = "Polaco",
    LANG_SV              = "Sueco",
    LANG_CS              = "Checo",
    LANG_DE              = "Alemán",
    LANG_IT              = "Italiano",
    LANG_ES              = "Español",
    STATS_TITLE          = "Estadísticas",
    STATS_GLOBAL_TITLE     = "Estadísticas globales",
    TOTAL_GAMES             = "Duelos totales: %d",
    TOTAL_WON               = "Victorias: %d",
    TOTAL_LOST              = "Derrotas: %d",
    SESSION_COUNT_LINE      = "Cantidad de sesiones completadas: %d",
    SESSION_CURRENT_TITLE   = "Sesión actual:",
    FAIRPLAY_REFRESH_HINT   = "El ranking puede tardar unos segundos en actualizarse.",
    COL_PET              = "Contrincante",
    COL_WIN              = "Victoria",
    COL_LOSE             = "Derrota",
    COL_RATIO            = "Ratio",
    COL_WINRATE           = "Ratio de victorias",
    FAIRPLAY_TITLE        = "Contrincantes más justos (ratio de victorias/derrotas más cerca de 1)",
    NO_DATA               = "No hay datos registrados aún.",
    RESET_BUTTON          = "Resetear todas las estadísticas",
    RESET_CONFIRM         = "¿Está seguro de que quiere resetear TODAS las estadísticas de Battle Pet Trade Win?",
    TOTAL                 = "Duelos totales: %d  (Victorias: %d / Derrotas: %d)",
    MINIMAP_TOOLTIP        = "Battle Pet Trade Win\nClick para abrir opciones",
    EDIT_BUTTON            = "Editar",
    EDIT_TITLE             = "Editar estadísticas para %s",
    EDIT_WINS              = "Victorias:",
    EDIT_LOSSES            = "Derrotas:",
    SAVE_BUTTON            = "Guardar",
    CANCEL_BUTTON          = "Cancelar",

    DISPLAY_SECTION_TITLE  = "Líneas superpuestas de duelo",
    SHOW_OVERALL            = "Mostrar línea Total",
    SHOW_WINRATE             = "Mostrar línea Ratio de victorias",
    SHOW_GOAL                = "Mostrar línea Objetivo",
    SHOW_VS                  = "Mostrar línea Nombre del contrincante",
    SHOW_VS_STATS            = "Mostrar línea Ratio de victorias/derrotas del contrincante",
    SHOW_VS_WINRATE          = "Mostrar línea Ratio de victorias del contrincante",
    SHOW_PREDICTION          = "Mostrar línean Predicción Victorias/derrotas",
    SHOW_FORFEIT_BUTTON      = "Mostrar botón Rendirse",

    GOAL_SECTION_TITLE      = "Logro objetivo",
    GOAL_CURRENT             = "Objetivo actual:",
    GOAL_COMPLETED           = "Completado",
    GOAL_COMPLETED_LIST_TITLE = "Logros completados:",
    GOAL_NONE_COMPLETED      = "Ningún logro completado aún.",

    -- Achievement (goal) names - official Blizzard Spanish names
    GOAL_NAME_BRAWLER_10     = "Exterminador de mascotas",
    GOAL_NAME_BRAWLER_50     = "Exterminador de mascotas experto",
    GOAL_NAME_BRAWLER_250    = "Maestro exterminador de mascotas",
    GOAL_NAME_BRAWLER_1000   = "Gran maestro exterminador de mascotas",
    GOAL_NAME_BRAWLER_5000   = "Exterminador de mascotas legendario",
    GOAL_NAME_MERCILESS      = "Exterminador de mascotas despiadado",
    GOAL_NAME_VENGEFUL       = "Exterminador de mascotas vengativo",
    GOAL_NAME_BRUTAL         = "Exterminador de mascotas brutal",
    GOAL_NAME_DEADLY         = "Exterminador de mascotas mortal",

    KEYBIND_SECTION_TITLE   = "Atajos de teclado",
    KEYBIND_HINT             = "Elije tus atajos de teclado en el panel de opciones del WoW, categoría \"Battle Pet Trade Win\".",
    OPEN_KEYBINDINGS         = "Abrir Atajos de teclado",

    BIG_CONGRATS             = "Felicidadesm has conseguido todos los logros de duelos de mascota JcJ.",

    -- Alias setup popups
    SETUP_PROMPT_TITLE        = "¿Quieres configurar tu sesión de Intercambio de victorias?",
    SETUP_PROMPT_YES           = "Si",
    SETUP_PROMPT_NO             = "No",
    ALIAS_PROMPT_TITLE          = "Tu Alias :",
    ALIAS_VALIDATE               = "Validar",
}

BPS_L.PL = L_PL
BPS_L.SV = L_SV
BPS_L.CS = L_CS
BPS_L.DE = L_DE
BPS_L.IT = L_IT
BPS_L.RU = L_RU
BPS_L.ZH = L_ZH
BPS_L.PT = L_PT
BPS_L.ES = L_ES

-- Any key missing from a non-English table silently falls back to the
-- English string, so partially-translated languages never show blanks.
for _, tbl in pairs({ L_PL, L_SV, L_CS, L_DE, L_IT, L_RU, L_ZH, L_PT, L_ES }) do
    setmetatable(tbl, { __index = L_EN })
end

function BPS_GetLocale()
    local mode = BattlePetStatisticsDB and BattlePetStatisticsDB.language or "AUTO"

    if mode == "EN" then return L_EN end
    if mode == "FR" then return L_FR end
    if mode == "PL" then return L_PL end
    if mode == "SV" then return L_SV end
    if mode == "CS" then return L_CS end
    if mode == "DE" then return L_DE end
    if mode == "IT" then return L_IT end
    if mode == "RU" then return L_RU end
    if mode == "ZH" then return L_ZH end
    if mode == "PT" then return L_PT end
    if mode == "ES" then return L_ES end

    -- AUTO: fall back to the client's locale. Swedish, Czech, Portuguese, and
    -- Spanish (without a matching client locale code) can only be picked manually.
    local clientLocale = GetLocale()
    if clientLocale == "frFR" then return L_FR end
    if clientLocale == "plPL" then return L_PL end
    if clientLocale == "deDE" then return L_DE end
    if clientLocale == "itIT" then return L_IT end
    if clientLocale == "ruRU" then return L_RU end
    if clientLocale == "zhCN" then return L_ZH end
    if clientLocale == "esMX" or clientLocale == "esES" then return L_ES end
    return L_EN
end
