-- print('enUS')
local DF = LibStub('AceAddon-3.0'):GetAddon('DragonflightUI')
local L_CN = LibStub("AceLocale-3.0"):NewLocale("DragonflightUI", "zhCN")
if not L_CN then return end

-- preprocess to reuse strings - without this L[XY] = L['X'] will fail in AceLocale
local L = {}

-- modules - config.lua
do
    L["ModuleModules"] = "模块"

    L["ModuleTooltipActionbar"] =
        "该模块全面改造默认动作条，包括微型菜单和背包按钮。\n为动作条1-8、宠物/经验/声望/控制/姿态/图腾条、背包和微型菜单提供独立选项。"
    L["ModuleTooltipBossframe"] = "该模块添加自定义首领框体。\n开发中。"
    L["ModuleTooltipBuffs"] = "该模块修改默认增益效果框体。\n为增益和减益效果提供独立选项。"
    L["ModuleTooltipCastbar"] =
        "该模块修改默认施法条。\n为玩家/焦点/目标施法条提供独立选项。"
    L["ModuleTooltipChat"] = "该模块修改默认聊天窗口。\n开发中。"
    L["ModuleTooltipCompatibility"] = "该模块为其他插件提供额外兼容性支持。"
    L["ModuleTooltipDarkmode"] =
        "该模块为DragonflightUI的多个框体添加暗黑模式。\n开发中 - 请反馈意见！"
    L["ModuleTooltipFlyout"] = "弹出按钮"
    L["ModuleTooltipMinimap"] =
        "该模块全面改造默认小地图和任务追踪器。\n为小地图和任务追踪器提供独立选项。"
    L["ModuleTooltipTooltip"] = "该模块增强游戏提示框功能。\n开发中"
    L["ModuleTooltipUI"] =
        "该模块为角色窗口等界面添加现代UI风格，并针对怀旧服重做法术书、天赋窗和专业窗口。"
    L["ModuleTooltipUnitframe"] =
        "该模块全面改造默认单位框体，添加职业染色等功能。\n为玩家/宠物/目标/焦点/小队框体提供独立选项。"
    L["ModuleTooltipUtility"] = "该模块提供通用UI功能和调整。\n开发中"

    L["ModuleFlyout"] = "弹出按钮"
    L["ModuleActionbar"] = "动作条"
    L["ModuleCastbar"] = "施法条"
    L["ModuleChat"] = "聊天框"
    L["ModuleBuffs"] = "增益"
    L["ModuleDarkmode"] = "暗黑模式"
    L["ModuleMinimap"] = "小地图"
    L["ModuleTooltip"] = "鼠标提示"
    L["ModuleUI"] = "界面"
    L["ModuleUnitframe"] = "单位框体"
    L["ModuleUtility"] = "实用工具"
    L["ModuleCompatibility"] = "插件兼容"
    L["ModuleBossframe"] = "首领框体"

    L["ModuleAlreadyLoadedWasDeactivated"] = "已加载的模块已停用，请重载界面(/reload)！"
    L["ModuleAlreadyLoadedWasDeactivatedMultiple"] =
        "多个已经加载的模块被停用，请重载界面(/reload)！"
end

-- config 
do
    L["ConfigGeneralWhatsNew"] = "更新"
    L["ConfigGeneralModules"] = "模块"
    L["ConfigGeneralInfo"] = "信息"
    L["MainMenuDragonflightUI"] = "DragonflightUI"
    L["MainMenuEditmode"] = "编辑模式"

    -- config.mixin.lua
    L["ConfigMixinQuickKeybindMode"] = "快速按键绑定模式"
    L["ConfigMixinGeneral"] = "通用"
    L["ConfigMixinModules"] = "模块"
    L["ConfigMixinActionBar"] = "动作条"
    L["ConfigMixinCastBar"] = "施法条"
    L["ConfigMixinMisc"] = "其他"
    L["ConfigMixinUnitframes"] = "单位框体"

    -- modules.mixin.lua
    L["ModuleConditionalMessage"] =
        "'|cff8080ff%s|r'已停用，但相关功能已被挂钩，请执行'|cff8080ff/reload|r'重载界面！"

    -- config
    L["ConfigToolbarCopyPopup"] = "复制下方链接(Ctrl+C, Enter):"
    L["ConfigToolbarDiscord"] = "Discord"
    L["ConfigToolbarDiscordTooltip"] = "交流创意与获取支持"
    L["ConfigToolbarGithub"] = "Github"
    L["ConfigToolbarGithubTooltip"] = "查看代码、提交问题与贡献"
    L["ConfigToolbarCoffee"] = "BuyMeACoffee"
    L["ConfigToolbarCoffeeTooltip1"] =
        "每个点赞分享都是支持，若您愿意，也可以请开发者喝杯咖啡继续开发！"
    L["ConfigToolbarCoffeeTooltip2"] = "支持者可享专属福利，详见Discord支持者频道。"
end

-- profiles
do
    L["ProfilesSetActiveProfile"] = "设置当前配置文件"
    L["ProfilesNewProfile"] = "创建新配置文件"
    L["ProfilesCopyFrom"] = "从现有配置复制设置到当前配置"
    L["ProfilesOpenCopyDialogue"] = "打开复制对话框"
    L["ProfilesDeleteProfile"] = "删除数据库中的配置文件"
    L["Profiles"] = "新建配置文件"
    L["ProfilesOpenDeleteDialogue"] = "打开删除对话框"
    L["ProfilesAddNewProfile"] = "添加新配置文件"
    L["ProfilesChatNewProfile"] = "新建配置文件: "
    L["ProfilesErrorNewProfile"] = "错误: 新配置文件名不能为空！"
    L["ProfilesDialogueDeleteProfile"] = "删除配置文件'%s'?"
    L["ProfilesDialogueCopyProfile"] = "新建配置文件(从'|cff8080ff%s|r'复制)"
    L["ProfilesImportShareHeader"] = "导入/分享"
    L["ProfilesImportProfile"] = "导入配置"
    L["ProfilesImportProfileButton"] = HUD_EDIT_MODE_IMPORT_LAYOUT or "导入"
    L["ProfilesImportProfileDesc"] = "打开导入对话框"
    L["ProfilesExportProfile"] = "分享配置"
    L["ProfilesExportProfileButton"] = HUD_EDIT_MODE_SHARE_LAYOUT or "分享"
    L["ProfilesExportProfileDesc"] = "打开分享对话框"
end

-- Editmode
do
    L["EditModeBasicOptions"] = "基本选项"
    L["EditModeAdvancedOptions"] = "高级选项"
    L["EditModeLayoutDropdown"] = "配置文件"
    L["EditModeCopyLayout"] = "复制配置"
    L["EditModeRenameLayout"] = ""
    L["EditModeRenameOrCopyLayout"] = "重命名/复制配置"
    L["EditModeDeleteLayout"] = "删除配置"
    L["EditModeNewLayoutDisabled"] = "%s 新建配置"
    L["EditModeNewLayout"] = "%s |cnPURE_GREEN_COLOR:新建配置|r"
    L["EditModeImportLayout"] = HUD_EDIT_MODE_IMPORT_LAYOUT or "导入"
    L["EditModeShareLayout"] = HUD_EDIT_MODE_SHARE_LAYOUT or "分享"
    L["EditModeCopyToClipboard"] = HUD_EDIT_MODE_COPY_TO_CLIPBOARD or "复制到剪贴板 |cffffd100(用于在线分享)|r"
    L["EditModeExportProfile"] = "导出配置 |cff8080ff%s|r"
    L["EditModeImportProfile"] = "导入配置为 |cff8080ff%s|r"
    L["EditModeVisible"] = "编辑模式可见"
    L["EditModeVisibleDescFormat"] =
        "当编辑模式激活时，设置当前框体和具有相同类别(|cff8080ff%s|r)的其他框体的可见性。" ..
            "\n\n你可以在编辑模式的主窗口的|cff8080ff高级选项|r或DragonflightUI的|cff8080ff设置窗口|r进行设置。"

