diff --git a/Bar.lua b/Bar.lua index 99da86c..e0f5644 100644 --- a/Bar.lua +++ b/Bar.lua @@ -172,7 +172,7 @@ do end end -local showOptions = { alwaysshow = "Always Show", alwayshide = "Always Hide", combatshow = "Show in Combat", combathide = "Hide in Combat" } +local showOptions = { alwaysshow = L["Always Show"], alwayshide = L["Always Hide"], combatshow = L["Show in Combat"], combathide = L["Hide in Combat"] } local options function Bar:GetOptionObject() @@ -180,14 +180,14 @@ function Bar:GetOptionObject() general = { type = "group", cmdInline = true, - name = "General Settings", + name = L["General Settings"], order = 1, args = { show = { order = 5, type = "select", name = L["Show/Hide"], - desc = "Configure when to Show/Hide the bar.", + desc = L["Configure when to Show/Hide the bar."], get = optGetter, set = optSetter, values = showOptions, @@ -195,12 +195,12 @@ function Bar:GetOptionObject() styleheader = { order = 10, type = "header", - name = "Bar Style & Layout", + name = L["Bar Style & Layout"], }, alpha = { order = 20, - name = "Alpha", - desc = "Configure the alpha of the bar.", + name = L["Alpha"], + desc = L["Configure the alpha of the bar."], type = "range", min = .1, max = 1, bigStep = 0.1, get = optGetter, @@ -208,8 +208,8 @@ function Bar:GetOptionObject() }, scale = { order = 30, - name = "Scale", - desc = "Configure the scale of the bar.", + name = L["Scale"], + desc = L["Configure the scale of the bar."], type = "range", min = .1, max = 2, step = 0.05, get = optGetter, @@ -217,8 +217,8 @@ function Bar:GetOptionObject() }, fadeout = { order = 100, - name = "Fade Out", - desc = "Enable the FadeOut mode", + name = L["Fade Out"], + desc = L["Enable the FadeOut mode"], type = "toggle", get = optGetter, set = optSetter, @@ -226,8 +226,8 @@ function Bar:GetOptionObject() }, fadeoutalpha = { order = 101, - name = "Fade Out Alpha", - desc = "Enable the FadeOut mode", + name = L["Fade Out Alpha"], + desc = L["Enable the FadeOut mode"], type = "range", min = 0, max = 1, step = 0.05, get = optGetter, @@ -236,8 +236,8 @@ function Bar:GetOptionObject() }, fadeoutdelay = { order = 102, - name = "Fade Out Delay", - desc = "Enable the FadeOut mode", + name = L["Fade Out Delay"], + desc = L["Enable the FadeOut mode"], type = "range", min = 0, max = 1, step = 0.01, get = optGetter, @@ -249,13 +249,13 @@ function Bar:GetOptionObject() align = { type = "group", cmdInline = true, - name = "Alignment", + name = L["Alignment"], order = 10, args = { info = { order = 1, type = "description", - name = "The Alignment menu is still on the TODO.\n\nAs a quick preview of whats planned:\n\n\t- Absolute and relative Bar Positioning\n\t- Bars \"snapping\" together and building clusters", + name = L["The Alignment menu is still on the TODO.\n\nAs a quick preview of whats planned:\n\n\t- Absolute and relative Bar Positioning\n\t- Bars \"snapping\" together and building clusters"], }, }, } diff --git a/ButtonBar.lua b/ButtonBar.lua index f494b93..3248dbd 100644 --- a/ButtonBar.lua +++ b/ButtonBar.lua @@ -1,5 +1,5 @@ --[[ $Id$ ]] - +local L = LibStub("AceLocale-3.0"):GetLocale("Bartender4") --[[ Generic Template for a Bar which contains Buttons ]] local Bar = Bartender4.Bar.prototype @@ -100,25 +100,25 @@ function ButtonBar:GetOptionObject() padding = { order = 40, type = "range", - name = "Padding", - desc = "Configure the padding of the buttons.", + name = L["Padding"], + desc = L["Configure the padding of the buttons."], min = -10, max = 20, step = 1, set = optSetter, get = optGetter, }, zoom = { order = 59, - name = "Zoom", + name = L["Zoom"], type = "toggle", - desc = "Toggle Button Zoom\nFor more style options you need to install ButtonFacade", + desc = L["Toggle Button Zoom\nFor more style options you need to install ButtonFacade"], get = optGetter, set = optSetter, hidden = function() return LBF and true or false end, }, rows = { order = 70, - name = "Rows", - desc = "Number of rows.", + name = L["Rows"], + desc = L["Number of rows."], type = "range", min = 1, max = 12, step = 1, set = optSetter, diff --git a/MicroMenu.lua b/MicroMenu.lua index bec0e50..04ef1c0 100644 --- a/MicroMenu.lua +++ b/MicroMenu.lua @@ -1,5 +1,5 @@ --[[ $Id$ ]] - +local L = LibStub("AceLocale-3.0"):GetLocale("Bartender4") -- register module local MicroMenuMod = Bartender4:NewModule("MicroMenu", "AceHook-3.0") @@ -72,8 +72,8 @@ function MicroMenuMod:SetupOptions() local enabled = { type = "toggle", order = 1, - name = "Enabled", - desc = "Enable the Micro Menu", + name = L["Enabled"], + desc = L["Enable the Micro Menu"], get = function() return self.db.profile.enabled end, set = "ToggleModule", handler = self, @@ -83,7 +83,7 @@ function MicroMenuMod:SetupOptions() self.disabledoptions = { general = { type = "group", - name = "General Settings", + name = L["General Settings"], cmdInline = true, order = 1, args = { @@ -94,8 +94,8 @@ function MicroMenuMod:SetupOptions() self.options = { order = 30, type = "group", - name = "Micro Menu", - desc = "Configure the Micro Menu", + name = L["Micro Menu"], + desc = L["Configure the Micro Menu"], childGroups = "tab", } Bartender4:RegisterBarOptions("MicroMenu", self.options) diff --git a/PetBar.lua b/PetBar.lua index 6a03611..99a4f00 100644 --- a/PetBar.lua +++ b/PetBar.lua @@ -1,5 +1,5 @@ --[[ $Id$ ]] - +local L = LibStub("AceLocale-3.0"):GetLocale("Bartender4") -- register module local PetBarMod = Bartender4:NewModule("PetBar", "AceEvent-3.0") @@ -135,8 +135,8 @@ function PetBarMod:SetupOptions() local enabled = { type = "toggle", order = 1, - name = "Enabled", - desc = "Enable the PetBar", + name = L["Enabled"], + desc = L["Enable the PetBar"], get = function() return self.db.profile.enabled end, set = "ToggleModule", handler = self, @@ -146,7 +146,7 @@ function PetBarMod:SetupOptions() self.disabledoptions = { general = { type = "group", - name = "General Settings", + name = L["General Settings"], cmdInline = true, order = 1, args = { @@ -158,8 +158,8 @@ function PetBarMod:SetupOptions() self.options = { order = 30, type = "group", - name = "Pet Bar", - desc = "Configure the Pet Bar", + name = L["Pet Bar"], + desc = L["Configure the Pet Bar"], childGroups = "tab", } Bartender4:RegisterBarOptions("Pet", self.options) diff --git a/StanceBar.lua b/StanceBar.lua index c50f50c..ae3d2d7 100644 --- a/StanceBar.lua +++ b/StanceBar.lua @@ -1,5 +1,5 @@ --[[ $Id$ ]] - +local L = LibStub("AceLocale-3.0"):GetLocale("Bartender4") -- register module local StanceBarMod = Bartender4:NewModule("StanceBar", "AceEvent-3.0") @@ -65,8 +65,8 @@ function StanceBarMod:SetupOptions() local enabled = { type = "toggle", order = 1, - name = "Enabled", - desc = "Enable the StanceBar", + name = L["Enabled"], + desc = L["Enable the StanceBar"], get = function() return self.db.profile.enabled end, set = "ToggleModule", handler = self, @@ -76,7 +76,7 @@ function StanceBarMod:SetupOptions() self.disabledoptions = { general = { type = "group", - name = "General Settings", + name = L["General Settings"], cmdInline = true, order = 1, args = { @@ -88,8 +88,8 @@ function StanceBarMod:SetupOptions() self.options = { order = 30, type = "group", - name = "Stance Bar", - desc = "Configure the Stance Bar", + name = L["Stance Bar"], + desc = L["Configure the Stance Bar"], childGroups = "tab", disabled = function(info) return GetNumShapeshiftForms() == 0 end, } diff --git a/locale/enUS.lua b/locale/enUS.lua index 0354823..087bd58 100644 --- a/locale/enUS.lua +++ b/locale/enUS.lua @@ -1,7 +1,9 @@ --[[ $Id$ ]] local L = LibStub("AceLocale-3.0"):NewLocale("Bartender4", "enUS", true) if not L then return end - +--General +L["Enabled"] = true +L["General Settings"] = true -- Options.lua L["Lock"] = true L["Lock all bars."] = true @@ -22,7 +24,6 @@ L["Configure the Button Tooltip."] = true L["FAQ"] = true L["Frequently Asked Questions"] = true --ActionBarPrototype.lua -L["Enabled"] = true L["Enable/Disable the bar."] = true L["Button Grid"] = true L["Toggle the button grid."] = true @@ -35,13 +36,10 @@ L["Hide Hotkey"] = true L["Hide the Hotkey on the buttons of this bar."] = true L["State Configuration"] = true --ActionBars.lua -L["General Settings"] = true -L["Enabled"] = true L["Enable/Disable the bar."] = true L["Bar %s"] = true L["Configure Bar %s"] = true --ActionBarStates.lua -L["Enabled"] = true L["Enable State-based Button Swaping"] = true L["ActionBar Switching"] = true L["Enable Bar Switching based on the actionbar controls provided by the game."] = true @@ -59,17 +57,51 @@ L["Configure actionbar paging when the alt key is down."] = true L["SHIFT"] = true L["Stance Configuration"] = true --BagBar.lua -L["Enabled"] = true L["Enable the Bag Bar"] = true L["One Bag"] = true L["Only show one Bag Button in the BagBar."] = true L["Keyring"] = true L["Show the keyring button."] = true -L["General Settings"] = true L["Bag Bar"] = true L["Configure the Bag Bar"] = true --Bar.lua L["Show/Hide"] = true +L["Configure when to Show/Hide the bar."] = true +L["Bar Style & Layout"] = true +L["Alpha"] = true +L["Configure the alpha of the bar."] = true +L["Scale"] = true +L["Configure the scale of the bar."] = true +L["Fade Out"] = true +L["Enable the FadeOut mode"] = true +L["Fade Out Alpha"] = true +L["Fade Out Delay"] = true +L["Alignment"] = true +L["The Alignment menu is still on the TODO.\n\nAs a quick preview of whats planned:\n\n\t- Absolute and relative Bar Positioning\n\t- Bars \"snapping\" together and building clusters"] = true +L["Always Show"] = true +L["Always Hide"] = true +L["Show in Combat"] = true +L["Hide in Combat"] = true +--ButtonBar.lua +L["Padding"] = true +L["Configure the padding of the buttons."] = true +L["Zoom"] = true +L["Toggle Button Zoom\nFor more style options you need to install ButtonFacade"] = true +L["Rows"] = true +L["Number of rows."] = true +--MicroMenu.lua +L["Enable the Micro Menu"] = true +L["Micro Menu"] = true +L["Configure the Micro Menu"] = true +--PetBar.lua +L["Enable the PetBar"] = true +L["Pet Bar"] = true +L["Configure the Pet Bar"] = true +--StanceBar.lua +L["Enable the StanceBar"] = true +L["Stance Bar"] = true +L["Configure the Stance Bar"] = true + L["FAQ_TEXT"] = [[ |cffffd200 diff --git a/locale/zhCN.lua b/locale/zhCN.lua index 62cd4d5..221663e 100644 --- a/locale/zhCN.lua +++ b/locale/zhCN.lua @@ -1,7 +1,9 @@ --[[ $Id$ ]] local L = LibStub("AceLocale-3.0"):NewLocale("Bartender4", "zhCN") if not L then return end - +--General +L["Enabled"] = "开启" +L["General Settings"] = "一般设置" -- Options.lua L["Lock"] = "锁定" L["Lock all bars."] = "锁定所有动作条。" @@ -22,7 +24,6 @@ L["Configure the Button Tooltip"] = "设置按钮的鼠标提示。" L["FAQ"] = "帮助" L["Frequently Asked Questions"] = "帮助信息" --ActionBarPrototype.lua -L["Enabled"] = "开启" L["Enable/Disable the bar."] = "开启/关闭 该动作条" L["Button Grid"] = "显示空按钮" L["Toggle the button grid."] = "勾选该选项将显示空的按钮。" @@ -35,13 +36,10 @@ L["Hide Hotkey"] = "隐藏快捷键" L["Hide the Hotkey on the buttons of this bar."] = "在该动作条上不显示按钮的快捷键提示。" L["State Configuration"] = "状态配置" --ActionBars.lua -L["General Settings"] = "一般设置" -L["Enabled"] = "开启" L["Enable/Disable the bar."] = "开启/关闭 该动作条。" L["Bar %s"] = "动作条 %s" L["Configure Bar %s"] = "设置动作条 %s" --ActionBarStates.lua -L["Enabled"] = "开启" L["Enable State-based Button Swaping"] = "开始基于状态配置的按钮切换功能。" L["ActionBar Switching"] = "切换动作条" L["Enable Bar Switching based on the actionbar controls provided by the game"] = "开启游戏本身的动作条切换功能。(诸如战士的不同姿态下主动作条1的切换)" @@ -60,14 +58,66 @@ L["SHIFT"] = "按下SHIFT" L["Configure actionbar paging when the shift key is down."] = "配置当按下SHIFT键时动作条的页面" L["Stance Configuration"] = "姿态配置" --BagBar.lua -L["Enabled"] = "开启" L["Enable the Bag Bar"] = "开启背包栏" L["One Bag"] = "单背包" L["Only show one Bag Button in the BagBar."] = "仅仅显示一个背包来代表背包栏。" L["Keyring"] = "钥匙链" L["Show the keyring button."] = "显示钥匙链" -L["General Settings"] = "一般设置" L["Bag Bar"] = "背包栏" L["Configure the Bag Bar"] = "设置背包栏。" --Bar.lua -L["Show/Hide"] = "显示/隐藏" \ No newline at end of file +L["Show/Hide"] = "显示/隐藏" +L["Configure when to Show/Hide the bar."] = "配置何时显示/隐藏动作条。" +L["Bar Style & Layout"] = "动作条风格与布局" +L["Alpha"] = "透明度" +L["Configure the alpha of the bar."] = "设置动作条的透明度。" +L["Scale"] = "缩放" +L["Configure the scale of the bar."] = "设置动作条缩放。" +L["Fade Out"] = "淡出" +L["Enable the FadeOut mode"] = "开启淡出模式" +L["Fade Out Alpha"] = "淡出程度" +L["Fade Out Delay"] = "淡出延迟" +L["Alignment"] = "对齐" +L["The Alignment menu is still on the TODO.\n\nAs a quick preview of whats planned:\n\n\t- Absolute and relative Bar Positioning\n\t- Bars \"snapping\" together and building clusters"] = "该部分功能尚未完成" +L["Always Show"] = "始终显示" +L["Always Hide"] = "始终隐藏" +L["Show in Combat"] = "战斗中显示" +L["Hide in Combat"] = "战斗中隐藏" +--ButtonBar.lua +L["Padding"] = "间距" +L["Configure the padding of the buttons."] = "配置按钮之间的距离" +L["Zoom"] = "缩放" +L["Toggle Button Zoom\nFor more style options you need to install ButtonFacade"] = "开启/关闭 按钮缩放\n若需要进一步改变按钮风格,您需要安装插件ButtonFacade" +L["Rows"] = "行" +L["Number of rows."] = "设置行数。" +--MicroMenu.lua +L["Enabled"] = "开启" +L["Enable the Micro Menu"] = "开启微型主菜单" +L["Micro Menu"] = "微型主菜单" +L["Configure the Micro Menu"] = "配置微型主菜单" +--PetBar.lua +L["Enable the PetBar"] = "开启宠物栏" +L["Pet Bar"] = "宠物栏" +L["Configure the Pet Bar"] = "配置宠物栏" +--StanceBar.lua +L["Enable the StanceBar"] = "开启姿态栏" +L["Stance Bar"] = "姿态栏" +L["Configure the Stance Bar"] = "配置姿态栏" + +L["FAQ_TEXT"] = [[ +|cffffd200 +我刚刚安装了Bartender4,发现我的按键绑定似乎不太正确。 +|r +Bartender4仅仅将主动作条1与Bartender4的动作条1关联起来,游戏其他动作条的设置不会转移到Bartender4上,不过您之前设置的快捷键仍然是有效的,它们仅仅是被隐藏了起来而已。 + +|cffffd200 +我如何才能为Bartender4的按钮设置快捷键? +|r +在聊天窗口输入命令 /kb ,会弹出一个窗口,此时移动鼠标到您需要设置快捷键的按钮上,按下您需要设置的快捷键,屏幕上会显示出您将要绑定的按键,确认无误后关闭弹出的窗口即可。 + +|cffffd200 +谁写的这个插件? +|r +Bartender4是欧洲服务器Antonidas的玩家 Nevcairiel 的作品, 该玩家同时也是Bartender3的作者! +简体中文版本是由7区加里索斯服务器联盟玩家 提珞德夜行 提供的。 +]] \ No newline at end of file