local addonName, LRH = ...

LRH = LRH or {}
LRH.L = LRH.L or {}

local L = LRH.L

local function SetEN()
    L.ADDON_NAME = "Left Right Helper"

    L.DRAG_ON  = "Drag mode enabled"
    L.DRAG_OFF = "Drag mode disabled"
    L.SHOWN    = "shown"
    L.HIDDEN   = "hidden"

    L.MINIMAP_LEFT  = "Left-click: Toggle drag mode"
    L.MINIMAP_RIGHT = "Right-click: Show / Hide"

    L.OPTIONS_TITLE = "Left Right Helper"
    L.OPTIONS_DESC =
        "Controls:\n" ..
        "  Minimap Left-click: Toggle Drag Mode\n" ..
        "  Minimap Right-click: Show / Hide (saved)\n" ..
        "  Drag Mode: Drag to move, Mousewheel to resize, ESC to exit\n\n" ..
        "Tip: Use the button below to start Drag Mode."

    L.START_DRAG   = "Start Drag Mode"
    L.CLOSE        = "Close"
    L.QUICK_OPTIONS = "Quick Options"
    L.QUICK_CONTROLS_TEXT =
        "• Drag: move\n" ..
        "• Mousewheel: resize\n" ..
        "• ESC: exit drag mode\n" ..
        "• Minimap: Left=Drag, Right=Show/Hide\n" ..
        "• Close: exit drag mode"

    L.RESET_BUTTON = "Reset to defaults"
    L.RESET_DONE   = "Defaults restored"

    L.RESET_CONFIRM_TEXT = "Do you really want to reset Left Right Helper to defaults?"
    L.RESET_CONFIRM_YES  = "Reset"
    L.RESET_CONFIRM_NO   = "Cancel"

    L.H_CONTROLS = "Controls"
    L.H_ARROWS   = "Arrows"
    L.H_COLORS   = "Colors"
    L.H_ALPHA    = "Transparency"
    L.H_TEXT     = "Text"

    L.TRANSPARENCY  = "Transparency"
    L.ARROW_SPACING = "Arrow spacing"
    L.ARROW_DESIGN  = "Arrow design"

    L.FILL_COLORS   = "Fill colors"
    L.LEFT_SHORT    = "L"
    L.RIGHT_SHORT   = "R"

    L.LEFT_COLOR   = "Left fill color"
    L.RIGHT_COLOR  = "Right fill color"
    L.BORDER_COLOR = "Border color"
    L.BORDER_GOLD  = "Gold"
    L.BORDER_SILVER = "Silver"
    L.BORDER_BROWN    = "Brown"
    L.SIMPLE_NO_BORDER_COLOR = "Not available for Simple"

    L.FONT         = "Font"
    L.FONT_OUTLINE = "Font outline"
    L.OUTLINE_NONE   = "None"
    L.OUTLINE_NORMAL = "Outline"
    L.OUTLINE_THICK  = "Thick outline"
end

local function SetDE()
    L.ADDON_NAME = "Left Right Helper"

    L.DRAG_ON  = "Drag-Modus aktiviert"
    L.DRAG_OFF = "Drag-Modus deaktiviert"
    L.SHOWN    = "angezeigt"
    L.HIDDEN   = "versteckt"

    L.MINIMAP_LEFT  = "Linksklick: Drag-Modus umschalten"
    L.MINIMAP_RIGHT = "Rechtsklick: Anzeigen / Verstecken"

    L.OPTIONS_TITLE = "Left Right Helper"
    L.OPTIONS_DESC =
        "Steuerung:\n" ..
        "  Minimap Linksklick: Drag-Modus umschalten\n" ..
        "  Minimap Rechtsklick: Anzeigen / Verstecken (gespeichert)\n" ..
        "  Drag-Modus: Ziehen zum Bewegen, Mausrad zum Skalieren, ESC zum Beenden\n\n" ..
        "Tipp: Nutze den Button unten, um den Drag-Modus zu starten."

    L.START_DRAG   = "Drag-Modus starten"
    L.CLOSE        = "Schließen"
    L.QUICK_OPTIONS = "Schnelloptionen"
    L.QUICK_CONTROLS_TEXT =
        "• Ziehen: bewegen\n" ..
        "• Mausrad: Größe ändern\n" ..
        "• ESC: Drag-Modus beenden\n" ..
        "• Minimap: Links=Drag, Rechts=Anzeigen/Verstecken\n" ..
        "• Schließen: Drag-Modus beenden"

    L.RESET_BUTTON = "Auf Standard zurücksetzen"
    L.RESET_DONE   = "Standards wiederhergestellt"

    L.RESET_CONFIRM_TEXT = "Möchtest du Left Right Helper wirklich auf Standard zurücksetzen?"
    L.RESET_CONFIRM_YES  = "Zurücksetzen"
    L.RESET_CONFIRM_NO   = "Abbrechen"

    L.H_CONTROLS = "Steuerung"
    L.H_ARROWS   = "Pfeile"
    L.H_COLORS   = "Farben"
    L.H_ALPHA    = "Transparenz"
    L.H_TEXT     = "Text"

    L.TRANSPARENCY  = "Transparenz"
    L.ARROW_SPACING = "Pfeil-Abstand"
    L.ARROW_DESIGN  = "Pfeil-Design"

    L.FILL_COLORS   = "Füllfarben"
    L.LEFT_SHORT    = "L"
    L.RIGHT_SHORT   = "R"

    L.LEFT_COLOR   = "Füllfarbe links"
    L.RIGHT_COLOR  = "Füllfarbe rechts"
    L.BORDER_COLOR = "Rahmenfarbe"
    L.BORDER_GOLD  = "Gold"
    L.BORDER_SILVER = "Silber"
    L.BORDER_BROWN    = "Braun"
    L.SIMPLE_NO_BORDER_COLOR = "Für Simple nicht verfügbar"

    L.FONT         = "Schriftart"
    L.FONT_OUTLINE = "Schrift-Kontur"
    L.OUTLINE_NONE   = "Keine"
    L.OUTLINE_NORMAL = "Kontur"
    L.OUTLINE_THICK  = "Dicke Kontur"
end

local locale = GetLocale()
if locale == "deDE" then
    SetDE()
else
    SetEN()
end