end

-- Compat
do
    L['CompatName'] = "插件兼容"
    L['CompatAuctionator'] = "Auctionator"
    L['CompatAuctionatorDesc'] = "当启用'修改专业窗口'时，为Auctionator添加兼容支持"
    L['CompatBaganator'] = "Baganator"
    L['CompatBaganatorDesc'] = "将默认'暴雪'皮肤改为DragonflightUI风格"
    L['CompatBaganatorEquipment'] = "Baganator_EquipmentSets"
    L['CompatBaganatorEquipmentDesc'] = "增加将装备套装作为物品来源的支持"
    L['CompatBisTracker'] = "BISTracker"
    L['CompatBisTrackerDesc'] =
        "在启用'修改角色窗口'时，为 BISTracker 添加兼容支持。"
    L['CompatCharacterStatsClassic'] = "CharacterStatsClassic"
    L['CompatCharacterStatsClassicDesc'] =
        "当启用'修改角色窗口'时，为CharacterStatsClassic添加兼容支持"
    L['CompatClassicCalendar'] = "Classic Calendar"
    L['CompatClassicCalendarDesc'] = "为Classic Calendar添加兼容支持"
    L['CompatClique'] = "Clique"
    L['CompatCliqueDesc'] = "为Clique添加兼容支持"
    L['CompatLeatrixPlus'] = "LeatrixPlus"
    L['CompatLeatrixPlusDesc'] = "增加了 LeatrixPlus 兼容，例如移除了玩家框体上难看的职业色名称的背景。"
    L['CompatLFGBulletinBoard'] = "LFG Bulletin Board"
    L['CompatLFGBulletinBoardDesc'] = "为LFG Bulletin Board添加兼容支持"
    L['CompatMerInspect'] = "MerInspect"
    L['CompatMerInspectDesc'] = "当启用'修改角色窗口'时，为MerInspect添加兼容支持"
    L['CompatPawn'] = "Pawn"
    L['CompatPawnDesc'] = "在启用'修改角色窗口'时，为 Pawn 添加兼容支持。"
    L['CompatRanker'] = "Ranker"
    L['CompatRankerDesc'] = "当启用'修改角色窗口'时，为Ranker添加兼容支持"
    L['CompatTacoTip'] = "TacoTip"
    L['CompatTacoTipDesc'] = "当启用'修改角色窗口'时，为TacoTip添加兼容支持"
    L['CompatTDInspect'] = "TDInspect"
    L['CompatTDInspectDesc'] = "当启用'修改角色窗口'时，为TDInspect添加兼容支持"
    L['CompatWhatsTraining'] = "WhatsTraining"
    L['CompatWhatsTrainingDesc'] = "当启用'修改法术书'时，为WhatsTraining添加兼容支持"
end

-- __Settings
do
    L["SettingsDefaultStringFormat"] = "\n(默认: |cff8080ff%s|r)"
    L["SettingsCharacterSpecific"] = "\n\n|cff8080ff[每个角色设置]|r"

    -- positionTable
    L["PositionTableHeader"] = "缩放与位置"
    L["PositionTableHeaderDesc"] = ""
    L["PositionTableScale"] = "缩放"
    L["PositionTableScaleDesc"] = ""
    L["PositionTableAnchor"] = "锚点"
    L["PositionTableAnchorDesc"] = "锚点"
    L["PositionTableAnchorParent"] = "父级锚点"
    L["PositionTableAnchorParentDesc"] = ""
    L["PositionTableAnchorFrame"] = "锚点框体"
    L["PositionTableAnchorFrameDesc"] = ""
    L["PositionTableCustomAnchorFrame"] = "锚点框体(自定义)"
    L["PositionTableCustomAnchorFrameDesc"] =
        "使用指定名称的框体作为锚点(如有效)。例如'CharacterFrame', 'TargetFrame'..."
    L["PositionTableX"] = "X"
    L["PositionTableXDesc"] = ""
    L["PositionTableY"] = "Y"
    L["PositionTableYDesc"] = ""
end

-- darkmode
do
    L["DarkmodeColor"] = "颜色"
    L["DarkmodeDesaturate"] = "去饱和度"
end

-- actionbar
do
    L["ActionbarName"] = "动作条"
    L["ActionbarNameFormat"] = "动作条 %d"

    -- bar names
    L["XPBar"] = "经验条"
    L["ReputationBar"] = "声望条"
    L["PetBar"] = "宠物条"
    L["StanceBar"] = "姿态条"
    L["PossessBar"] = "控制条"
    L["MicroMenu"] = "微型菜单"
    L["TotemBar"] = "图腾条"

    -- gryphonsTable
    L["Default"] = "默认"
    L["Alliance"] = "联盟"
    L["Horde"] = "部落"
    L["None"] = "无"

    -- stateDriverTable
    L["ActionbarDriverDefault"] = "默认"
    L["ActionbarDriverSmart"] = "智能"
    L["ActionbarDriverNoPaging"] = "不分页"

    -- stateDriver
    L['ActionbarDriverName'] = "分页"
    L['ActionbarDriverNameDesc'] =
        "改变主动作条分页行为，例如当改变姿态或隐身时。\n'默认' - 不改变\n'智能' - 为猫德隐身增加自定义分页\n'不分页' - 禁用全部分页"

    -- targetStateDriver
    L["ActionbarTargetDriverConditionalFormat"] = "\n\n(这相当于宏命令的条件: |cff8080ff%s|r)\n"
    L["ActionbarTargetDriverMultipleConditionalFormat"] =
        "\n\n(这相当于跟随宏命令的条件 (基于技能|cffffffff类型|r): %s)\n"

    local function cond(str)
        return string.format(L["ActionbarTargetDriverConditionalFormat"], str)
    end

    local function condMultiple(t)
        local str = '';

        for k, v in ipairs(t) do
            --
            str = string.format('%s%s', str, string.format('\n(|cffffffff%s|r) |cff8080ff%s|r', v.type, v.str))
        end

        return string.format(L["ActionbarTargetDriverMultipleConditionalFormat"], str)
    end

    L['ActionbarTargetDriverHeader'] = "目标选择"
    L['ActionbarTargetDriverUseMouseover'] = "使用鼠标指向施法"
    L['ActionbarTargetDriverUseMouseoverDesc'] =
        "启用时，动作按钮将尝试瞄准鼠标指向目标单位" .. condMultiple({
            {type = 'help', str = '[@mouseover, exists, help, mod:XY]'},
            {type = 'harm', str = '[@mouseover, nodead, exists, harm, mod:XY]'},
            {type = 'both', str = '[@mouseover, nodead, exists, mod:XY]'}
        })
    L['ActionbarTargetDriverMouseOverModifier'] = "鼠标指向施法按键"
    L['ActionbarTargetDriverMouseOverModifierDesc'] =
        "当按住此键时，即便目标已存在，也将对鼠标指向的目标施法。"
    L['ActionbarTargetDriverUseAutoAssist'] = "使用自动协助施法"
    L['ActionbarTargetDriverUseAutoAssistDesc'] =
        "启用时，如果你选中的法术不能对当前目标释放，动作按钮将尝试自动对你目标的目标施法。" ..
            condMultiple({
                {type = 'help', str = '[help]target; [@targettarget, help]targettarget'},
                {type = 'harm', str = '[harm]target; [@targettarget, harm]targettarget'}
            })
    L['ActionbarTargetDriverFocusCast'] = "焦点施法"
    L['ActionbarTargetDriverFocusCastDesc'] =
        "启用时（并已设置'焦点施法按键'），动作按钮将尝试对焦点目标施法。" ..
            cond('[mod:FOCUSCAST, @focus, exists, nodead]')
    L['ActionbarTargetDriverFocusCastModifier'] = FOCUS_CAST_KEY_TEXT or "焦点施法按键"
    L['ActionbarTargetDriverFocusCastModifierDesc'] =
        "按住此键时，即便目标已存在，也将对焦点目标施法。"
    L['ActionbarTargetDriverSelfCast'] = (SELF_CAST or "自我施法")
    L['ActionbarTargetDriverSelfCastDesc'] = (OPTION_TOOLTIP_AUTO_SELF_CAST or "开启此选项后，如果你的当前目标为非友方目标或没有目标，则可以对友方目标施放的法术会自动对你本人施放。") .. cond('[mod: SELFCAST]')
    L['ActionbarTargetDriverSelfCastModifier'] = AUTO_SELF_CAST_KEY_TEXT or "自我施法按键"
    L['ActionbarTargetDriverSelfCastModifierDesc'] = OPTION_TOOLTIP_AUTO_SELF_CAST_KEY_TEXT or "按住这个键之后施法目标会变成自己，即使你当前锁定的目标是某个敌对怪物或玩家。"

    -- buttonTable
    L["ButtonTableActive"] = "启用"
    L["ButtonTableActiveDesc"] = ""
    L["ButtonTableButtons"] = "按钮数"
    L["ButtonTableButtonsDesc"] = ""
    L["ButtonTableButtonScale"] = "按钮缩放"
    L["ButtonTableButtonScaleDesc"] = ""
    L["ButtonTableOrientation"] = "方向"
    L["ButtonTableOrientationDesc"] = "方向"
    L["ButtonTableGrowthDirection"] = "延展方向"
    L["ButtonTableGrowthDirectionDesc"] = "设置使用多行/列时动作条的延展方向。"
    L["ButtonTableFlyoutDirection"] = "弹出方向"
    L["ButtonTableFlyoutDirectionDesc"] = "设置技能弹出方向。"
    L["ButtonTableReverseButtonOrder"] = "反转按钮顺序"
    L["ButtonTableReverseButtonOrderDesc"] = ""
    L["ButtonTableNumRows"] = "行数"
    L["ButtonTableNumRowsDesc"] = ""
    L["ButtonTableNumButtons"] = "按钮数量"
    L["ButtonTableNumButtonsDesc"] = ""
    L["ButtonTablePadding"] = "间距"
    L["ButtonTablePaddingDesc"] = ""
    L["ButtonTableStyle"] = "样式"
    L["ButtonTableStyleDesc"] = ""
    L["ButtonTableAlwaysShowActionbar"] = "始终显示动作条"
    L["ButtonTableAlwaysShowActionbarDesc"] = ""
    L["ButtonTableHideMacroText"] = "隐藏宏名称"
    L["ButtonTableHideMacroTextDesc"] = ""
    L["ButtonTableMacroNameFontSize"] = "宏名字体大小"
    L["ButtonTableMacroNameFontSizeDesc"] = ""
    L["ButtonTableHideKeybindText"] = "隐藏按键绑定"
    L["ButtonTableHideKeybindTextDesc"] = ""
    L["ButtonTableShortenKeybindText"] = "简化按键文本"
    L["ButtonTableShortenKeybindTextDesc"] = "简化按键文本显示，例如用'sF'代替's-F'"
    L["ButtonTableKeybindFontSize"] = "按键字体大小"
    L["ButtonTableKeybindFontSizeDesc"] = ""

    L["MoreOptionsHideBarArt"] = "隐藏条背景"
    L["MoreOptionsHideBarArtDesc"] = ""
    L["MoreOptionsHideBarScrolling"] = "隐藏条滚动动画"
    L["MoreOptionsHideBarScrollingDesc"] = ""
    L["MoreOptionsHideBorder"] = "隐藏边框装饰"
    L["MoreOptionsHideBorderDesc"] = "*开发中*"
    L["MoreOptionsHideDivider"] = "隐藏分栏"
    L["MoreOptionsHideDividerDesc"] = ""

    L["MoreOptionsGryphons"] = "狮鹫装饰"
    L["MoreOptionsGryphonsDesc"] = "狮鹫装饰"
    L["MoreOptionsUseKeyDown"] = ACTION_BUTTON_USE_KEY_DOWN or "按下快捷键时施法"
    L["MoreOptionsUseKeyDownDesc"] = OPTION_TOOLTIP_ACTION_BUTTON_USE_KEY_DOWN or "在按下快捷键时施法，而不是在松开快捷键时施法。"
    L["MoreOptionsIconRangeColor"] = "超出距离图标染色"
    L["MoreOptionsIconRangeColorDesc"] = "当技能超出距离时改变图标颜色，类似RedRange/tullaRange效果"

    L["ExtraOptionsPreset"] = "预设"
    L["ExtraOptionsResetToDefaultPosition"] = "重置为默认位置"
    L["ExtraOptionsPresetDesc"] =
        "将缩放、锚点、X/Y等位置相关设置设为所选预设值，但不影响其他设置。"
    L["ExtraOptionsModernLayout"] = "现代布局(默认)"
    L["ExtraOptionsModernLayoutDesc"] = ""
    L["ExtraOptionsClassicLayout"] = "经典布局(侧边栏)"
    L["ExtraOptionsClassicLayoutDesc"] = ""

    -- Range
    L["ActionbarRangeName"] = "动作条范围"
    L["ActionbarRangeNameDesc"] = ""

    L["ActionbarRangeHeader"] = "范围设置"
    L["ActionbarRangeHeaderDesc"] = ""

    L["ActionbarRangeHeaderHotkey"] = "按键绑定" -- HotKey
    L["ActionbarRangeHeaderHotkeyDesc"] = ""
    L["ActionbarRangeHotkeyColor"] = "正常"
    L["ActionbarRangeHotkeyColorDesc"] = "正常按键绑定字体颜色。"
    L["ActionbarRangeHotkeyOutOfRangeColor"] = "超出范围"
    L["ActionbarRangeHotkeyOutOfRangeColorDesc"] = "超出范围时，按键绑定字体颜色。"

    L["ActionbarRangeHeaderNotUsable"] = "Not Usable"
    L["ActionbarRangeHeaderNotUsableDesc"] = ""
    L["ActionbarRangeHeaderOutOfRange"] = "Out Of Range"
    L["ActionbarRangeHeaderOutOfRangeDesc"] = ""
    L["ActionbarRangeHeaderOutOfMana"] = "Out Of Mana"
    L["ActionbarRangeHeaderOutOfManaDesc"] = ""

    -- XP
    L["XPOptionsName"] = "经验条"
    L["XPOptionsDesc"] = "经验条"
    L["XPOptionsStyle"] = L["ButtonTableStyle"]
    L["XPOptionsStyleDesc"] = ""
    L["XPOptionsWidth"] = "宽度"
    L["XPOptionsWidthDesc"] = ""
    L["XPOptionsHeight"] = "高度"
    L["XPOptionsHeightDesc"] = ""
    L["XPOptionsAlwaysShowXPText"] = "始终显示经验文本"
    L["XPOptionsAlwaysShowXPTextDesc"] = ""
    L["XPOptionsShowXPPercent"] = "显示经验百分比"
    L["XPOptionsShowXPPercentDesc"] = ""

    -- rep
    L["RepOptionsName"] = "声望条"
    L["RepOptionsDesc"] = "声望条"
    L["RepOptionsStyle"] = L["ButtonTableStyle"]
    L["RepOptionsStyleDesc"] = ""
    L["RepOptionsWidth"] = L["XPOptionsWidth"]
    L["RepOptionsWidthDesc"] = L["XPOptionsWidthDesc"]
    L["RepOptionsHeight"] = L["XPOptionsHeight"]
    L["RepOptionsHeightDesc"] = L["XPOptionsHeightDesc"]
    L["RepOptionsAlwaysShowRepText"] = "始终显示声望文本"
    L["RepOptionsAlwaysShowRepTextDesc"] = ""

    -- Bags
    L["BagsOptionsName"] = "背包"
    L["BagsOptionsDesc"] = "背包"
    L["BagsOptionsStyle"] = L["ButtonTableStyle"]
    L["BagsOptionsStyleDesc"] = ""
    L["BagsOptionsExpanded"] = "展开状态"
    L["BagsOptionsExpandedDesc"] = ""
    L["BagsOptionsHideArrow"] = "隐藏箭头"
    L["BagsOptionsHideArrowDesc"] = ""
    L["BagsOptionsHidden"] = "隐藏背包"
    L["BagsOptionsHiddenDesc"] = "隐藏主背包"
    L["BagsOptionsOverrideBagAnchor"] = "覆盖背包锚点"
    L["BagsOptionsOverrideBagAnchorDesc"] = ""
    L["BagsOptionsOffsetX"] = "背包锚点X偏移"
    L["BagsOptionsOffsetXDesc"] = ""
    L["BagsOptionsOffsetY"] = "背包锚点Y偏移"
    L["BagsOptionsOffsetYDesc"] = ""

    -- FPS
    L["FPSOptionsName"] = "帧数显示"
    L["FPSOptionsDesc"] = "帧数显示"
    L["FPSOptionsStyle"] = L["ButtonTableStyle"]
    L["FPSOptionsStyleDesc"] = ""
    L["FPSOptionsHideDefaultFPS"] = "隐藏默认帧数显示"
    L["FPSOptionsHideDefaultFPSDesc"] = "隐藏默认帧数文本"
    L["FPSOptionsShowFPS"] = "显示帧数"
    L["FPSOptionsShowFPSDesc"] = "显示自定义帧数文本"
    L["FPSOptionsAlwaysShowFPS"] = "始终显示帧数"
    L["FPSOptionsAlwaysShowFPSDesc"] = "始终显示自定义帧数文本"
    L["FPSOptionsShowPing"] = "显示延迟"
    L["FPSOptionsShowPingDesc"] = "显示延迟(毫秒)"

    -- Extra Action Button
    L["ExtraActionButtonOptionsName"] = "额外动作按钮"
    L["ExtraActionButtonOptionsNameDesc"] = "帧数显示"
    L["ExtraActionButtonStyle"] = L["ButtonTableStyle"]
    L["ExtraActionButtonStyleDesc"] = ""
    L["ExtraActionButtonHideBackgroundTexture"] = "隐藏背景纹理"
    L["ExtraActionButtonHideBackgroundTextureDesc"] = ""

    -- Roll
    L["GroupLootContainerName"] = "掉落拾取窗口"
    L["GroupLootContainerDesc"] = ""

    -- widget below
    L["WidgetBelowName"] = "小地图下面的小部件"
    L["WidgetBelowNameDesc"] = ""

    -- widget below
    L["VehicleLeaveButton"] = "载具离开按钮"
    L["VehicleLeaveButtonDesc"] = ""
end

-- Buffs
do
    L["BuffsOptionsName"] = "增益效果"
    L["DebuffsOptionsName"] = "减益效果"
    L["BuffsOptionsStyle"] = L["ButtonTableStyle"]
    L["BuffsOptionsStyleDesc"] = ""

    L["BuffsOptionsExpanded"] = "展开状态"
    L["BuffsOptionsExpandedDesc"] = ""

    L["BuffsOptionsUseStateHandler"] = "使用状态处理器"
    L["BuffsOptionsUseStateHandlerDesc"] =
        "禁用此项将导致上方可见性设置失效，但可能提升其他插件兼容性(如MinimapAlert)，因为它不会使框体变为安全框体。"
end

-- Flyout
do
    L["FlyoutHeader"] = "弹出按钮"
    L["FlyoutHeaderDesc"] = ""
    L["FlyoutDirection"] = "弹出方向"
    L["FlyoutDirectionDesc"] = "弹出方向"
    L["FlyoutSpells"] = "法术"
    L["FlyoutSpellsDesc"] = "输入逗号分隔的法术ID, 例如 '688, 697'。"
    L["FlyoutSpellsAlliance"] = "法术 (联盟)"
    L["FlyoutSpellsAllianceDesc"] = L["FlyoutSpellsDesc"] .. "\n(仅用于联盟阵营)"
    L["FlyoutSpellsHorde"] = "法术 (部落)"
    L["FlyoutSpellsHordeDesc"] = L["FlyoutSpellsDesc"] .. "\n(仅用于部落阵营)"
    L["FlyoutItems"] = "物品"
    L["FlyoutItemsDesc"] = "输入逗号分隔的物品ID, 例如 '6948, 8490'。"
    L["FlyoutCloseAfterClick"] = "点击后关闭"
    L["FlyoutCloseAfterClickDesc"] = "按下其中一个按钮后关闭弹出框。"
    L["FlyoutAlwaysShow"] = "总是显示按钮"
    L["FlyoutAlwaysShowDesc"] =
        "总是显示子按钮，即便它们是空的。\n如果你想使用拖放，可以使用这个。"
    L["FlyoutIcon"] = "图标"
    L["FlyoutIconDesc"] = "输入材质的文件ID或文件路径。"
    L["FlyoutDisplayname"] = "显示名称"
    L["FlyoutDisplaynameDesc"] = ""
    L["FlyoutTooltip"] = "鼠标提示"
    L["FlyoutTooltipDesc"] = ""

    L["FlyoutButtonWarlock"] = "召唤"
    L["FlyoutButtonMagePort"] = "传送"
    L["FlyoutButtonMagePortals"] = "传送门"
    -- L["FlyoutButtonWarlock"] = "术士"
    L["FlyoutButtonMageFood"] = "造食术"
    L["FlyoutButtonMageWater"] = "造水术"
    L["FlyoutWarlock"] = "召唤恶魔"
    L["FlyoutWarlockDesc"] = "召唤一个恶魔到你身边。"
    L["FlyoutMagePort"] = "传送"
    L["FlyoutMagePortDesc"] = "传送你到一个主城。"
    L["FlyoutMagePortals"] = "传送门"
    L["FlyoutMagePortalsDesc"] = "开启一个传送门，传送适用它的队伍成员到一个主城。"
    L["FlyoutMageWater"] = "造水术"
    L["FlyoutMageWaterDesc"] = "如果登出超过15分钟，魔法物品会消失。"
    L["FlyoutMageFood"] = "造食术"
    L["FlyoutMageFoodDesc"] = L["FlyoutMageWaterDesc"]

    L["FlyoutButtonCustomFormat"] = "自定义弹出按钮 %d"
    L["FlyoutCustomNameFormat"] = "自定义弹出按钮 %d"
    L["FlyoutCustomNameDescFormat"] = "每个角色的弹出按钮，拥有最多12个额外的动作按钮。"

    L["FlyoutHeaderClassPresets"] = "职业预设"
    L["FlyoutHeaderClassPresetsDesc"] = "将弹出按钮预设设置为角色专有预设。"
end

-- Castbar
do
    L["CastbarName"] = "施法条"
    L["CastbarNameFormat"] = "%s施法条"
    L["CastbarNamePlayer"] = format(L["CastbarNameFormat"], "玩家")
    L["CastbarNameTarget"] = format(L["CastbarNameFormat"], "目标")
    L["CastbarNameFocus"] = format(L["CastbarNameFormat"], "焦点")
    L["CastbarTableActive"] = "启用"
    L["CastbarTableActivateDesc"] = ""
    L["CastbarTableStyle"] = L["ButtonTableStyle"]
    L["CastbarTableStyleDesc"] = ""
    L["CastbarTableWidth"] = L["XPOptionsWidth"]
    L["CastbarTableWidthDesc"] = L["XPOptionsWidthDesc"]
    L["CastbarTableHeight"] = L["XPOptionsHeight"]
    L["CastbarTableHeightDesc"] = L["XPOptionsHeightDesc"]
    L["CastbarTablePrecisionTimeLeft"] = "精度(剩余时间)"
    L["CastbarTablePrecisionTimeLeftDesc"] = ""
    L["CastbarTablePrecisionTimeMax"] = "精度(总时间)"
    L["CastbarTablePrecisionTimeMaxDesc"] = ""
    L["CastbarTableShowCastTimeText"] = "显示施法时间文本"
    L["CastbarTableShowCastTimeTextDesc"] = ""
    L["CastbarTableShowCastTimeMaxText"] = "显示总施法时间"
    L["CastbarTableShowCastTimeMaxTextDesc"] = ""
    L["CastbarTableCompactLayout"] = "紧凑布局"
    L["CastbarTableCompactLayoutDesc"] = ""
    L["CastbarTableHoldTimeSuccess"] = "保持时间(成功)"
    L["CastbarTableHoldTimeSuccessDesc"] = "施法成功后施法条开始淡出的时间"
    L["CastbarTableHoldTimeInterrupt"] = "保持时间(打断)"
    L["CastbarTableHoldTimeInterruptDesc"] = "施法被打断后施法条开始淡出的时间"
    L["CastbarTableShowIcon"] = "显示图标"
    L["CastbarTableShowIconDesc"] = ""
    L["CastbarTableIconSize"] = "图标大小"
    L["CastbarTableIconSizeDesc"] = ""
    L["CastbarTableShowTicks"] = "显示周期标记"
    L["CastbarTableShowTicksDesc"] = ""
    L["CastbarTableShowRank"] = "显示等级"
    L["CastbarTableShowRankDesc"] = ""
    L["CastbarTableShowChannelName"] = "显示引导名称"
    L["CastbarTableShowChannelNameDesc"] = "显示法术名称而非默认文本(如'引导中')"

    L["ExtraOptionsResetToDefaultStyle"] = "重置为默认样式"
    L["ExtraOptionsPresetStyleDesc"] =
        "重置所有影响施法条样式的设置，但不影响其他设置。"

    L["CastbarTableAutoAdjustHeader"] = "自动调整"
    L["CastbarTableAutoAdjustHeaderDesc"] = ""
    L["CastbarTableAutoAdjust"] = "自动调整"
    L["CastbarTableAutoAdjustDesc"] =
        "根据增益/减益数量自动调整Y轴偏移 - 当施法条锚定在目标/焦点框体下方时很有用" ..
            "\n\n仅当选项被选中*并且*父元素是默认父元素时才有效，例如目标施法条的目标框体。"

    -- local info = "\n\n" .. [[(Auto Adjust uses "SetPoint('TOPLEFT', parent, 'BOTTOMLEFT', dx, autoDy + dy)")]]
    local info =
        string.format("\n\n自动调整:\n%s", "SetPoint('TOPLEFT', parent, 'BOTTOMLEFT', dx, autoDy + dy)")
    L["CastbarTableAutoAdjustX"] = "自动 Delta X"
    L["CastbarTableAutoAdjustXDesc"] = "Delta X 应用于自动调整计算出的 X 值。" .. info
    L["CastbarTableAutoAdjustY"] = "自动 Delta Y"
    L["CastbarTableAutoAdjustYDesc"] = "Delta Y 应用于自动调整计算的 Y 值。" .. info

    -- mirror timer
    L["CastbarMirrorTimerName"] = "玩家镜像计时器"
    L["CastbarMirrorTimerNameDesc"] = ""
    L["CastbarMirrorHideBlizzard"] = "隐藏暴雪计时器"
    L["CastbarMirrorHideBlizzardDesc"] = "隐藏默认暴雪镜像计时器。"
end

-- Minimap
do
    L["MinimapName"] = "小地图"
    L["MinimapStyle"] = L["ButtonTableStyle"]
    L["MinimapShowPing"] = "显示点击信号"
    L["MinimapNotYetImplemented"] = "(尚未实现)"
    L["MinimapShowPingInChat"] = "在聊天框显示点击信号"
    L["MinimapShape"] = "小地图形状"
    L["MinimapShapeDesc"] = ""
    L["MinimapRotateDescAdditional"] = "\n\n注意：只适用于圆形小地图。"
    L["MinimapHideCalendar"] = "隐藏日历按钮"
    L["MinimapHideCalendarDesc"] = "隐藏日历按钮"
    L["MinimapHideHeader"] = "隐藏标题"
    L["MinimapHideHeaderDesc"] = "隐藏小地图标题"
    L["MinimapHideClock"] = "隐藏时钟"
    L["MinimapHideClockDesc"] = ""
    L["MinimapHideZoneText"] = "隐藏区域文本"
    L["MinimapHideZoneTextDesc"] = ""
    L["MinimapHideZoomButtons"] = "隐藏缩放按钮"
    L["MinimapHideZoomDesc"] = "隐藏缩放按钮(+)(-)"
    L["MinimapSkinMinimapButtons"] = "美化小地图按钮"
    L["MinimapSkinMinimapButtonsDesc"] = "使用LibDBIcon美化小地图按钮(多数插件使用此库)"
    L["MinimapSkinMinimapHideButtons"] = "隐藏小地图按钮"
    L["MinimapSkinMinimapHideButtonsDesc"] = "当鼠标不在小地图上时隐藏小地图按钮。" ..
                                                 "\n\n注意：只适用于使用 LibDBIcon 的按钮"
    L["MinimapZonePanelPosition"] = "区域面板位置"
    L["MinimapZonePanelPositionDesc"] = "设置区域文本面板的位置。"
    L["MinimapUseStateHandler"] = "使用状态处理器"
    L["MinimapUseStateHandlerDesc"] =
        "禁用此项将导致上方可见性设置失效，但可能提升其他插件兼容性(如MinimapAlert)，因为它不会使框体变为安全框体。"

    L["MinimapTrackerName"] = "追踪器"
    L["MinimapDurabilityName"] = "耐久"
    L["MinimapLFGName"] = "LFG"
end

-- UI
do
    L["UIUtility"] = "实用功能"
    L["UIName"] = "UI"
    L["UIChangeBags"] = "修改背包"
    L["UIChangeBagsDesc"] = ""
    L["UIColoredInventoryItems"] = "物品品质染色"
    L["UIColoredInventoryItemsDesc"] = "根据物品品质显示不同颜色边框"
    L["UIShowQuestlevel"] = "显示任务等级"
    L["UIShowQuestlevelDesc"] = "在任务名称旁显示任务等级"
    L["UIFrames"] = "框体"
    L["UIFramesDesc"] = "修改各类游戏窗口的选项"
    L["UIChangeCharacterFrame"] = "修改角色窗口"
    L["UIChangeCharacterFrameDesc"] = "修改角色窗口外观"
    L["UIChangeProfessionWindow"] = "修改专业窗口"
    L["UIChangeProfessionWindowDesc"] = "修改专业窗口外观"
    L["UIChangeInspectFrame"] = "修改观察窗口"
    L["UIChangeInspectFrameDesc"] = "修改观察其他玩家时的窗口外观"
    L["UIChangeTrainerWindow"] = "修改训练师窗口"
    L["UIChangeTrainerWindowDesc"] = "修改训练师窗口外观"
    L["UIChangeTalentFrame"] = "修改天赋窗口"
    L["UIChangeTalentFrameDesc"] = "修改天赋窗口布局和外观(巫妖王版本不可用)"
    L["UIChangeSpellBook"] = "修改法术书"
    L["UIChangeSpellBookDesc"] = "修改法术书外观"
    L["UIChangeSpellBookProfessions"] = "修改专业技能法术书"
    L["UIChangeSpellBookProfessionsDesc"] = "修改专业技能法术书布局"

    -- Characterstatspanel
    L['CharacterStatsHitMeleeTooltipFormat'] = "使你的近战攻击命中%d级目标的几率提高%.2f%%。"
    L['CharacterStatsArp'] = "护甲穿透"
    L['CharacterStatsArpTooltipFormat'] = "护甲穿透等级 %d \n(敌人的护甲最多减少%.2f%%)."
    L['CharacterStatsHitSpellTooltipFormat'] = "使你的法术命中%d级目标的几率提高%.2f%%。"
    L['CharacterStatsSpellPen'] = "法术穿透"
    L['CharacterStatsSpellPenTooltipFormat'] = "法术穿透%d\n（降低目标抗性%d点）。"

    -- ProfessionFrame
    L["ProfessionFrameHasSkillUp"] = "可提升技能"
    L["ProfessionFrameHasMaterials"] = CRAFT_IS_MAKEABLE or "材料齐备"
    L["ProfessionFrameSubclass"] = "子类别"
    L["ProfessionFrameSlot"] = "装备部位"
    L["ProfessionCheckAll"] = "全选"
    L["ProfessionUnCheckAll"] = "取消全选"
    L["ProfessionFavorites"] = "收藏"
    L["ProfessionExpansionFormat"] = "|cFFFFFFFF配方来自|r %s"
end

-- Tooltip
do
    L["TooltipName"] = "提示框"
    L["TooltipAnchorName"] = "T提示框锚点"
    L["TooltipHeaderGameToltip"] = "游戏提示框"
    L["TooltipHeaderSpellTooltip"] = "法术提示框"
    L["TooltipCursorAnchorHeader"] = "鼠标锚点"
    L["TooltipCursorAnchorHeaderDesc"] = ""
    L["TooltipAnchorToMouse"] = "锚定到鼠标"
    L["TooltipAnchorToMouseDesc"] = "将部分提示框(如世界框体的单位提示)锚定到鼠标光标"
    L["TooltipDefaultAnchorWhileCombat"] = "战斗中默认锚点"
    L["TooltipDefaultAnchorWhileCombatDesc"] = "在战斗中用默认鼠标提示锚点代替鼠标光标锚点。"
    L["TooltipMouseAnchor"] = "鼠标锚点"
    L["TooltipMouseAnchorDesc"] = ""
    L["TooltipMouseX"] = "X轴"
    L["TooltipMouseXDesc"] = ""
    L["TooltipMouseY"] = "Y轴"
    L["TooltipMouseYDesc"] = ""

    -- spelltooltip
    L["TooltipAnchorSpells"] = "法术锚点"
    L["TooltipAnchorSpellsDesc"] = "将动作条上的法术提示框锚定到按钮而非默认位置"
    L["TooltipShowSpellID"] = "显示法术ID"
    L["TooltipShowSpellIDDesc"] = ""
    L["TooltipShowSpellSource"] = "显示法术来源"
    L["TooltipShowSpellSourceDesc"] = ""
    L["TooltipShowSpellIcon"] = "显示法术图标"
    L["TooltipShowSpellIconDesc"] = ""
    L["TooltipShowIconID"] = "显示图标ID"
    L["TooltipShowIconIDDesc"] = ""
    L["TooltipShowIcon"] = "显示图标"
    L["TooltipShowIconDesc"] = ""

    -- itemtooltip
    L["TooltipHeaderItemTooltip"] = "物品提示框"
    L["TooltipHeaderItemTooltipDesc"] = ""
    L["TooltipShowItemQuality"] = "物品品质边框"
    L["TooltipShowItemQualityDesc"] = ""
    L["TooltipShowItemQualityBackdrop"] = "物品品质背景"
    L["TooltipShowItemQualityBackdropDesc"] = ""
    L["TooltipShowItemStackCount"] = "显示堆叠数量"
    L["TooltipShowItemStackCountDesc"] = ""
    L["TooltipShowItemID"] = "显示物品ID"
    L["TooltipShowItemIDDesc"] = ""

    -- backdrop
    L["TooltipBackdropHeader"] = "背景"
    L["TooltipBackdropHeaderDesc"] = ""
    L["TooltipBackdropColor"] = "背景色"
    L["TooltipBackdropColorDesc"] = ""
    L["TooltipBackdropAlpha"] = "背景透明度"
    L["TooltipBackdropAlphaDesc"] = ""
    L["TooltipBackdropCustomTexture"] = "背景材质"
    L["TooltipBackdropCustomTextureDesc"] = ""

    -- border
    L["TooltipBorderName"] = "边框"
    L["TooltipBorderNameDesc"] = ""
    L["TooltipBorderCustomTexture"] = "边框材质"
    L["TooltipBorderCustomTextureDesc"] = ""
    L["TooltipBorderColor"] = "边框颜色"
    L["TooltipBorderColorDesc"] = ""
    L["TooltipBorderAlpha"] = "边框透明度"
    L["TooltipBorderAlphaDesc"] = ""

    L["TooltipBorderInsetLeft"] = "内嵌左侧"
    L["TooltipBorderInsetRight"] = "内嵌右侧"
    L["TooltipBorderInsetTop"] = "内嵌上侧"
    L["TooltipBorderInsetBottom"] = "内嵌下侧"
    L["TooltipBorderInsetDesc"] = ""

    L["TooltipBorderInsetEdgeSize"] = "边缘大小"
    L["TooltipBorderInsetEdgeSizeDesc"] = ""

    -- statusbar
    L["TooltipUnitHealthbarName"] = "状态条"
    L["TooltipUnitHealthbarNameDesc"] = ""
    L["TooltipUnitHealthbar"] = "显示生命条"
    L["TooltipUnitHealthbarDesc"] = ""
    L["TooltipUnitHealthbarHeight"] = "生命条高度"
    L["TooltipUnitHealthbarHeightDesc"] = "."
    L["TooltipUnitHealthbarText"] = "显示生命条文本"
    L["TooltipUnitHealthbarTextDesc"] = ""

    -- unittooltip
    L["TooltipUnitTooltip"] = "单位提示框"
    L["TooltipUnitTooltipDesc"] = ""
    L["TooltipUnitClassBorder"] = "职业边框"
    L["TooltipUnitClassBorderDesc"] = ""
    L["TooltipUnitClassBackdrop"] = "职业背景"
    L["TooltipUnitClassBackdropDesc"] = ""
    L["TooltipUnitReactionBorder"] = "声望边框"
    L["TooltipUnitReactionBorderDesc"] = ""
    L["TooltipUnitReactionBackdrop"] = "声望背景"
    L["TooltipUnitReactionBackdropDesc"] = ""
    L["TooltipUnitClassName"] = "职业名称"
    L["TooltipUnitClassNameDesc"] = ""
    L["TooltipUnitTitle"] = "显示头衔"
    L["TooltipUnitTitleDesc"] = ""
    L["TooltipUnitRealm"] = "显示服务器"
    L["TooltipUnitRealmDesc"] = ""
    L["TooltipUnitGuild"] = "显示公会"
    L["TooltipUnitGuildDesc"] = ""
    L["TooltipUnitGuildRank"] = "显示公会等级"
    L["TooltipUnitGuildRankDesc"] = ""
    L["TooltipUnitGuildRankIndex"] = "显示公会等级序号"
    L["TooltipUnitGuildRankIndexDesc"] = ""
    L["TooltipUnitGrayOutOnDeath"] = "死亡变灰"
    L["TooltipUnitGrayOutOnDeathDesc"] = ""
    L["TooltipUnitZone"] = "显示区域文本"
    L["TooltipUnitZoneDesc"] = ""
    L["TooltipUnitTarget"] = "显示目标"
    L["TooltipUnitTargetDesc"] = "显示单位目标"
end

-- Unitframes
do
    L["UnitFramesName"] = "单位框体"

    -- Player
    L["PlayerFrameName"] = "玩家框体"
    L["PlayerFrameDesc"] = "玩家框体设置"
    L["PlayerFrameStyle"] = L["ButtonTableStyle"]
    L["PlayerFrameClassColor"] = "职业颜色"
    L["PlayerFrameClassColorDesc"] = "生命条使用职业颜色"
    L["PlayerFrameClassIcon"] = "职业图标头像"
    L["PlayerFrameClassIconDesc"] = "使用职业图标作为头像(当前禁用)"
    L["PlayerFrameBreakUpLargeNumbers"] = "数字分段显示"
    L["PlayerFrameBreakUpLargeNumbersDesc"] = "在状态文本中使用分段数字显示(如显示7588 K而非7588000)"
    L["PlayerFrameBiggerHealthbar"] = "加宽生命条"
    L["PlayerFrameBiggerHealthbarDesc"] = "启用更宽的生命条"
    L["PlayerFramePortraitExtra"] = "头像边框"
    L["PlayerFramePortraitExtraDesc"] = "在玩家框体周围显示一个精英、稀有或世界首领样式的边框。"
    L["PlayerFrameHideRedStatus"] = "隐藏战斗红色光效"
    L["PlayerFrameHideRedStatusDesc"] = "隐藏战斗中的红色状态光效"
    L["PlayerFrameHideHitIndicator"] = "隐藏命中指示器"
    L["PlayerFrameHideHitIndicatorDesc"] = "隐藏玩家框体上的命中指示器"
    L["PlayerFrameHideSecondaryRes"] = "隐藏次要资源"
    L["PlayerFrameHideSecondaryResDesc"] = "隐藏次要资源条，如灵魂碎片"
    L["PlayerFrameHideAlternatePowerBar"] = "隐藏德鲁伊备用能量条"
    L["PlayerFrameHideAlternatePowerBarDesc"] = "隐藏德鲁伊熊/猫形态时的备用能量条(法力条)"
    L["PlayerFrameHideRestingGlow"] = "隐藏休息闪烁"
    L["PlayerFrameHideRestingGlowDesc"] = "隐藏休息状态时玩家框体上的闪烁。"
    L["PlayerFrameHideRestingIcon"] = "隐藏休息图标"
    L["PlayerFrameHideRestingIconDesc"] = "隐藏玩家框体上的休息图标。"
    L["PlayerFrameHidePVP"] = "隐藏 PVP 图标"
    L["PlayerFrameHidePVPDesc"] = "隐藏 PVP 图标。"

    local note =
        "\n\n注意: 自定义材质使用暴雪的默认状态栏颜色。\n如果你想要一些不同的东西，你必须通过代码修改它。\n"
    L["PlayerFrameCustomHealthbarTexture"] = "血条材质"
    L["PlayerFrameCustomHealthbarTextureDesc"] =
        "将血条材质更改为 LibSharedMedia 的自定义材质。" .. note
    L["PlayerFrameCustomPowerbarTexture"] = "能量条材质"
    L["PlayerFrameCustomPowerbarTextureDesc"] = "将能量条材质更改为 LibSharedMedia 的自定义材质。" ..
                                                    note
    -- Player Secondary< Res
    L["PlayerSecondaryResName"] = "玩家次要资源"
    L["PlayerSecondaryResNameDesc"] = ""

    -- TotemFrame
    L["PlayerTotemFrameName"] = "玩家图腾框体"
    L["PlayerTotemFrameNameDesc"] = ""

    -- PowerBar_Alt
    L["PowerBarAltName"] = "玩家备用能量条"
    L["PowerBarAltNameDesc"] = ""

    -- Target
    L["TargetFrameName"] = "目标框体"
    L["TargetFrameDesc"] = "目标框体设置"
    L["TargetFrameStyle"] = L["ButtonTableStyle"]
    L["TargetFrameClassColor"] = L["PlayerFrameClassColor"]
    L["TargetFrameClassColorDesc"] = L["PlayerFrameClassColorDesc"]
    L["TargetFrameReactionColor"] = "生命条使用阵营颜色"
    L["TargetFrameReactionColorDesc"] = "为生命条启用阵营颜色。"
    L["TargetFrameClassIcon"] = L["PlayerFrameClassIcon"]
    L["TargetFrameClassIconDesc"] = L["PlayerFrameClassIconDesc"]
    L["TargetFrameBreakUpLargeNumbers"] = L["PlayerFrameBreakUpLargeNumbers"]
    L["TargetFrameBreakUpLargeNumbersDesc"] = L["PlayerFrameBreakUpLargeNumbersDesc"]
    L["TargetFrameNumericThreat"] = "数值化仇恨值"
    L["TargetFrameNumericThreatDesc"] = "显示数值化仇恨百分比"
    L["TargetFrameNumericThreatAnchor"] = "仇恨值锚点"
    L["TargetFrameNumericThreatAnchorDesc"] = "设置仇恨值显示位置"
    L["TargetFrameThreatGlow"] = "仇恨光效"
    L["TargetFrameThreatGlowDesc"] = "启用仇恨光效"
    L["TargetFrameHideNameBackground"] = "隐藏名称背景"
    L["TargetFrameHideNameBackgroundDesc"] = "隐藏目标名称的背景"
    L["TargetFrameComboPointsOnPlayerFrame"] = "连击点显示在玩家框体"
    L["TargetFrameComboPointsOnPlayerFrameDesc"] = "在玩家框体上显示连击点数"
    L["TargetFrameHideComboPoints"] = "隐藏连击点"
    L["TargetFrameHideComboPointsDesc"] = "隐藏连击点数框体"
    L["TargetFrameFadeOut"] = "淡出效果"
    L["TargetFrameFadeOutDesc"] = "当目标距离超过*淡出距离*时淡出目标框体"
    L["TargetFrameFadeOutDistance"] = "淡出距离"
    L["TargetFrameFadeOutDistanceDesc"] =
        "设置触发淡出效果的距离(码)。\n注意: 并非所有值都有效，因使用'LibRangeCheck-3.0'库。\n计算方式为'最小距离 >= 淡出距离'"

    L["TargetFrameHeaderBuffs"] = "增益/减益"
    L["TargetFrameAuraSizeSmall"] = "小光环图标"
    L["TargetFrameAuraSizeSmallDesc"] =
        "当使用'动态增益图标大小'时设置目标框体上非玩家光环图标的大小。"
    L["TargetFrameAuraSizeLarge"] = "光环图标大小"
    L["TargetFrameAuraSizeLargeDesc"] = "设置目标框体上的光环图标大小。"
    L["TargetFrameNoDebuffFilter"] = "显示全部敌人的减益"
    L["TargetFrameNoDebuffFilterDesc"] =
        "在目标框体上显示友方和敌方的减益效果，不仅仅是你施加的。"
    L["TargetFrameDynamicBuffSize"] = "动态增益图标大小"
    L["TargetFrameDynamicBuffSizeDesc"] = "在目标框体上增大玩家的增益/减益效果图标大小。"

    L["TargetFrameHeaderBuffsAdvanced"] = "增益/减益 (高级)"
    L["TargetFrameAuraOffsetY"] = "光环 Y 偏移"
    L["TargetFrameAuraOffsetYDesc"] = "行与增益/减增益之间的 Y 偏移量。"
    L["TargetFrameAuraRowWidth"] = "光环行宽"
    L["TargetFrameAuraRowWidthDesc"] = "增益/减增益的最大行宽。"
    L["TargetFrameAuraRowWidthToT"] = "光环行宽 (ToT)"
    L["TargetFrameAuraRowWidthToTDesc"] = "与“光环行宽度”相同，但仅适用于第一个 X (=NumToTAuraRows) 行。" ..
                                              "\n\n这是为了给 ToT 框体留出空间。"
    L["TargetFrameToTAuraRows"] = "ToT 光环行数"
    L["TargetFrameToTAuraRowsDesc"] =
        "使用“光环行宽 (ToT)”替代正常宽度的光环行数。" ..
            "\n\n如果你想要相同宽度的光环行，将此设置为 0，例如当你将 ToT 框体移开时。"

    -- ToT
    L["TargetOfTargetFrameName"] = "目标的目标"
    L["TargetOfTargetFrameDesc"] = ""
    -- Pet
    L["PetFrameName"] = "宠物框体"
    L["PetFrameDesc"] = "宠物框体设置"
    L["PetFrameStyle"] = L["ButtonTableStyle"]
    L["PetFrameBreakUpLargeNumbers"] = L["PlayerFrameBreakUpLargeNumbers"]
    L["PetFrameBreakUpLargeNumbersDesc"] = L["PlayerFrameBreakUpLargeNumbersDesc"]
    L["PetFrameThreatGlow"] = L["TargetFrameThreatGlow"]
    L["PetFrameThreatGlowDesc"] = L["TargetFrameThreatGlowDesc"]
    L["PetFrameHideStatusbarText"] = "隐藏状态条文本"
    L["PetFrameHideStatusbarTextDesc"] = "隐藏状态条文本"
    L["PetFrameHideIndicator"] = "隐藏命中指示器"
    L["PetFrameHideIndicatorDesc"] = "隐藏命中指示器"
    L["PetFrameHideDebuffs"] = "隐藏减益效果"
    L["PetFrameHideDebuffsDesc"] = "隐藏宠物的减益效果。"

    -- Focus
    L["FocusFrameName"] = "焦点框体"
    L["FocusFrameToTName"] = "焦点框体ToT"
    L["FocusFrameDesc"] = "焦点框体设置"
    L["FocusFrameStyle"] = L["ButtonTableStyle"]
    L["FocusFrameClassColor"] = L["PlayerFrameClassColor"]
    L["FocusFrameClassColorDesc"] = "生命条使用职业颜色"
    L["FocusFrameClassIcon"] = L["PlayerFrameClassIcon"]
    L["FocusFrameClassIconDesc"] = "为焦点框体使用职业图标作为头像"
    L["FocusFrameBreakUpLargeNumbers"] = L["PlayerFrameBreakUpLargeNumbers"]
    L["FocusFrameBreakUpLargeNumbersDesc"] = L["PlayerFrameBreakUpLargeNumbersDesc"]
    L["FocusFrameHideNameBackground"] = L["TargetFrameHideNameBackground"]
    L["FocusFrameHideNameBackgroundDesc"] = "隐藏焦点名称背景"

    -- party
    L["PartyFrameName"] = "小队框体"
    L["PartyFrameDesc"] = "小队框体设置"
    L["PartyFrameStyle"] = L["ButtonTableStyle"]
    L["PartyFrameClassColor"] = L["PlayerFrameClassColor"]
    L["PartyFrameClassColorDesc"] = "生命条使用职业颜色"
    L["PartyFrameBreakUpLargeNumbers"] = L["PlayerFrameBreakUpLargeNumbers"]
    L["PartyFrameBreakUpLargeNumbersDesc"] = L["PlayerFrameBreakUpLargeNumbersDesc"]
    L["PartyFrameDisableBuffTooltip"] = "禁用增益效果提示框"
    L["PartyFrameDisableBuffTooltipDesc"] = "禁用鼠标悬浮时增益的提示框。"

    -- raid
    L["RaidFrameName"] = "团队框体"

    -- Bosss
    L["BossFrameName"] = "首领框体"
    L["BossFrameNameDesc"] = "首领框体设置"
end

-- keybindings
do
    local KEY_REPLACEMENTS = {
        ["ALT%-"] = "A",
        ["CTRL%-"] = "C",
        ["SHIFT%-"] = "S",
        ["META%-"] = "C", -- Note: META is also mapped to C like CTRL
        ["NUMPAD"] = "N",
        ["PLUS"] = "+",
        ["MINUS"] = "-",
        ["MULTIPLY"] = "*",
        ["DIVIDE"] = "/",
        ["BACKSPACE"] = "BS",
        ["CAPSLOCK"] = "CP",
        ["CLEAR"] = "CL",
        ["DELETE"] = "Del",
        ["END"] = "En",
        ["HOME"] = "HM",
        ["INSERT"] = "Ins",
        ["MOUSEWHEELDOWN"] = "WD",
        ["MOUSEWHEELUP"] = "WU",
        ["NUMLOCK"] = "NL",
        ["PAGEDOWN"] = "PD",
        ["PAGEUP"] = "PU",
        ["SCROLLLOCK"] = "SL",
        ["SPACEBAR"] = "SP",
        ["SPACE"] = "SP",
        ["TAB"] = "TB",
        ["DOWNARROW"] = "Dn",
        ["LEFTARROW"] = "Lf",
        ["RIGHTARROW"] = "Rt",
        ["UPARROW"] = "Up"
    }

    local NUM_MOUSE_BUTTONS = 31
    for i = 1, NUM_MOUSE_BUTTONS do KEY_REPLACEMENTS["BUTTON" .. i] = "B" .. i end

    for k, v in pairs(KEY_REPLACEMENTS) do L_CN[k] = v; end
    DF.KEY_REPLACEMENTS = KEY_REPLACEMENTS;
end

-- see comment above
for k, v in pairs(L) do L_CN[k] = v; end
