From 5832215f9550caea42f612daeaee3518681123b6 Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 24 Jun 2017 14:43:19 +0200 Subject: [PATCH] api: add translation mechanics --- env/translations_deDE.lua | 249 +++++++++++ env/translations_enGB.lua | 249 +++++++++++ env/translations_frFR.lua | 249 +++++++++++ env/translations_koKR.lua | 249 +++++++++++ env/translations_ruRU.lua | 249 +++++++++++ env/translations_zhCN.lua | 249 +++++++++++ modules/chat.lua | 17 +- modules/firstrun.lua | 14 +- modules/gui.lua | 916 +++++++++++++++++++------------------- modules/hoverbind.lua | 7 +- modules/skin.lua | 2 +- modules/unlock.lua | 6 +- pfUI.lua | 6 + pfUI.toc | 7 + 14 files changed, 1981 insertions(+), 488 deletions(-) create mode 100644 env/translations_deDE.lua create mode 100644 env/translations_enGB.lua create mode 100644 env/translations_frFR.lua create mode 100644 env/translations_koKR.lua create mode 100644 env/translations_ruRU.lua create mode 100644 env/translations_zhCN.lua diff --git a/env/translations_deDE.lua b/env/translations_deDE.lua new file mode 100644 index 00000000..25cde365 --- /dev/null +++ b/env/translations_deDE.lua @@ -0,0 +1,249 @@ +pfUI_translation["deDE"] = { + ["40y-Range Check Interval"] = nil, + ["Abbreviate Numbers (4200 -> 4.2k)"] = nil, + ["Action Bar Border Size"] = nil, + ["Actionbar"] = nil, + ["Aggressive 40y-Range Check (Will break stuff)"] = nil, + ["Alt-Click Action"] = nil, + ["Always Show Experience And Reputation Bar"] = nil, + ["Always Show Extended Vendor Values"] = nil, + ["Always Show Item Comparison"] = nil, + ["Always Use 2D Portraits"] = nil, + ["Appearance"] = nil, + ["Autohide"] = nil, + ["Auto Repair Items"] = nil, + ["Auto Sell Grey Items"] = nil, + ["Background Color"] = nil, + ["Bags & Bank"] = nil, + ["Bags Border Size"] = nil, + ["Border Color"] = nil, + ["Buff Limit"] = nil, + ["Buff Position"] = nil, + ["Buff Size"] = nil, + ["Buffs Per Row"] = nil, + ["Cache"] = nil, + ["Castbar Height"] = nil, + ["Castbar"] = nil, + ["Casting Color"] = nil, + ["Center Text"] = nil, + ["|cff33ffccBlizzard: \"Interface Options\"|r\n\nDo you want me to setup the recommended blizzard UI settings?\nThis will enable settings that can be found in the Interface section of your client.\nOptions like Buff Durations, Instant Quest Text, Auto Selfcast and others will be set."] = nil, + ["|cff33ffccChat: \"Channels\"|r\n\nDo you want me to setup the chat channels of your chatframes?\nThis would set important or personal messages to the left chat\nand world channels and lootinformation to the right chat."] = nil, + ["|cff33ffccChat: \"Layout\"|r\n\nDo you want me to adjust the layout of your chatframes?\nThis would make sure, that every window is placed on its dedicated position."] = nil, + ["|cff33ffccChat: \"Loot & Spam\"|r\n\nDo you want me to create and manage a specific Chatframe called \"Loot & Spam\"?\nThis chat will display world channels, loot information and miscellaneous messages,\nthat would otherwise clutter your main chatframe."] = nil, + ["|cff33ffccKeybind Mode|r\nThis mode allows you to bind keyboard shortcuts to your actionbars.\nBy hovering a button with your cursor and pressing a key, the key will be assigned to that button.\nHit Escape on a button to remove bindings.\n\nPress Escape or click on an empty area to leave the keybind mode."] = nil, + ["|cff33ffccUnlock Mode|r\nThis mode allows you to move frames by dragging them using the mouse cursor. Frames can be scaled by scrolling up and down.\nTo scale multiple frames at once (eg. raidframes), hold down the shift key while scrolling. Click into an empty space to go back to the pfUI menu."] = nil, + ["|cffff5555EVERYTHING"] = nil, + ["Channeling Color"] = nil, + ["Chat Background Color"] = nil, + ["Chat Border Color"] = nil, + ["Chat Border Size"] = nil, + ["Chat"] = nil, + ["CleanUp"] = nil, + ["Click Action"] = nil, + ["Clickcast Spells"] = nil, + ["Close"] = nil, + ["Combat"] = nil, + ["Combopoint Size"] = nil, + ["Configuration"] = nil, + ["Cooldown Color (Days)"] = nil, + ["Cooldown Color (Hours)"] = nil, + ["Cooldown Color (Less than 3 Sec)"] = nil, + ["Cooldown Color (Minutes)"] = nil, + ["Cooldown Color (Seconds)"] = nil, + ["Cooldown"] = nil, + ["Cooldown Text Font Size"] = nil, + ["Cooldown Text Threshold"] = nil, + ["Create Profile"] = nil, + ["Ctrl-Click Action"] = nil, + ["Custom Health Bar Background Color"] = nil, + ["Custom Health Bar Color"] = nil, + ["Custom Transparency"] = nil, + ["Debuff Limit"] = nil, + ["Debuff Position"] = nil, + ["Debuff Size"] = nil, + ["Debuffs Per Row"] = nil, + ["Delete profile"] = nil, + ["Delete / Reset"] = nil, + ["Disable All UIErrors"] = nil, + ["Disable Blizzard Castbar"] = nil, + ["Disable Item Quality Color For \"Common\" Items"] = nil, + ["Disable Loot Confirmation Dialog (Without Group)"] = nil, + ["Disable Minimap Buffs"] = nil, + ["Disable Minimap Weapon Buffs"] = nil, + ["Disable Module"] = nil, + ["Disable pfUI Player Castbar"] = nil, + ["Disable pfUI Target Castbar"] = nil, + ["Disable pfUI Unit Frames"] = nil, + ["Display Focus Frame"] = nil, + ["Display Group Frames"] = nil, + ["Display Group Pet Frames"] = nil, + ["Display Group Target Frames"] = nil, + ["Display Pet Frame"] = nil, + ["Display Player Frame"] = nil, + ["Display Raid Frames"] = nil, + ["Display Target Frame"] = nil, + ["Display Target of Target Frame"] = nil, + ["Do you really want to reset |cffffaaaaEVERYTHING|r?\n\nThis will reset:\n - Current Configuration\n - Current Frame Positions\n - Firstrun Wizard\n - Addon Cache\n - Saved Profiles"] = nil, + ["Do you really want to reset the Cache?"] = nil, + ["Do you really want to reset the Firstrun Wizard Settings?"] = nil, + ["Do you really want to reset your configuration?\nThis also includes frame positions"] = nil, + ["DPSMate"] = nil, + ["Enable 24h Clock"] = nil, + ["Enable 2D Portraits As Fallback"] = nil, + ["Enable Action Bar Backgrounds"] = nil, + ["Enable Autohide For BarActionMain"] = nil, + ["Enable Autohide For BarBottomLeft"] = nil, + ["Enable Autohide For BarBottomRight"] = nil, + ["Enable Autohide For BarPet"] = nil, + ["Enable Autohide For BarRight"] = nil, + ["Enable Autohide For BarShapeShift"] = nil, + ["Enable Autohide For BarTwoRight"] = nil, + ["Enable Auto-Resize Loot Frame"] = nil, + ["Enable Buff Indicators"] = nil, + ["Enable Castbars"] = nil, + ["Enable Chat Dock"] = nil, + ["Enable Chat Fade"] = nil, + ["Enable Class Color in Text"] = nil, + ["Enable Class Colors"] = nil, + ["Enable Class Colors On Enemies"] = nil, + ["Enable Class Colors On Friends"] = nil, + ["Enable Clickcast"] = nil, + ["Enable Clickthrough"] = nil, + ["Enable Combat Glow Effects On Group Frames"] = nil, + ["Enable Combat Glow Effects On Screen Edges"] = nil, + ["Enable Combat Glow Effects On Unit Frames"] = nil, + ["Enable Custom Color Health Bar Background"] = nil, + ["Enable Custom Color Health Bars"] = nil, + ["Enable Custom Colors"] = nil, + ["Enable Custom Incoming Whispers Layout"] = nil, + ["Enable Debuff Indicators"] = nil, + ["Enable Debuffs"] = nil, + ["Enable Energy Ticks"] = nil, + ["Enable Extended Guild Information"] = nil, + ["Enable Health Color in Text"] = nil, + ["Enable Item Quality Color For Equipment Only"] = nil, + ["Enable Level Color in Text"] = nil, + ["Enable \"Loot & Spam\" Chat Window"] = nil, + ["Enable Micro Bar"] = nil, + ["Enable Mouselook With Right Click"] = nil, + ["Enable Offscreen Frame Positions"] = nil, + ["Enable Pastel Colors"] = nil, + ["Enable Pixel Perfect (Native Resolution)"] = nil, + ["Enable Power Color in Text"] = nil, + ["Enable Range Based Auto Paging (Hunter)"] = nil, + ["Enable Range Display On Hotkeys"] = nil, + ["Enable Range Fading"] = nil, + ["Enable Region Compatible Font"] = nil, + ["Enable Right Chat Window"] = nil, + ["Enable Single Line UIErrors"] = nil, + ["Enable Spellname"] = nil, + ["Enable Sticky Chat"] = nil, + ["Enable Target Switch Animation"] = nil, + ["Enable Timestamps"] = nil, + ["Enable URL Detection"] = nil, + ["Enable Zone Text On Minimap Mouseover"] = nil, + ["Firstrun"] = nil, + ["Focus"] = nil, + ["General"] = nil, + ["Global Border Size"] = nil, + ["Group Frames"] = nil, + ["Group"] = nil, + ["Group-Pet"] = nil, + ["Group-Target"] = nil, + ["HealComm"] = nil, + ["Healthbar Animation Speed"] = nil, + ["Healthbar Height"] = nil, + ["Health Bar Height"] = nil, + ["Health Bar Width"] = nil, + ["Hide Channel Names"] = nil, + ["Hide Group Frames When In A Raid"] = nil, + ["Hoverbind"] = nil, + ["Icon Size"] = nil, + ["Incoming Whispers Color"] = nil, + ["Inputbox Height"] = nil, + ["Inputbox Width"] = nil, + ["Invert Health Bar"] = nil, + ["is not allowed in profile name"] = nil, + ["KLH Threat Meter"] = nil, + ["Layout"] = nil, + ["Left Actionbar (BottomRight)"] = nil, + ["Left Chat Height"] = nil, + ["Left Chat Width"] = nil, + ["Left Panel: Center"] = nil, + ["Left Panel: Left"] = nil, + ["Left Panel: Right"] = nil, + ["Left Text"] = nil, + ["Load profile"] = nil, + ["Loot"] = nil, + ["Main Actionbar (ActionMain)"] = nil, + ["Minimap"] = nil, + ["Modules"] = nil, + ["Nameplates"] = nil, + ["Nameplate Width"] = nil, + ["Only Show Indicators for Dispellable Debuffs"] = nil, + ["Other Panel: Minimap"] = nil, + ["Panel Border Size"] = nil, + ["Panel"] = nil, + ["Pet Bar (BarPet)"] = nil, + ["Pet"] = nil, + ["pfUI Settings"] = nil, + ["Player"] = nil, + ["Please enter a name for the new profile.\nExisting profiles sharing the same name will be overwritten."] = nil, + ["Portrait Alpha"] = nil, + ["Portrait Position"] = nil, + ["Power Bar Height"] = nil, + ["Profile"] = nil, + ["Raid Icon Size"] = nil, + ["Raid"] = nil, + ["Range Display Color"] = nil, + ["Right Actionbar (Right)"] = nil, + ["Right Chat Height"] = nil, + ["Right Chat Width"] = nil, + ["Right Click Auto Attack Threshold"] = nil, + ["Right Panel: Center"] = nil, + ["Right Panel: Left"] = nil, + ["Right Panel: Right"] = nil, + ["Right Text"] = nil, + ["Save current settings to profile"] = nil, + ["Save profile"] = nil, + ["Scrolling Combat Text Font"] = nil, + ["Second Actionbar (BottomLeft)"] = nil, + ["Seconds Before Chat Fade"] = nil, + ["Seconds Until Action Bars Autohide"] = nil, + ["Select profile"] = nil, + ["Settings"] = nil, + ["Shapeshift Bar (BarShapeShift)"] = nil, + ["Shift-Click Action"] = nil, + ["Show Health Points"] = nil, + ["Show Hotkey Text"] = nil, + ["Show Hots as Buff Indicators"] = nil, + ["Show Hots of all Classes"] = nil, + ["Show Macro Text"] = nil, + ["Show Players Only"] = nil, + ["Show Procs as Buff Indicators"] = nil, + ["Show Procs of all Classes"] = nil, + ["Show PvP Icon"] = nil, + ["Some settings need to reload the UI to take effect.\nDo you want to reloadUI now?"] = nil, + ["Spacing"] = nil, + ["Standard Text Font"] = nil, + ["Standard Text Font Size"] = nil, + ["Target"] = nil, + ["Target-Target"] = nil, + ["Thirdparty"] = nil, + ["Timestamp Brackets"] = nil, + ["Timestamp Color"] = nil, + ["Timestamp Format"] = nil, + ["Tooltip"] = nil, + ["Tooltip Position"] = nil, + ["Unit Frame Border Size"] = nil, + ["Unit Frame Layout"] = nil, + ["Unit Frames"] = nil, + ["Unit Frame Text Font"] = nil, + ["Unit Frame Text Size"] = nil, + ["Unlock"] = nil, + ["Use Unit Fonts"] = nil, + ["Vertical Actionbar (TwoRight)"] = nil, + ["Vertical Position"] = nil, + ["Welcome to |cff33ffccpf|cffffffffUI|r!\n\nI'm the first run wizzard that will guide you through some basic configuration.\nIf you're lazy, feel free to hit the \"Use Defaults\" button. If you whish to run this\ndialog again, go to the settings and hit the \"Reset Firstrun\" button.\n\nVisit |cff33ffcchttp://shagu.org|r to check for the latest version."] = nil, + ["WIM"] = nil, +} diff --git a/env/translations_enGB.lua b/env/translations_enGB.lua new file mode 100644 index 00000000..24601805 --- /dev/null +++ b/env/translations_enGB.lua @@ -0,0 +1,249 @@ +pfUI_translation["enGB"] = { + ["40y-Range Check Interval"] = nil, + ["Abbreviate Numbers (4200 -> 4.2k)"] = nil, + ["Action Bar Border Size"] = nil, + ["Actionbar"] = nil, + ["Aggressive 40y-Range Check (Will break stuff)"] = nil, + ["Alt-Click Action"] = nil, + ["Always Show Experience And Reputation Bar"] = nil, + ["Always Show Extended Vendor Values"] = nil, + ["Always Show Item Comparison"] = nil, + ["Always Use 2D Portraits"] = nil, + ["Appearance"] = nil, + ["Autohide"] = nil, + ["Auto Repair Items"] = nil, + ["Auto Sell Grey Items"] = nil, + ["Background Color"] = nil, + ["Bags & Bank"] = nil, + ["Bags Border Size"] = nil, + ["Border Color"] = nil, + ["Buff Limit"] = nil, + ["Buff Position"] = nil, + ["Buff Size"] = nil, + ["Buffs Per Row"] = nil, + ["Cache"] = nil, + ["Castbar Height"] = nil, + ["Castbar"] = nil, + ["Casting Color"] = nil, + ["Center Text"] = nil, + ["|cff33ffccBlizzard: \"Interface Options\"|r\n\nDo you want me to setup the recommended blizzard UI settings?\nThis will enable settings that can be found in the Interface section of your client.\nOptions like Buff Durations, Instant Quest Text, Auto Selfcast and others will be set."] = nil, + ["|cff33ffccChat: \"Channels\"|r\n\nDo you want me to setup the chat channels of your chatframes?\nThis would set important or personal messages to the left chat\nand world channels and lootinformation to the right chat."] = nil, + ["|cff33ffccChat: \"Layout\"|r\n\nDo you want me to adjust the layout of your chatframes?\nThis would make sure, that every window is placed on its dedicated position."] = nil, + ["|cff33ffccChat: \"Loot & Spam\"|r\n\nDo you want me to create and manage a specific Chatframe called \"Loot & Spam\"?\nThis chat will display world channels, loot information and miscellaneous messages,\nthat would otherwise clutter your main chatframe."] = nil, + ["|cff33ffccKeybind Mode|r\nThis mode allows you to bind keyboard shortcuts to your actionbars.\nBy hovering a button with your cursor and pressing a key, the key will be assigned to that button.\nHit Escape on a button to remove bindings.\n\nPress Escape or click on an empty area to leave the keybind mode."] = nil, + ["|cff33ffccUnlock Mode|r\nThis mode allows you to move frames by dragging them using the mouse cursor. Frames can be scaled by scrolling up and down.\nTo scale multiple frames at once (eg. raidframes), hold down the shift key while scrolling. Click into an empty space to go back to the pfUI menu."] = nil, + ["|cffff5555EVERYTHING"] = nil, + ["Channeling Color"] = nil, + ["Chat Background Color"] = nil, + ["Chat Border Color"] = nil, + ["Chat Border Size"] = nil, + ["Chat"] = nil, + ["CleanUp"] = nil, + ["Click Action"] = nil, + ["Clickcast Spells"] = nil, + ["Close"] = nil, + ["Combat"] = nil, + ["Combopoint Size"] = nil, + ["Configuration"] = nil, + ["Cooldown Color (Days)"] = nil, + ["Cooldown Color (Hours)"] = nil, + ["Cooldown Color (Less than 3 Sec)"] = nil, + ["Cooldown Color (Minutes)"] = nil, + ["Cooldown Color (Seconds)"] = nil, + ["Cooldown"] = nil, + ["Cooldown Text Font Size"] = nil, + ["Cooldown Text Threshold"] = nil, + ["Create Profile"] = nil, + ["Ctrl-Click Action"] = nil, + ["Custom Health Bar Background Color"] = nil, + ["Custom Health Bar Color"] = nil, + ["Custom Transparency"] = nil, + ["Debuff Limit"] = nil, + ["Debuff Position"] = nil, + ["Debuff Size"] = nil, + ["Debuffs Per Row"] = nil, + ["Delete profile"] = nil, + ["Delete / Reset"] = nil, + ["Disable All UIErrors"] = nil, + ["Disable Blizzard Castbar"] = nil, + ["Disable Item Quality Color For \"Common\" Items"] = nil, + ["Disable Loot Confirmation Dialog (Without Group)"] = nil, + ["Disable Minimap Buffs"] = nil, + ["Disable Minimap Weapon Buffs"] = nil, + ["Disable Module"] = nil, + ["Disable pfUI Player Castbar"] = nil, + ["Disable pfUI Target Castbar"] = nil, + ["Disable pfUI Unit Frames"] = nil, + ["Display Focus Frame"] = nil, + ["Display Group Frames"] = nil, + ["Display Group Pet Frames"] = nil, + ["Display Group Target Frames"] = nil, + ["Display Pet Frame"] = nil, + ["Display Player Frame"] = nil, + ["Display Raid Frames"] = nil, + ["Display Target Frame"] = nil, + ["Display Target of Target Frame"] = nil, + ["Do you really want to reset |cffffaaaaEVERYTHING|r?\n\nThis will reset:\n - Current Configuration\n - Current Frame Positions\n - Firstrun Wizard\n - Addon Cache\n - Saved Profiles"] = nil, + ["Do you really want to reset the Cache?"] = nil, + ["Do you really want to reset the Firstrun Wizard Settings?"] = nil, + ["Do you really want to reset your configuration?\nThis also includes frame positions"] = nil, + ["DPSMate"] = nil, + ["Enable 24h Clock"] = nil, + ["Enable 2D Portraits As Fallback"] = nil, + ["Enable Action Bar Backgrounds"] = nil, + ["Enable Autohide For BarActionMain"] = nil, + ["Enable Autohide For BarBottomLeft"] = nil, + ["Enable Autohide For BarBottomRight"] = nil, + ["Enable Autohide For BarPet"] = nil, + ["Enable Autohide For BarRight"] = nil, + ["Enable Autohide For BarShapeShift"] = nil, + ["Enable Autohide For BarTwoRight"] = nil, + ["Enable Auto-Resize Loot Frame"] = nil, + ["Enable Buff Indicators"] = nil, + ["Enable Castbars"] = nil, + ["Enable Chat Dock"] = nil, + ["Enable Chat Fade"] = nil, + ["Enable Class Color in Text"] = nil, + ["Enable Class Colors"] = nil, + ["Enable Class Colors On Enemies"] = nil, + ["Enable Class Colors On Friends"] = nil, + ["Enable Clickcast"] = nil, + ["Enable Clickthrough"] = nil, + ["Enable Combat Glow Effects On Group Frames"] = nil, + ["Enable Combat Glow Effects On Screen Edges"] = nil, + ["Enable Combat Glow Effects On Unit Frames"] = nil, + ["Enable Custom Color Health Bar Background"] = nil, + ["Enable Custom Color Health Bars"] = nil, + ["Enable Custom Colors"] = nil, + ["Enable Custom Incoming Whispers Layout"] = nil, + ["Enable Debuff Indicators"] = nil, + ["Enable Debuffs"] = nil, + ["Enable Energy Ticks"] = nil, + ["Enable Extended Guild Information"] = nil, + ["Enable Health Color in Text"] = nil, + ["Enable Item Quality Color For Equipment Only"] = nil, + ["Enable Level Color in Text"] = nil, + ["Enable \"Loot & Spam\" Chat Window"] = nil, + ["Enable Micro Bar"] = nil, + ["Enable Mouselook With Right Click"] = nil, + ["Enable Offscreen Frame Positions"] = nil, + ["Enable Pastel Colors"] = nil, + ["Enable Pixel Perfect (Native Resolution)"] = nil, + ["Enable Power Color in Text"] = nil, + ["Enable Range Based Auto Paging (Hunter)"] = nil, + ["Enable Range Display On Hotkeys"] = nil, + ["Enable Range Fading"] = nil, + ["Enable Region Compatible Font"] = nil, + ["Enable Right Chat Window"] = nil, + ["Enable Single Line UIErrors"] = nil, + ["Enable Spellname"] = nil, + ["Enable Sticky Chat"] = nil, + ["Enable Target Switch Animation"] = nil, + ["Enable Timestamps"] = nil, + ["Enable URL Detection"] = nil, + ["Enable Zone Text On Minimap Mouseover"] = nil, + ["Firstrun"] = nil, + ["Focus"] = nil, + ["General"] = nil, + ["Global Border Size"] = nil, + ["Group Frames"] = nil, + ["Group"] = nil, + ["Group-Pet"] = nil, + ["Group-Target"] = nil, + ["HealComm"] = nil, + ["Healthbar Animation Speed"] = nil, + ["Healthbar Height"] = nil, + ["Health Bar Height"] = nil, + ["Health Bar Width"] = nil, + ["Hide Channel Names"] = nil, + ["Hide Group Frames When In A Raid"] = nil, + ["Hoverbind"] = nil, + ["Icon Size"] = nil, + ["Incoming Whispers Color"] = nil, + ["Inputbox Height"] = nil, + ["Inputbox Width"] = nil, + ["Invert Health Bar"] = nil, + ["is not allowed in profile name"] = nil, + ["KLH Threat Meter"] = nil, + ["Layout"] = nil, + ["Left Actionbar (BottomRight)"] = nil, + ["Left Chat Height"] = nil, + ["Left Chat Width"] = nil, + ["Left Panel: Center"] = nil, + ["Left Panel: Left"] = nil, + ["Left Panel: Right"] = nil, + ["Left Text"] = nil, + ["Load profile"] = nil, + ["Loot"] = nil, + ["Main Actionbar (ActionMain)"] = nil, + ["Minimap"] = nil, + ["Modules"] = nil, + ["Nameplates"] = nil, + ["Nameplate Width"] = nil, + ["Only Show Indicators for Dispellable Debuffs"] = nil, + ["Other Panel: Minimap"] = nil, + ["Panel Border Size"] = nil, + ["Panel"] = nil, + ["Pet Bar (BarPet)"] = nil, + ["Pet"] = nil, + ["pfUI Settings"] = nil, + ["Player"] = nil, + ["Please enter a name for the new profile.\nExisting profiles sharing the same name will be overwritten."] = nil, + ["Portrait Alpha"] = nil, + ["Portrait Position"] = nil, + ["Power Bar Height"] = nil, + ["Profile"] = nil, + ["Raid Icon Size"] = nil, + ["Raid"] = nil, + ["Range Display Color"] = nil, + ["Right Actionbar (Right)"] = nil, + ["Right Chat Height"] = nil, + ["Right Chat Width"] = nil, + ["Right Click Auto Attack Threshold"] = nil, + ["Right Panel: Center"] = nil, + ["Right Panel: Left"] = nil, + ["Right Panel: Right"] = nil, + ["Right Text"] = nil, + ["Save current settings to profile"] = nil, + ["Save profile"] = nil, + ["Scrolling Combat Text Font"] = nil, + ["Second Actionbar (BottomLeft)"] = nil, + ["Seconds Before Chat Fade"] = nil, + ["Seconds Until Action Bars Autohide"] = nil, + ["Select profile"] = nil, + ["Settings"] = nil, + ["Shapeshift Bar (BarShapeShift)"] = nil, + ["Shift-Click Action"] = nil, + ["Show Health Points"] = nil, + ["Show Hotkey Text"] = nil, + ["Show Hots as Buff Indicators"] = nil, + ["Show Hots of all Classes"] = nil, + ["Show Macro Text"] = nil, + ["Show Players Only"] = nil, + ["Show Procs as Buff Indicators"] = nil, + ["Show Procs of all Classes"] = nil, + ["Show PvP Icon"] = nil, + ["Some settings need to reload the UI to take effect.\nDo you want to reloadUI now?"] = nil, + ["Spacing"] = nil, + ["Standard Text Font"] = nil, + ["Standard Text Font Size"] = nil, + ["Target"] = nil, + ["Target-Target"] = nil, + ["Thirdparty"] = nil, + ["Timestamp Brackets"] = nil, + ["Timestamp Color"] = nil, + ["Timestamp Format"] = nil, + ["Tooltip"] = nil, + ["Tooltip Position"] = nil, + ["Unit Frame Border Size"] = nil, + ["Unit Frame Layout"] = nil, + ["Unit Frames"] = nil, + ["Unit Frame Text Font"] = nil, + ["Unit Frame Text Size"] = nil, + ["Unlock"] = nil, + ["Use Unit Fonts"] = nil, + ["Vertical Actionbar (TwoRight)"] = nil, + ["Vertical Position"] = nil, + ["Welcome to |cff33ffccpf|cffffffffUI|r!\n\nI'm the first run wizzard that will guide you through some basic configuration.\nIf you're lazy, feel free to hit the \"Use Defaults\" button. If you whish to run this\ndialog again, go to the settings and hit the \"Reset Firstrun\" button.\n\nVisit |cff33ffcchttp://shagu.org|r to check for the latest version."] = nil, + ["WIM"] = nil, +} diff --git a/env/translations_frFR.lua b/env/translations_frFR.lua new file mode 100644 index 00000000..5108884b --- /dev/null +++ b/env/translations_frFR.lua @@ -0,0 +1,249 @@ +pfUI_translation["frFR"] = { + ["40y-Range Check Interval"] = nil, + ["Abbreviate Numbers (4200 -> 4.2k)"] = nil, + ["Action Bar Border Size"] = nil, + ["Actionbar"] = nil, + ["Aggressive 40y-Range Check (Will break stuff)"] = nil, + ["Alt-Click Action"] = nil, + ["Always Show Experience And Reputation Bar"] = nil, + ["Always Show Extended Vendor Values"] = nil, + ["Always Show Item Comparison"] = nil, + ["Always Use 2D Portraits"] = nil, + ["Appearance"] = nil, + ["Autohide"] = nil, + ["Auto Repair Items"] = nil, + ["Auto Sell Grey Items"] = nil, + ["Background Color"] = nil, + ["Bags & Bank"] = nil, + ["Bags Border Size"] = nil, + ["Border Color"] = nil, + ["Buff Limit"] = nil, + ["Buff Position"] = nil, + ["Buff Size"] = nil, + ["Buffs Per Row"] = nil, + ["Cache"] = nil, + ["Castbar Height"] = nil, + ["Castbar"] = nil, + ["Casting Color"] = nil, + ["Center Text"] = nil, + ["|cff33ffccBlizzard: \"Interface Options\"|r\n\nDo you want me to setup the recommended blizzard UI settings?\nThis will enable settings that can be found in the Interface section of your client.\nOptions like Buff Durations, Instant Quest Text, Auto Selfcast and others will be set."] = nil, + ["|cff33ffccChat: \"Channels\"|r\n\nDo you want me to setup the chat channels of your chatframes?\nThis would set important or personal messages to the left chat\nand world channels and lootinformation to the right chat."] = nil, + ["|cff33ffccChat: \"Layout\"|r\n\nDo you want me to adjust the layout of your chatframes?\nThis would make sure, that every window is placed on its dedicated position."] = nil, + ["|cff33ffccChat: \"Loot & Spam\"|r\n\nDo you want me to create and manage a specific Chatframe called \"Loot & Spam\"?\nThis chat will display world channels, loot information and miscellaneous messages,\nthat would otherwise clutter your main chatframe."] = nil, + ["|cff33ffccKeybind Mode|r\nThis mode allows you to bind keyboard shortcuts to your actionbars.\nBy hovering a button with your cursor and pressing a key, the key will be assigned to that button.\nHit Escape on a button to remove bindings.\n\nPress Escape or click on an empty area to leave the keybind mode."] = nil, + ["|cff33ffccUnlock Mode|r\nThis mode allows you to move frames by dragging them using the mouse cursor. Frames can be scaled by scrolling up and down.\nTo scale multiple frames at once (eg. raidframes), hold down the shift key while scrolling. Click into an empty space to go back to the pfUI menu."] = nil, + ["|cffff5555EVERYTHING"] = nil, + ["Channeling Color"] = nil, + ["Chat Background Color"] = nil, + ["Chat Border Color"] = nil, + ["Chat Border Size"] = nil, + ["Chat"] = nil, + ["CleanUp"] = nil, + ["Click Action"] = nil, + ["Clickcast Spells"] = nil, + ["Close"] = nil, + ["Combat"] = nil, + ["Combopoint Size"] = nil, + ["Configuration"] = nil, + ["Cooldown Color (Days)"] = nil, + ["Cooldown Color (Hours)"] = nil, + ["Cooldown Color (Less than 3 Sec)"] = nil, + ["Cooldown Color (Minutes)"] = nil, + ["Cooldown Color (Seconds)"] = nil, + ["Cooldown"] = nil, + ["Cooldown Text Font Size"] = nil, + ["Cooldown Text Threshold"] = nil, + ["Create Profile"] = nil, + ["Ctrl-Click Action"] = nil, + ["Custom Health Bar Background Color"] = nil, + ["Custom Health Bar Color"] = nil, + ["Custom Transparency"] = nil, + ["Debuff Limit"] = nil, + ["Debuff Position"] = nil, + ["Debuff Size"] = nil, + ["Debuffs Per Row"] = nil, + ["Delete profile"] = nil, + ["Delete / Reset"] = nil, + ["Disable All UIErrors"] = nil, + ["Disable Blizzard Castbar"] = nil, + ["Disable Item Quality Color For \"Common\" Items"] = nil, + ["Disable Loot Confirmation Dialog (Without Group)"] = nil, + ["Disable Minimap Buffs"] = nil, + ["Disable Minimap Weapon Buffs"] = nil, + ["Disable Module"] = nil, + ["Disable pfUI Player Castbar"] = nil, + ["Disable pfUI Target Castbar"] = nil, + ["Disable pfUI Unit Frames"] = nil, + ["Display Focus Frame"] = nil, + ["Display Group Frames"] = nil, + ["Display Group Pet Frames"] = nil, + ["Display Group Target Frames"] = nil, + ["Display Pet Frame"] = nil, + ["Display Player Frame"] = nil, + ["Display Raid Frames"] = nil, + ["Display Target Frame"] = nil, + ["Display Target of Target Frame"] = nil, + ["Do you really want to reset |cffffaaaaEVERYTHING|r?\n\nThis will reset:\n - Current Configuration\n - Current Frame Positions\n - Firstrun Wizard\n - Addon Cache\n - Saved Profiles"] = nil, + ["Do you really want to reset the Cache?"] = nil, + ["Do you really want to reset the Firstrun Wizard Settings?"] = nil, + ["Do you really want to reset your configuration?\nThis also includes frame positions"] = nil, + ["DPSMate"] = nil, + ["Enable 24h Clock"] = nil, + ["Enable 2D Portraits As Fallback"] = nil, + ["Enable Action Bar Backgrounds"] = nil, + ["Enable Autohide For BarActionMain"] = nil, + ["Enable Autohide For BarBottomLeft"] = nil, + ["Enable Autohide For BarBottomRight"] = nil, + ["Enable Autohide For BarPet"] = nil, + ["Enable Autohide For BarRight"] = nil, + ["Enable Autohide For BarShapeShift"] = nil, + ["Enable Autohide For BarTwoRight"] = nil, + ["Enable Auto-Resize Loot Frame"] = nil, + ["Enable Buff Indicators"] = nil, + ["Enable Castbars"] = nil, + ["Enable Chat Dock"] = nil, + ["Enable Chat Fade"] = nil, + ["Enable Class Color in Text"] = nil, + ["Enable Class Colors"] = nil, + ["Enable Class Colors On Enemies"] = nil, + ["Enable Class Colors On Friends"] = nil, + ["Enable Clickcast"] = nil, + ["Enable Clickthrough"] = nil, + ["Enable Combat Glow Effects On Group Frames"] = nil, + ["Enable Combat Glow Effects On Screen Edges"] = nil, + ["Enable Combat Glow Effects On Unit Frames"] = nil, + ["Enable Custom Color Health Bar Background"] = nil, + ["Enable Custom Color Health Bars"] = nil, + ["Enable Custom Colors"] = nil, + ["Enable Custom Incoming Whispers Layout"] = nil, + ["Enable Debuff Indicators"] = nil, + ["Enable Debuffs"] = nil, + ["Enable Energy Ticks"] = nil, + ["Enable Extended Guild Information"] = nil, + ["Enable Health Color in Text"] = nil, + ["Enable Item Quality Color For Equipment Only"] = nil, + ["Enable Level Color in Text"] = nil, + ["Enable \"Loot & Spam\" Chat Window"] = nil, + ["Enable Micro Bar"] = nil, + ["Enable Mouselook With Right Click"] = nil, + ["Enable Offscreen Frame Positions"] = nil, + ["Enable Pastel Colors"] = nil, + ["Enable Pixel Perfect (Native Resolution)"] = nil, + ["Enable Power Color in Text"] = nil, + ["Enable Range Based Auto Paging (Hunter)"] = nil, + ["Enable Range Display On Hotkeys"] = nil, + ["Enable Range Fading"] = nil, + ["Enable Region Compatible Font"] = nil, + ["Enable Right Chat Window"] = nil, + ["Enable Single Line UIErrors"] = nil, + ["Enable Spellname"] = nil, + ["Enable Sticky Chat"] = nil, + ["Enable Target Switch Animation"] = nil, + ["Enable Timestamps"] = nil, + ["Enable URL Detection"] = nil, + ["Enable Zone Text On Minimap Mouseover"] = nil, + ["Firstrun"] = nil, + ["Focus"] = nil, + ["General"] = nil, + ["Global Border Size"] = nil, + ["Group Frames"] = nil, + ["Group"] = nil, + ["Group-Pet"] = nil, + ["Group-Target"] = nil, + ["HealComm"] = nil, + ["Healthbar Animation Speed"] = nil, + ["Healthbar Height"] = nil, + ["Health Bar Height"] = nil, + ["Health Bar Width"] = nil, + ["Hide Channel Names"] = nil, + ["Hide Group Frames When In A Raid"] = nil, + ["Hoverbind"] = nil, + ["Icon Size"] = nil, + ["Incoming Whispers Color"] = nil, + ["Inputbox Height"] = nil, + ["Inputbox Width"] = nil, + ["Invert Health Bar"] = nil, + ["is not allowed in profile name"] = nil, + ["KLH Threat Meter"] = nil, + ["Layout"] = nil, + ["Left Actionbar (BottomRight)"] = nil, + ["Left Chat Height"] = nil, + ["Left Chat Width"] = nil, + ["Left Panel: Center"] = nil, + ["Left Panel: Left"] = nil, + ["Left Panel: Right"] = nil, + ["Left Text"] = nil, + ["Load profile"] = nil, + ["Loot"] = nil, + ["Main Actionbar (ActionMain)"] = nil, + ["Minimap"] = nil, + ["Modules"] = nil, + ["Nameplates"] = nil, + ["Nameplate Width"] = nil, + ["Only Show Indicators for Dispellable Debuffs"] = nil, + ["Other Panel: Minimap"] = nil, + ["Panel Border Size"] = nil, + ["Panel"] = nil, + ["Pet Bar (BarPet)"] = nil, + ["Pet"] = nil, + ["pfUI Settings"] = nil, + ["Player"] = nil, + ["Please enter a name for the new profile.\nExisting profiles sharing the same name will be overwritten."] = nil, + ["Portrait Alpha"] = nil, + ["Portrait Position"] = nil, + ["Power Bar Height"] = nil, + ["Profile"] = nil, + ["Raid Icon Size"] = nil, + ["Raid"] = nil, + ["Range Display Color"] = nil, + ["Right Actionbar (Right)"] = nil, + ["Right Chat Height"] = nil, + ["Right Chat Width"] = nil, + ["Right Click Auto Attack Threshold"] = nil, + ["Right Panel: Center"] = nil, + ["Right Panel: Left"] = nil, + ["Right Panel: Right"] = nil, + ["Right Text"] = nil, + ["Save current settings to profile"] = nil, + ["Save profile"] = nil, + ["Scrolling Combat Text Font"] = nil, + ["Second Actionbar (BottomLeft)"] = nil, + ["Seconds Before Chat Fade"] = nil, + ["Seconds Until Action Bars Autohide"] = nil, + ["Select profile"] = nil, + ["Settings"] = nil, + ["Shapeshift Bar (BarShapeShift)"] = nil, + ["Shift-Click Action"] = nil, + ["Show Health Points"] = nil, + ["Show Hotkey Text"] = nil, + ["Show Hots as Buff Indicators"] = nil, + ["Show Hots of all Classes"] = nil, + ["Show Macro Text"] = nil, + ["Show Players Only"] = nil, + ["Show Procs as Buff Indicators"] = nil, + ["Show Procs of all Classes"] = nil, + ["Show PvP Icon"] = nil, + ["Some settings need to reload the UI to take effect.\nDo you want to reloadUI now?"] = nil, + ["Spacing"] = nil, + ["Standard Text Font"] = nil, + ["Standard Text Font Size"] = nil, + ["Target"] = nil, + ["Target-Target"] = nil, + ["Thirdparty"] = nil, + ["Timestamp Brackets"] = nil, + ["Timestamp Color"] = nil, + ["Timestamp Format"] = nil, + ["Tooltip"] = nil, + ["Tooltip Position"] = nil, + ["Unit Frame Border Size"] = nil, + ["Unit Frame Layout"] = nil, + ["Unit Frames"] = nil, + ["Unit Frame Text Font"] = nil, + ["Unit Frame Text Size"] = nil, + ["Unlock"] = nil, + ["Use Unit Fonts"] = nil, + ["Vertical Actionbar (TwoRight)"] = nil, + ["Vertical Position"] = nil, + ["Welcome to |cff33ffccpf|cffffffffUI|r!\n\nI'm the first run wizzard that will guide you through some basic configuration.\nIf you're lazy, feel free to hit the \"Use Defaults\" button. If you whish to run this\ndialog again, go to the settings and hit the \"Reset Firstrun\" button.\n\nVisit |cff33ffcchttp://shagu.org|r to check for the latest version."] = nil, + ["WIM"] = nil, +} diff --git a/env/translations_koKR.lua b/env/translations_koKR.lua new file mode 100644 index 00000000..33a06179 --- /dev/null +++ b/env/translations_koKR.lua @@ -0,0 +1,249 @@ +pfUI_translation["koKR"] = { + ["40y-Range Check Interval"] = nil, + ["Abbreviate Numbers (4200 -> 4.2k)"] = nil, + ["Action Bar Border Size"] = nil, + ["Actionbar"] = nil, + ["Aggressive 40y-Range Check (Will break stuff)"] = nil, + ["Alt-Click Action"] = nil, + ["Always Show Experience And Reputation Bar"] = nil, + ["Always Show Extended Vendor Values"] = nil, + ["Always Show Item Comparison"] = nil, + ["Always Use 2D Portraits"] = nil, + ["Appearance"] = nil, + ["Autohide"] = nil, + ["Auto Repair Items"] = nil, + ["Auto Sell Grey Items"] = nil, + ["Background Color"] = nil, + ["Bags & Bank"] = nil, + ["Bags Border Size"] = nil, + ["Border Color"] = nil, + ["Buff Limit"] = nil, + ["Buff Position"] = nil, + ["Buff Size"] = nil, + ["Buffs Per Row"] = nil, + ["Cache"] = nil, + ["Castbar Height"] = nil, + ["Castbar"] = nil, + ["Casting Color"] = nil, + ["Center Text"] = nil, + ["|cff33ffccBlizzard: \"Interface Options\"|r\n\nDo you want me to setup the recommended blizzard UI settings?\nThis will enable settings that can be found in the Interface section of your client.\nOptions like Buff Durations, Instant Quest Text, Auto Selfcast and others will be set."] = nil, + ["|cff33ffccChat: \"Channels\"|r\n\nDo you want me to setup the chat channels of your chatframes?\nThis would set important or personal messages to the left chat\nand world channels and lootinformation to the right chat."] = nil, + ["|cff33ffccChat: \"Layout\"|r\n\nDo you want me to adjust the layout of your chatframes?\nThis would make sure, that every window is placed on its dedicated position."] = nil, + ["|cff33ffccChat: \"Loot & Spam\"|r\n\nDo you want me to create and manage a specific Chatframe called \"Loot & Spam\"?\nThis chat will display world channels, loot information and miscellaneous messages,\nthat would otherwise clutter your main chatframe."] = nil, + ["|cff33ffccKeybind Mode|r\nThis mode allows you to bind keyboard shortcuts to your actionbars.\nBy hovering a button with your cursor and pressing a key, the key will be assigned to that button.\nHit Escape on a button to remove bindings.\n\nPress Escape or click on an empty area to leave the keybind mode."] = nil, + ["|cff33ffccUnlock Mode|r\nThis mode allows you to move frames by dragging them using the mouse cursor. Frames can be scaled by scrolling up and down.\nTo scale multiple frames at once (eg. raidframes), hold down the shift key while scrolling. Click into an empty space to go back to the pfUI menu."] = nil, + ["|cffff5555EVERYTHING"] = nil, + ["Channeling Color"] = nil, + ["Chat Background Color"] = nil, + ["Chat Border Color"] = nil, + ["Chat Border Size"] = nil, + ["Chat"] = nil, + ["CleanUp"] = nil, + ["Click Action"] = nil, + ["Clickcast Spells"] = nil, + ["Close"] = nil, + ["Combat"] = nil, + ["Combopoint Size"] = nil, + ["Configuration"] = nil, + ["Cooldown Color (Days)"] = nil, + ["Cooldown Color (Hours)"] = nil, + ["Cooldown Color (Less than 3 Sec)"] = nil, + ["Cooldown Color (Minutes)"] = nil, + ["Cooldown Color (Seconds)"] = nil, + ["Cooldown"] = nil, + ["Cooldown Text Font Size"] = nil, + ["Cooldown Text Threshold"] = nil, + ["Create Profile"] = nil, + ["Ctrl-Click Action"] = nil, + ["Custom Health Bar Background Color"] = nil, + ["Custom Health Bar Color"] = nil, + ["Custom Transparency"] = nil, + ["Debuff Limit"] = nil, + ["Debuff Position"] = nil, + ["Debuff Size"] = nil, + ["Debuffs Per Row"] = nil, + ["Delete profile"] = nil, + ["Delete / Reset"] = nil, + ["Disable All UIErrors"] = nil, + ["Disable Blizzard Castbar"] = nil, + ["Disable Item Quality Color For \"Common\" Items"] = nil, + ["Disable Loot Confirmation Dialog (Without Group)"] = nil, + ["Disable Minimap Buffs"] = nil, + ["Disable Minimap Weapon Buffs"] = nil, + ["Disable Module"] = nil, + ["Disable pfUI Player Castbar"] = nil, + ["Disable pfUI Target Castbar"] = nil, + ["Disable pfUI Unit Frames"] = nil, + ["Display Focus Frame"] = nil, + ["Display Group Frames"] = nil, + ["Display Group Pet Frames"] = nil, + ["Display Group Target Frames"] = nil, + ["Display Pet Frame"] = nil, + ["Display Player Frame"] = nil, + ["Display Raid Frames"] = nil, + ["Display Target Frame"] = nil, + ["Display Target of Target Frame"] = nil, + ["Do you really want to reset |cffffaaaaEVERYTHING|r?\n\nThis will reset:\n - Current Configuration\n - Current Frame Positions\n - Firstrun Wizard\n - Addon Cache\n - Saved Profiles"] = nil, + ["Do you really want to reset the Cache?"] = nil, + ["Do you really want to reset the Firstrun Wizard Settings?"] = nil, + ["Do you really want to reset your configuration?\nThis also includes frame positions"] = nil, + ["DPSMate"] = nil, + ["Enable 24h Clock"] = nil, + ["Enable 2D Portraits As Fallback"] = nil, + ["Enable Action Bar Backgrounds"] = nil, + ["Enable Autohide For BarActionMain"] = nil, + ["Enable Autohide For BarBottomLeft"] = nil, + ["Enable Autohide For BarBottomRight"] = nil, + ["Enable Autohide For BarPet"] = nil, + ["Enable Autohide For BarRight"] = nil, + ["Enable Autohide For BarShapeShift"] = nil, + ["Enable Autohide For BarTwoRight"] = nil, + ["Enable Auto-Resize Loot Frame"] = nil, + ["Enable Buff Indicators"] = nil, + ["Enable Castbars"] = nil, + ["Enable Chat Dock"] = nil, + ["Enable Chat Fade"] = nil, + ["Enable Class Color in Text"] = nil, + ["Enable Class Colors"] = nil, + ["Enable Class Colors On Enemies"] = nil, + ["Enable Class Colors On Friends"] = nil, + ["Enable Clickcast"] = nil, + ["Enable Clickthrough"] = nil, + ["Enable Combat Glow Effects On Group Frames"] = nil, + ["Enable Combat Glow Effects On Screen Edges"] = nil, + ["Enable Combat Glow Effects On Unit Frames"] = nil, + ["Enable Custom Color Health Bar Background"] = nil, + ["Enable Custom Color Health Bars"] = nil, + ["Enable Custom Colors"] = nil, + ["Enable Custom Incoming Whispers Layout"] = nil, + ["Enable Debuff Indicators"] = nil, + ["Enable Debuffs"] = nil, + ["Enable Energy Ticks"] = nil, + ["Enable Extended Guild Information"] = nil, + ["Enable Health Color in Text"] = nil, + ["Enable Item Quality Color For Equipment Only"] = nil, + ["Enable Level Color in Text"] = nil, + ["Enable \"Loot & Spam\" Chat Window"] = nil, + ["Enable Micro Bar"] = nil, + ["Enable Mouselook With Right Click"] = nil, + ["Enable Offscreen Frame Positions"] = nil, + ["Enable Pastel Colors"] = nil, + ["Enable Pixel Perfect (Native Resolution)"] = nil, + ["Enable Power Color in Text"] = nil, + ["Enable Range Based Auto Paging (Hunter)"] = nil, + ["Enable Range Display On Hotkeys"] = nil, + ["Enable Range Fading"] = nil, + ["Enable Region Compatible Font"] = nil, + ["Enable Right Chat Window"] = nil, + ["Enable Single Line UIErrors"] = nil, + ["Enable Spellname"] = nil, + ["Enable Sticky Chat"] = nil, + ["Enable Target Switch Animation"] = nil, + ["Enable Timestamps"] = nil, + ["Enable URL Detection"] = nil, + ["Enable Zone Text On Minimap Mouseover"] = nil, + ["Firstrun"] = nil, + ["Focus"] = nil, + ["General"] = nil, + ["Global Border Size"] = nil, + ["Group Frames"] = nil, + ["Group"] = nil, + ["Group-Pet"] = nil, + ["Group-Target"] = nil, + ["HealComm"] = nil, + ["Healthbar Animation Speed"] = nil, + ["Healthbar Height"] = nil, + ["Health Bar Height"] = nil, + ["Health Bar Width"] = nil, + ["Hide Channel Names"] = nil, + ["Hide Group Frames When In A Raid"] = nil, + ["Hoverbind"] = nil, + ["Icon Size"] = nil, + ["Incoming Whispers Color"] = nil, + ["Inputbox Height"] = nil, + ["Inputbox Width"] = nil, + ["Invert Health Bar"] = nil, + ["is not allowed in profile name"] = nil, + ["KLH Threat Meter"] = nil, + ["Layout"] = nil, + ["Left Actionbar (BottomRight)"] = nil, + ["Left Chat Height"] = nil, + ["Left Chat Width"] = nil, + ["Left Panel: Center"] = nil, + ["Left Panel: Left"] = nil, + ["Left Panel: Right"] = nil, + ["Left Text"] = nil, + ["Load profile"] = nil, + ["Loot"] = nil, + ["Main Actionbar (ActionMain)"] = nil, + ["Minimap"] = nil, + ["Modules"] = nil, + ["Nameplates"] = nil, + ["Nameplate Width"] = nil, + ["Only Show Indicators for Dispellable Debuffs"] = nil, + ["Other Panel: Minimap"] = nil, + ["Panel Border Size"] = nil, + ["Panel"] = nil, + ["Pet Bar (BarPet)"] = nil, + ["Pet"] = nil, + ["pfUI Settings"] = nil, + ["Player"] = nil, + ["Please enter a name for the new profile.\nExisting profiles sharing the same name will be overwritten."] = nil, + ["Portrait Alpha"] = nil, + ["Portrait Position"] = nil, + ["Power Bar Height"] = nil, + ["Profile"] = nil, + ["Raid Icon Size"] = nil, + ["Raid"] = nil, + ["Range Display Color"] = nil, + ["Right Actionbar (Right)"] = nil, + ["Right Chat Height"] = nil, + ["Right Chat Width"] = nil, + ["Right Click Auto Attack Threshold"] = nil, + ["Right Panel: Center"] = nil, + ["Right Panel: Left"] = nil, + ["Right Panel: Right"] = nil, + ["Right Text"] = nil, + ["Save current settings to profile"] = nil, + ["Save profile"] = nil, + ["Scrolling Combat Text Font"] = nil, + ["Second Actionbar (BottomLeft)"] = nil, + ["Seconds Before Chat Fade"] = nil, + ["Seconds Until Action Bars Autohide"] = nil, + ["Select profile"] = nil, + ["Settings"] = nil, + ["Shapeshift Bar (BarShapeShift)"] = nil, + ["Shift-Click Action"] = nil, + ["Show Health Points"] = nil, + ["Show Hotkey Text"] = nil, + ["Show Hots as Buff Indicators"] = nil, + ["Show Hots of all Classes"] = nil, + ["Show Macro Text"] = nil, + ["Show Players Only"] = nil, + ["Show Procs as Buff Indicators"] = nil, + ["Show Procs of all Classes"] = nil, + ["Show PvP Icon"] = nil, + ["Some settings need to reload the UI to take effect.\nDo you want to reloadUI now?"] = nil, + ["Spacing"] = nil, + ["Standard Text Font"] = nil, + ["Standard Text Font Size"] = nil, + ["Target"] = nil, + ["Target-Target"] = nil, + ["Thirdparty"] = nil, + ["Timestamp Brackets"] = nil, + ["Timestamp Color"] = nil, + ["Timestamp Format"] = nil, + ["Tooltip"] = nil, + ["Tooltip Position"] = nil, + ["Unit Frame Border Size"] = nil, + ["Unit Frame Layout"] = nil, + ["Unit Frames"] = nil, + ["Unit Frame Text Font"] = nil, + ["Unit Frame Text Size"] = nil, + ["Unlock"] = nil, + ["Use Unit Fonts"] = nil, + ["Vertical Actionbar (TwoRight)"] = nil, + ["Vertical Position"] = nil, + ["Welcome to |cff33ffccpf|cffffffffUI|r!\n\nI'm the first run wizzard that will guide you through some basic configuration.\nIf you're lazy, feel free to hit the \"Use Defaults\" button. If you whish to run this\ndialog again, go to the settings and hit the \"Reset Firstrun\" button.\n\nVisit |cff33ffcchttp://shagu.org|r to check for the latest version."] = nil, + ["WIM"] = nil, +} diff --git a/env/translations_ruRU.lua b/env/translations_ruRU.lua new file mode 100644 index 00000000..ea82f26b --- /dev/null +++ b/env/translations_ruRU.lua @@ -0,0 +1,249 @@ +pfUI_translation["ruRU"] = { + ["40y-Range Check Interval"] = nil, + ["Abbreviate Numbers (4200 -> 4.2k)"] = nil, + ["Action Bar Border Size"] = nil, + ["Actionbar"] = nil, + ["Aggressive 40y-Range Check (Will break stuff)"] = nil, + ["Alt-Click Action"] = nil, + ["Always Show Experience And Reputation Bar"] = nil, + ["Always Show Extended Vendor Values"] = nil, + ["Always Show Item Comparison"] = nil, + ["Always Use 2D Portraits"] = nil, + ["Appearance"] = nil, + ["Autohide"] = nil, + ["Auto Repair Items"] = nil, + ["Auto Sell Grey Items"] = nil, + ["Background Color"] = nil, + ["Bags & Bank"] = nil, + ["Bags Border Size"] = nil, + ["Border Color"] = nil, + ["Buff Limit"] = nil, + ["Buff Position"] = nil, + ["Buff Size"] = nil, + ["Buffs Per Row"] = nil, + ["Cache"] = nil, + ["Castbar Height"] = nil, + ["Castbar"] = nil, + ["Casting Color"] = nil, + ["Center Text"] = nil, + ["|cff33ffccBlizzard: \"Interface Options\"|r\n\nDo you want me to setup the recommended blizzard UI settings?\nThis will enable settings that can be found in the Interface section of your client.\nOptions like Buff Durations, Instant Quest Text, Auto Selfcast and others will be set."] = nil, + ["|cff33ffccChat: \"Channels\"|r\n\nDo you want me to setup the chat channels of your chatframes?\nThis would set important or personal messages to the left chat\nand world channels and lootinformation to the right chat."] = nil, + ["|cff33ffccChat: \"Layout\"|r\n\nDo you want me to adjust the layout of your chatframes?\nThis would make sure, that every window is placed on its dedicated position."] = nil, + ["|cff33ffccChat: \"Loot & Spam\"|r\n\nDo you want me to create and manage a specific Chatframe called \"Loot & Spam\"?\nThis chat will display world channels, loot information and miscellaneous messages,\nthat would otherwise clutter your main chatframe."] = nil, + ["|cff33ffccKeybind Mode|r\nThis mode allows you to bind keyboard shortcuts to your actionbars.\nBy hovering a button with your cursor and pressing a key, the key will be assigned to that button.\nHit Escape on a button to remove bindings.\n\nPress Escape or click on an empty area to leave the keybind mode."] = nil, + ["|cff33ffccUnlock Mode|r\nThis mode allows you to move frames by dragging them using the mouse cursor. Frames can be scaled by scrolling up and down.\nTo scale multiple frames at once (eg. raidframes), hold down the shift key while scrolling. Click into an empty space to go back to the pfUI menu."] = nil, + ["|cffff5555EVERYTHING"] = nil, + ["Channeling Color"] = nil, + ["Chat Background Color"] = nil, + ["Chat Border Color"] = nil, + ["Chat Border Size"] = nil, + ["Chat"] = nil, + ["CleanUp"] = nil, + ["Click Action"] = nil, + ["Clickcast Spells"] = nil, + ["Close"] = nil, + ["Combat"] = nil, + ["Combopoint Size"] = nil, + ["Configuration"] = nil, + ["Cooldown Color (Days)"] = nil, + ["Cooldown Color (Hours)"] = nil, + ["Cooldown Color (Less than 3 Sec)"] = nil, + ["Cooldown Color (Minutes)"] = nil, + ["Cooldown Color (Seconds)"] = nil, + ["Cooldown"] = nil, + ["Cooldown Text Font Size"] = nil, + ["Cooldown Text Threshold"] = nil, + ["Create Profile"] = nil, + ["Ctrl-Click Action"] = nil, + ["Custom Health Bar Background Color"] = nil, + ["Custom Health Bar Color"] = nil, + ["Custom Transparency"] = nil, + ["Debuff Limit"] = nil, + ["Debuff Position"] = nil, + ["Debuff Size"] = nil, + ["Debuffs Per Row"] = nil, + ["Delete profile"] = nil, + ["Delete / Reset"] = nil, + ["Disable All UIErrors"] = nil, + ["Disable Blizzard Castbar"] = nil, + ["Disable Item Quality Color For \"Common\" Items"] = nil, + ["Disable Loot Confirmation Dialog (Without Group)"] = nil, + ["Disable Minimap Buffs"] = nil, + ["Disable Minimap Weapon Buffs"] = nil, + ["Disable Module"] = nil, + ["Disable pfUI Player Castbar"] = nil, + ["Disable pfUI Target Castbar"] = nil, + ["Disable pfUI Unit Frames"] = nil, + ["Display Focus Frame"] = nil, + ["Display Group Frames"] = nil, + ["Display Group Pet Frames"] = nil, + ["Display Group Target Frames"] = nil, + ["Display Pet Frame"] = nil, + ["Display Player Frame"] = nil, + ["Display Raid Frames"] = nil, + ["Display Target Frame"] = nil, + ["Display Target of Target Frame"] = nil, + ["Do you really want to reset |cffffaaaaEVERYTHING|r?\n\nThis will reset:\n - Current Configuration\n - Current Frame Positions\n - Firstrun Wizard\n - Addon Cache\n - Saved Profiles"] = nil, + ["Do you really want to reset the Cache?"] = nil, + ["Do you really want to reset the Firstrun Wizard Settings?"] = nil, + ["Do you really want to reset your configuration?\nThis also includes frame positions"] = nil, + ["DPSMate"] = nil, + ["Enable 24h Clock"] = nil, + ["Enable 2D Portraits As Fallback"] = nil, + ["Enable Action Bar Backgrounds"] = nil, + ["Enable Autohide For BarActionMain"] = nil, + ["Enable Autohide For BarBottomLeft"] = nil, + ["Enable Autohide For BarBottomRight"] = nil, + ["Enable Autohide For BarPet"] = nil, + ["Enable Autohide For BarRight"] = nil, + ["Enable Autohide For BarShapeShift"] = nil, + ["Enable Autohide For BarTwoRight"] = nil, + ["Enable Auto-Resize Loot Frame"] = nil, + ["Enable Buff Indicators"] = nil, + ["Enable Castbars"] = nil, + ["Enable Chat Dock"] = nil, + ["Enable Chat Fade"] = nil, + ["Enable Class Color in Text"] = nil, + ["Enable Class Colors"] = nil, + ["Enable Class Colors On Enemies"] = nil, + ["Enable Class Colors On Friends"] = nil, + ["Enable Clickcast"] = nil, + ["Enable Clickthrough"] = nil, + ["Enable Combat Glow Effects On Group Frames"] = nil, + ["Enable Combat Glow Effects On Screen Edges"] = nil, + ["Enable Combat Glow Effects On Unit Frames"] = nil, + ["Enable Custom Color Health Bar Background"] = nil, + ["Enable Custom Color Health Bars"] = nil, + ["Enable Custom Colors"] = nil, + ["Enable Custom Incoming Whispers Layout"] = nil, + ["Enable Debuff Indicators"] = nil, + ["Enable Debuffs"] = nil, + ["Enable Energy Ticks"] = nil, + ["Enable Extended Guild Information"] = nil, + ["Enable Health Color in Text"] = nil, + ["Enable Item Quality Color For Equipment Only"] = nil, + ["Enable Level Color in Text"] = nil, + ["Enable \"Loot & Spam\" Chat Window"] = nil, + ["Enable Micro Bar"] = nil, + ["Enable Mouselook With Right Click"] = nil, + ["Enable Offscreen Frame Positions"] = nil, + ["Enable Pastel Colors"] = nil, + ["Enable Pixel Perfect (Native Resolution)"] = nil, + ["Enable Power Color in Text"] = nil, + ["Enable Range Based Auto Paging (Hunter)"] = nil, + ["Enable Range Display On Hotkeys"] = nil, + ["Enable Range Fading"] = nil, + ["Enable Region Compatible Font"] = nil, + ["Enable Right Chat Window"] = nil, + ["Enable Single Line UIErrors"] = nil, + ["Enable Spellname"] = nil, + ["Enable Sticky Chat"] = nil, + ["Enable Target Switch Animation"] = nil, + ["Enable Timestamps"] = nil, + ["Enable URL Detection"] = nil, + ["Enable Zone Text On Minimap Mouseover"] = nil, + ["Firstrun"] = nil, + ["Focus"] = nil, + ["General"] = nil, + ["Global Border Size"] = nil, + ["Group Frames"] = nil, + ["Group"] = nil, + ["Group-Pet"] = nil, + ["Group-Target"] = nil, + ["HealComm"] = nil, + ["Healthbar Animation Speed"] = nil, + ["Healthbar Height"] = nil, + ["Health Bar Height"] = nil, + ["Health Bar Width"] = nil, + ["Hide Channel Names"] = nil, + ["Hide Group Frames When In A Raid"] = nil, + ["Hoverbind"] = nil, + ["Icon Size"] = nil, + ["Incoming Whispers Color"] = nil, + ["Inputbox Height"] = nil, + ["Inputbox Width"] = nil, + ["Invert Health Bar"] = nil, + ["is not allowed in profile name"] = nil, + ["KLH Threat Meter"] = nil, + ["Layout"] = nil, + ["Left Actionbar (BottomRight)"] = nil, + ["Left Chat Height"] = nil, + ["Left Chat Width"] = nil, + ["Left Panel: Center"] = nil, + ["Left Panel: Left"] = nil, + ["Left Panel: Right"] = nil, + ["Left Text"] = nil, + ["Load profile"] = nil, + ["Loot"] = nil, + ["Main Actionbar (ActionMain)"] = nil, + ["Minimap"] = nil, + ["Modules"] = nil, + ["Nameplates"] = nil, + ["Nameplate Width"] = nil, + ["Only Show Indicators for Dispellable Debuffs"] = nil, + ["Other Panel: Minimap"] = nil, + ["Panel Border Size"] = nil, + ["Panel"] = nil, + ["Pet Bar (BarPet)"] = nil, + ["Pet"] = nil, + ["pfUI Settings"] = nil, + ["Player"] = nil, + ["Please enter a name for the new profile.\nExisting profiles sharing the same name will be overwritten."] = nil, + ["Portrait Alpha"] = nil, + ["Portrait Position"] = nil, + ["Power Bar Height"] = nil, + ["Profile"] = nil, + ["Raid Icon Size"] = nil, + ["Raid"] = nil, + ["Range Display Color"] = nil, + ["Right Actionbar (Right)"] = nil, + ["Right Chat Height"] = nil, + ["Right Chat Width"] = nil, + ["Right Click Auto Attack Threshold"] = nil, + ["Right Panel: Center"] = nil, + ["Right Panel: Left"] = nil, + ["Right Panel: Right"] = nil, + ["Right Text"] = nil, + ["Save current settings to profile"] = nil, + ["Save profile"] = nil, + ["Scrolling Combat Text Font"] = nil, + ["Second Actionbar (BottomLeft)"] = nil, + ["Seconds Before Chat Fade"] = nil, + ["Seconds Until Action Bars Autohide"] = nil, + ["Select profile"] = nil, + ["Settings"] = nil, + ["Shapeshift Bar (BarShapeShift)"] = nil, + ["Shift-Click Action"] = nil, + ["Show Health Points"] = nil, + ["Show Hotkey Text"] = nil, + ["Show Hots as Buff Indicators"] = nil, + ["Show Hots of all Classes"] = nil, + ["Show Macro Text"] = nil, + ["Show Players Only"] = nil, + ["Show Procs as Buff Indicators"] = nil, + ["Show Procs of all Classes"] = nil, + ["Show PvP Icon"] = nil, + ["Some settings need to reload the UI to take effect.\nDo you want to reloadUI now?"] = nil, + ["Spacing"] = nil, + ["Standard Text Font"] = nil, + ["Standard Text Font Size"] = nil, + ["Target"] = nil, + ["Target-Target"] = nil, + ["Thirdparty"] = nil, + ["Timestamp Brackets"] = nil, + ["Timestamp Color"] = nil, + ["Timestamp Format"] = nil, + ["Tooltip"] = nil, + ["Tooltip Position"] = nil, + ["Unit Frame Border Size"] = nil, + ["Unit Frame Layout"] = nil, + ["Unit Frames"] = nil, + ["Unit Frame Text Font"] = nil, + ["Unit Frame Text Size"] = nil, + ["Unlock"] = nil, + ["Use Unit Fonts"] = nil, + ["Vertical Actionbar (TwoRight)"] = nil, + ["Vertical Position"] = nil, + ["Welcome to |cff33ffccpf|cffffffffUI|r!\n\nI'm the first run wizzard that will guide you through some basic configuration.\nIf you're lazy, feel free to hit the \"Use Defaults\" button. If you whish to run this\ndialog again, go to the settings and hit the \"Reset Firstrun\" button.\n\nVisit |cff33ffcchttp://shagu.org|r to check for the latest version."] = nil, + ["WIM"] = nil, +} diff --git a/env/translations_zhCN.lua b/env/translations_zhCN.lua new file mode 100644 index 00000000..1121b5cf --- /dev/null +++ b/env/translations_zhCN.lua @@ -0,0 +1,249 @@ +pfUI_translation["zhCN"] = { + ["40y-Range Check Interval"] = nil, + ["Abbreviate Numbers (4200 -> 4.2k)"] = nil, + ["Action Bar Border Size"] = nil, + ["Actionbar"] = nil, + ["Aggressive 40y-Range Check (Will break stuff)"] = nil, + ["Alt-Click Action"] = nil, + ["Always Show Experience And Reputation Bar"] = nil, + ["Always Show Extended Vendor Values"] = nil, + ["Always Show Item Comparison"] = nil, + ["Always Use 2D Portraits"] = nil, + ["Appearance"] = nil, + ["Autohide"] = nil, + ["Auto Repair Items"] = nil, + ["Auto Sell Grey Items"] = nil, + ["Background Color"] = nil, + ["Bags & Bank"] = nil, + ["Bags Border Size"] = nil, + ["Border Color"] = nil, + ["Buff Limit"] = nil, + ["Buff Position"] = nil, + ["Buff Size"] = nil, + ["Buffs Per Row"] = nil, + ["Cache"] = nil, + ["Castbar Height"] = nil, + ["Castbar"] = nil, + ["Casting Color"] = nil, + ["Center Text"] = nil, + ["|cff33ffccBlizzard: \"Interface Options\"|r\n\nDo you want me to setup the recommended blizzard UI settings?\nThis will enable settings that can be found in the Interface section of your client.\nOptions like Buff Durations, Instant Quest Text, Auto Selfcast and others will be set."] = nil, + ["|cff33ffccChat: \"Channels\"|r\n\nDo you want me to setup the chat channels of your chatframes?\nThis would set important or personal messages to the left chat\nand world channels and lootinformation to the right chat."] = nil, + ["|cff33ffccChat: \"Layout\"|r\n\nDo you want me to adjust the layout of your chatframes?\nThis would make sure, that every window is placed on its dedicated position."] = nil, + ["|cff33ffccChat: \"Loot & Spam\"|r\n\nDo you want me to create and manage a specific Chatframe called \"Loot & Spam\"?\nThis chat will display world channels, loot information and miscellaneous messages,\nthat would otherwise clutter your main chatframe."] = nil, + ["|cff33ffccKeybind Mode|r\nThis mode allows you to bind keyboard shortcuts to your actionbars.\nBy hovering a button with your cursor and pressing a key, the key will be assigned to that button.\nHit Escape on a button to remove bindings.\n\nPress Escape or click on an empty area to leave the keybind mode."] = nil, + ["|cff33ffccUnlock Mode|r\nThis mode allows you to move frames by dragging them using the mouse cursor. Frames can be scaled by scrolling up and down.\nTo scale multiple frames at once (eg. raidframes), hold down the shift key while scrolling. Click into an empty space to go back to the pfUI menu."] = nil, + ["|cffff5555EVERYTHING"] = nil, + ["Channeling Color"] = nil, + ["Chat Background Color"] = nil, + ["Chat Border Color"] = nil, + ["Chat Border Size"] = nil, + ["Chat"] = nil, + ["CleanUp"] = nil, + ["Click Action"] = nil, + ["Clickcast Spells"] = nil, + ["Close"] = nil, + ["Combat"] = nil, + ["Combopoint Size"] = nil, + ["Configuration"] = nil, + ["Cooldown Color (Days)"] = nil, + ["Cooldown Color (Hours)"] = nil, + ["Cooldown Color (Less than 3 Sec)"] = nil, + ["Cooldown Color (Minutes)"] = nil, + ["Cooldown Color (Seconds)"] = nil, + ["Cooldown"] = nil, + ["Cooldown Text Font Size"] = nil, + ["Cooldown Text Threshold"] = nil, + ["Create Profile"] = nil, + ["Ctrl-Click Action"] = nil, + ["Custom Health Bar Background Color"] = nil, + ["Custom Health Bar Color"] = nil, + ["Custom Transparency"] = nil, + ["Debuff Limit"] = nil, + ["Debuff Position"] = nil, + ["Debuff Size"] = nil, + ["Debuffs Per Row"] = nil, + ["Delete profile"] = nil, + ["Delete / Reset"] = nil, + ["Disable All UIErrors"] = nil, + ["Disable Blizzard Castbar"] = nil, + ["Disable Item Quality Color For \"Common\" Items"] = nil, + ["Disable Loot Confirmation Dialog (Without Group)"] = nil, + ["Disable Minimap Buffs"] = nil, + ["Disable Minimap Weapon Buffs"] = nil, + ["Disable Module"] = nil, + ["Disable pfUI Player Castbar"] = nil, + ["Disable pfUI Target Castbar"] = nil, + ["Disable pfUI Unit Frames"] = nil, + ["Display Focus Frame"] = nil, + ["Display Group Frames"] = nil, + ["Display Group Pet Frames"] = nil, + ["Display Group Target Frames"] = nil, + ["Display Pet Frame"] = nil, + ["Display Player Frame"] = nil, + ["Display Raid Frames"] = nil, + ["Display Target Frame"] = nil, + ["Display Target of Target Frame"] = nil, + ["Do you really want to reset |cffffaaaaEVERYTHING|r?\n\nThis will reset:\n - Current Configuration\n - Current Frame Positions\n - Firstrun Wizard\n - Addon Cache\n - Saved Profiles"] = nil, + ["Do you really want to reset the Cache?"] = nil, + ["Do you really want to reset the Firstrun Wizard Settings?"] = nil, + ["Do you really want to reset your configuration?\nThis also includes frame positions"] = nil, + ["DPSMate"] = nil, + ["Enable 24h Clock"] = nil, + ["Enable 2D Portraits As Fallback"] = nil, + ["Enable Action Bar Backgrounds"] = nil, + ["Enable Autohide For BarActionMain"] = nil, + ["Enable Autohide For BarBottomLeft"] = nil, + ["Enable Autohide For BarBottomRight"] = nil, + ["Enable Autohide For BarPet"] = nil, + ["Enable Autohide For BarRight"] = nil, + ["Enable Autohide For BarShapeShift"] = nil, + ["Enable Autohide For BarTwoRight"] = nil, + ["Enable Auto-Resize Loot Frame"] = nil, + ["Enable Buff Indicators"] = nil, + ["Enable Castbars"] = nil, + ["Enable Chat Dock"] = nil, + ["Enable Chat Fade"] = nil, + ["Enable Class Color in Text"] = nil, + ["Enable Class Colors"] = nil, + ["Enable Class Colors On Enemies"] = nil, + ["Enable Class Colors On Friends"] = nil, + ["Enable Clickcast"] = nil, + ["Enable Clickthrough"] = nil, + ["Enable Combat Glow Effects On Group Frames"] = nil, + ["Enable Combat Glow Effects On Screen Edges"] = nil, + ["Enable Combat Glow Effects On Unit Frames"] = nil, + ["Enable Custom Color Health Bar Background"] = nil, + ["Enable Custom Color Health Bars"] = nil, + ["Enable Custom Colors"] = nil, + ["Enable Custom Incoming Whispers Layout"] = nil, + ["Enable Debuff Indicators"] = nil, + ["Enable Debuffs"] = nil, + ["Enable Energy Ticks"] = nil, + ["Enable Extended Guild Information"] = nil, + ["Enable Health Color in Text"] = nil, + ["Enable Item Quality Color For Equipment Only"] = nil, + ["Enable Level Color in Text"] = nil, + ["Enable \"Loot & Spam\" Chat Window"] = nil, + ["Enable Micro Bar"] = nil, + ["Enable Mouselook With Right Click"] = nil, + ["Enable Offscreen Frame Positions"] = nil, + ["Enable Pastel Colors"] = nil, + ["Enable Pixel Perfect (Native Resolution)"] = nil, + ["Enable Power Color in Text"] = nil, + ["Enable Range Based Auto Paging (Hunter)"] = nil, + ["Enable Range Display On Hotkeys"] = nil, + ["Enable Range Fading"] = nil, + ["Enable Region Compatible Font"] = nil, + ["Enable Right Chat Window"] = nil, + ["Enable Single Line UIErrors"] = nil, + ["Enable Spellname"] = nil, + ["Enable Sticky Chat"] = nil, + ["Enable Target Switch Animation"] = nil, + ["Enable Timestamps"] = nil, + ["Enable URL Detection"] = nil, + ["Enable Zone Text On Minimap Mouseover"] = nil, + ["Firstrun"] = nil, + ["Focus"] = nil, + ["General"] = nil, + ["Global Border Size"] = nil, + ["Group Frames"] = nil, + ["Group"] = nil, + ["Group-Pet"] = nil, + ["Group-Target"] = nil, + ["HealComm"] = nil, + ["Healthbar Animation Speed"] = nil, + ["Healthbar Height"] = nil, + ["Health Bar Height"] = nil, + ["Health Bar Width"] = nil, + ["Hide Channel Names"] = nil, + ["Hide Group Frames When In A Raid"] = nil, + ["Hoverbind"] = nil, + ["Icon Size"] = nil, + ["Incoming Whispers Color"] = nil, + ["Inputbox Height"] = nil, + ["Inputbox Width"] = nil, + ["Invert Health Bar"] = nil, + ["is not allowed in profile name"] = nil, + ["KLH Threat Meter"] = nil, + ["Layout"] = nil, + ["Left Actionbar (BottomRight)"] = nil, + ["Left Chat Height"] = nil, + ["Left Chat Width"] = nil, + ["Left Panel: Center"] = nil, + ["Left Panel: Left"] = nil, + ["Left Panel: Right"] = nil, + ["Left Text"] = nil, + ["Load profile"] = nil, + ["Loot"] = nil, + ["Main Actionbar (ActionMain)"] = nil, + ["Minimap"] = nil, + ["Modules"] = nil, + ["Nameplates"] = nil, + ["Nameplate Width"] = nil, + ["Only Show Indicators for Dispellable Debuffs"] = nil, + ["Other Panel: Minimap"] = nil, + ["Panel Border Size"] = nil, + ["Panel"] = nil, + ["Pet Bar (BarPet)"] = nil, + ["Pet"] = nil, + ["pfUI Settings"] = nil, + ["Player"] = nil, + ["Please enter a name for the new profile.\nExisting profiles sharing the same name will be overwritten."] = nil, + ["Portrait Alpha"] = nil, + ["Portrait Position"] = nil, + ["Power Bar Height"] = nil, + ["Profile"] = nil, + ["Raid Icon Size"] = nil, + ["Raid"] = nil, + ["Range Display Color"] = nil, + ["Right Actionbar (Right)"] = nil, + ["Right Chat Height"] = nil, + ["Right Chat Width"] = nil, + ["Right Click Auto Attack Threshold"] = nil, + ["Right Panel: Center"] = nil, + ["Right Panel: Left"] = nil, + ["Right Panel: Right"] = nil, + ["Right Text"] = nil, + ["Save current settings to profile"] = nil, + ["Save profile"] = nil, + ["Scrolling Combat Text Font"] = nil, + ["Second Actionbar (BottomLeft)"] = nil, + ["Seconds Before Chat Fade"] = nil, + ["Seconds Until Action Bars Autohide"] = nil, + ["Select profile"] = nil, + ["Settings"] = nil, + ["Shapeshift Bar (BarShapeShift)"] = nil, + ["Shift-Click Action"] = nil, + ["Show Health Points"] = nil, + ["Show Hotkey Text"] = nil, + ["Show Hots as Buff Indicators"] = nil, + ["Show Hots of all Classes"] = nil, + ["Show Macro Text"] = nil, + ["Show Players Only"] = nil, + ["Show Procs as Buff Indicators"] = nil, + ["Show Procs of all Classes"] = nil, + ["Show PvP Icon"] = nil, + ["Some settings need to reload the UI to take effect.\nDo you want to reloadUI now?"] = nil, + ["Spacing"] = nil, + ["Standard Text Font"] = nil, + ["Standard Text Font Size"] = nil, + ["Target"] = nil, + ["Target-Target"] = nil, + ["Thirdparty"] = nil, + ["Timestamp Brackets"] = nil, + ["Timestamp Color"] = nil, + ["Timestamp Format"] = nil, + ["Tooltip"] = nil, + ["Tooltip Position"] = nil, + ["Unit Frame Border Size"] = nil, + ["Unit Frame Layout"] = nil, + ["Unit Frames"] = nil, + ["Unit Frame Text Font"] = nil, + ["Unit Frame Text Size"] = nil, + ["Unlock"] = nil, + ["Use Unit Fonts"] = nil, + ["Vertical Actionbar (TwoRight)"] = nil, + ["Vertical Position"] = nil, + ["Welcome to |cff33ffccpf|cffffffffUI|r!\n\nI'm the first run wizzard that will guide you through some basic configuration.\nIf you're lazy, feel free to hit the \"Use Defaults\" button. If you whish to run this\ndialog again, go to the settings and hit the \"Reset Firstrun\" button.\n\nVisit |cff33ffcchttp://shagu.org|r to check for the latest version."] = nil, + ["WIM"] = nil, +} diff --git a/modules/chat.lua b/modules/chat.lua index 7a774e34..4bd0b612 100644 --- a/modules/chat.lua +++ b/modules/chat.lua @@ -1,18 +1,13 @@ pfUI:RegisterModule("chat", function () if pfUI.firstrun then - pfUI.firstrun:AddStep("chat_right", function() pfUI.chat.SetupRightChat(true) end, function() pfUI.chat.SetupRightChat(false) end, "|cff33ffccChat: \"Loot & Spam\"|r\n\n".. - "Do you want me to create and manage a specific Chatframe called \"Loot & Spam\"?\n".. - "This chat will display world channels, loot information and miscellaneous messages,\n" .. - "that would otherwise clutter your main chatframe.") + local txt = T["|cff33ffccChat: \"Loot & Spam\"|r\n\nDo you want me to create and manage a specific Chatframe called \"Loot & Spam\"?\nThis chat will display world channels, loot information and miscellaneous messages,\nthat would otherwise clutter your main chatframe."] + pfUI.firstrun:AddStep("chat_right", function() pfUI.chat.SetupRightChat(true) end, function() pfUI.chat.SetupRightChat(false) end, txt) - pfUI.firstrun:AddStep("chat_position", function() pfUI.chat.SetupPositions() end, nil, "|cff33ffccChat: \"Layout\"|r\n\n" .. - "Do you want me to adjust the layout of your chatframes?\n" .. - "This would make sure, that every window is placed on its dedicated position.") + local txt = T["|cff33ffccChat: \"Layout\"|r\n\nDo you want me to adjust the layout of your chatframes?\nThis would make sure, that every window is placed on its dedicated position."] + pfUI.firstrun:AddStep("chat_position", function() pfUI.chat.SetupPositions() end, nil, txt) - pfUI.firstrun:AddStep("chat_channels", function() pfUI.chat.SetupChannels() end, nil, "|cff33ffccChat: \"Channels\"|r\n\n".. - "Do you want me to setup the chat channels of your chatframes?\n".. - "This would set important or personal messages to the left chat\n" .. - "and world channels and lootinformation to the right chat.") + local txt = T["|cff33ffccChat: \"Channels\"|r\n\nDo you want me to setup the chat channels of your chatframes?\nThis would set important or personal messages to the left chat\nand world channels and lootinformation to the right chat."] + pfUI.firstrun:AddStep("chat_channels", function() pfUI.chat.SetupChannels() end, nil, txt) end local panelfont = C.panel.use_unitfonts == "1" and pfUI.font_unit or pfUI.font_default diff --git a/modules/firstrun.lua b/modules/firstrun.lua index 37ee1b61..c11427e8 100644 --- a/modules/firstrun.lua +++ b/modules/firstrun.lua @@ -19,10 +19,8 @@ pfUI:RegisterModule("firstrun", function () table.insert(pfUI.firstrun.steps, step) end - pfUI.firstrun:AddStep("cvars", function() pfUI.SetupCVars() end, nil, "|cff33ffccBlizzard: \"Interface Options\"|r\n\n".. - "Do you want me to setup the recommended blizzard UI settings?\n".. - "This will enable settings that can be found in the Interface section of your client.\n".. - "Options like Buff Durations, Instant Quest Text, Auto Selfcast and others will be set.\n") + local txt = T["|cff33ffccBlizzard: \"Interface Options\"|r\n\nDo you want me to setup the recommended blizzard UI settings?\nThis will enable settings that can be found in the Interface section of your client.\nOptions like Buff Durations, Instant Quest Text, Auto Selfcast and others will be set."] + pfUI.firstrun:AddStep("cvars", function() pfUI.SetupCVars() end, nil, txt) local all_yes = false function pfUI.firstrun:NextStep() @@ -40,11 +38,9 @@ pfUI:RegisterModule("firstrun", function () pfUI.firstrun:NextStep() end - CreateQuestionDialog("Welcome to |cff33ffccpf|cffffffffUI|r!\n\n".. - "I'm the first run wizzard that will guide you through some basic configuration.\n".. - "If you're lazy, feel free to hit the \"Use Defaults\" button. If you whish to run this\n".. - "dialog again, go to the settings and hit the \"Reset Firstrun\" button.\n\n".. - "Visit |cff33ffcchttp://shagu.org|r to check for the latest version.", { "Customize", yes } , { "Use Defaults", no }) + local txt = T["Welcome to |cff33ffccpf|cffffffffUI|r!\n\nI'm the first run wizzard that will guide you through some basic configuration.\nIf you're lazy, feel free to hit the \"Use Defaults\" button. If you whish to run this\ndialog again, go to the settings and hit the \"Reset Firstrun\" button.\n\nVisit |cff33ffcchttp://shagu.org|r to check for the latest version."] + + CreateQuestionDialog(txt, { "Customize", yes } , { "Use Defaults", no }) return end diff --git a/modules/gui.lua b/modules/gui.lua index 23af6fc1..833ffd34 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -478,7 +478,7 @@ pfUI:RegisterModule("gui", function () table.insert(UISpecialFrames, "pfConfigGUI") function pfUI.gui:Reload() - CreateQuestionDialog("Some settings need to reload the UI to take effect.\nDo you want to reloadUI now?", + CreateQuestionDialog(T["Some settings need to reload the UI to take effect.\nDo you want to reloadUI now?"], function() pfUI.gui.settingChanged = nil ReloadUI() @@ -582,29 +582,29 @@ pfUI:RegisterModule("gui", function () -- [[ Settings ]] - pfUI.gui.tabs.settings = pfUI.gui.tabs:CreateChildFrame("Settings", nil, nil, nil, true) + pfUI.gui.tabs.settings = pfUI.gui.tabs:CreateChildFrame(T["Settings"], nil, nil, nil, true) pfUI.gui.tabs.settings.tabs = Createtabs(pfUI.gui.tabs.settings, "TOP", true) -- >> Global - pfUI.gui.tabs.settings.tabs.general = pfUI.gui.tabs.settings.tabs:CreateChildFrame("General", 70) + pfUI.gui.tabs.settings.tabs.general = pfUI.gui.tabs.settings.tabs:CreateChildFrame(T["General"], 70) pfUI.gui.tabs.settings.tabs.general:SetScript("OnShow", function() if not this.setup then - CreateConfig(this, "Enable Region Compatible Font", C.global, "force_region", "checkbox") - CreateConfig(this, "Standard Text Font", C.global, "font_default", "dropdown", dropdown_selection_fonts) - CreateConfig(this, "Standard Text Font Size", C.global, "font_size") - CreateConfig(this, "Unit Frame Text Font", C.global, "font_unit", "dropdown", dropdown_selection_fonts) - CreateConfig(this, "Unit Frame Text Size", C.global, "font_unit_size") - CreateConfig(this, "Scrolling Combat Text Font", C.global, "font_combat", "dropdown", dropdown_selection_fonts) - CreateConfig(this, "Enable Pixel Perfect (Native Resolution)", C.global, "pixelperfect", "checkbox") - CreateConfig(this, "Enable Offscreen Frame Positions", C.global, "offscreen", "checkbox") - CreateConfig(this, "Enable Single Line UIErrors", C.global, "errors_limit", "checkbox") - CreateConfig(this, "Disable All UIErrors", C.global, "errors_hide", "checkbox") + CreateConfig(this, T["Enable Region Compatible Font"], C.global, "force_region", "checkbox") + CreateConfig(this, T["Standard Text Font"], C.global, "font_default", "dropdown", dropdown_selection_fonts) + CreateConfig(this, T["Standard Text Font Size"], C.global, "font_size") + CreateConfig(this, T["Unit Frame Text Font"], C.global, "font_unit", "dropdown", dropdown_selection_fonts) + CreateConfig(this, T["Unit Frame Text Size"], C.global, "font_unit_size") + CreateConfig(this, T["Scrolling Combat Text Font"], C.global, "font_combat", "dropdown", dropdown_selection_fonts) + CreateConfig(this, T["Enable Pixel Perfect (Native Resolution)"], C.global, "pixelperfect", "checkbox") + CreateConfig(this, T["Enable Offscreen Frame Positions"], C.global, "offscreen", "checkbox") + CreateConfig(this, T["Enable Single Line UIErrors"], C.global, "errors_limit", "checkbox") + CreateConfig(this, T["Disable All UIErrors"], C.global, "errors_hide", "checkbox") -- Delete / Reset - CreateConfig(this, "Delete / Reset", nil, nil, "header") + CreateConfig(this, T["Delete / Reset"], nil, nil, "header") - CreateConfig(this, "|cffff5555EVERYTHING", C.global, "profile", "button", function() - CreateQuestionDialog("Do you really want to reset |cffffaaaaEVERYTHING|r?\n\nThis will reset:\n - Current Configuration\n - Current Frame Positions\n - Firstrun Wizard\n - Addon Cache\n - Saved Profiles", + CreateConfig(this, T["|cffff5555EVERYTHING"], C.global, "profile", "button", function() + CreateQuestionDialog(T["Do you really want to reset |cffffaaaaEVERYTHING|r?\n\nThis will reset:\n - Current Configuration\n - Current Frame Positions\n - Firstrun Wizard\n - Addon Cache\n - Saved Profiles"], function() _G["pfUI_init"] = {} _G["pfUI_config"] = {} @@ -616,8 +616,8 @@ pfUI:RegisterModule("gui", function () end) end) - CreateConfig(this, "Cache", C.global, "profile", "button", function() - CreateQuestionDialog("Do you really want to reset the Cache?", + CreateConfig(this, T["Cache"], C.global, "profile", "button", function() + CreateQuestionDialog(T["Do you really want to reset the Cache?"], function() _G["pfUI_playerDB"] = {} this:GetParent():Hide() @@ -625,8 +625,8 @@ pfUI:RegisterModule("gui", function () end) end, true) - CreateConfig(this, "Firstrun", C.global, "profile", "button", function() - CreateQuestionDialog("Do you really want to reset the Firstrun Wizard Settings?", + CreateConfig(this, T["Firstrun"], C.global, "profile", "button", function() + CreateQuestionDialog(T["Do you really want to reset the Firstrun Wizard Settings?"], function() _G["pfUI_init"] = {} this:GetParent():Hide() @@ -634,8 +634,8 @@ pfUI:RegisterModule("gui", function () end) end, true) - CreateConfig(this, "Configuration", C.global, "profile", "button", function() - CreateQuestionDialog("Do you really want to reset your configuration?\nThis also includes frame positions", + CreateConfig(this, T["Configuration"], C.global, "profile", "button", function() + CreateQuestionDialog(T["Do you really want to reset your configuration?\nThis also includes frame positions"], function() _G["pfUI_config"] = {} pfUI:LoadConfig() @@ -646,7 +646,7 @@ pfUI:RegisterModule("gui", function () -- Profiles - CreateConfig(this, "Profile", nil, nil, "header") + CreateConfig(this, T["Profile"], nil, nil, "header") local values = {} for name, config in pairs(pfUI_profiles) do table.insert(values, name) end @@ -657,12 +657,12 @@ pfUI:RegisterModule("gui", function () pfUIDropDownMenuProfile.Refresh() end - CreateConfig(this, "Select profile", C.global, "profile", "dropdown", values, false, "Profile") + CreateConfig(this, T["Select profile"], C.global, "profile", "dropdown", values, false, "Profile") -- load profile - CreateConfig(this, "Load profile", C.global, "profile", "button", function() + CreateConfig(this, T["Load profile"], C.global, "profile", "button", function() if C.global.profile and pfUI_profiles[C.global.profile] then - CreateQuestionDialog("Load profile '|cff33ffcc" .. C.global.profile .. "|r'?", function() + CreateQuestionDialog(T["Load profile"] .. " '|cff33ffcc" .. C.global.profile .. "|r'?", function() local selp = C.global.profile _G["pfUI_config"] = CopyTable(pfUI_profiles[C.global.profile]) C.global.profile = selp @@ -672,9 +672,9 @@ pfUI:RegisterModule("gui", function () end) -- delete profile - CreateConfig(this, "Delete profile", C.global, "profile", "button", function() + CreateConfig(this, T["Delete profile"], C.global, "profile", "button", function() if C.global.profile and pfUI_profiles[C.global.profile] then - CreateQuestionDialog("Delete profile '|cff33ffcc" .. C.global.profile .. "|r'?", function() + CreateQuestionDialog(T["Delete profile"] .. " '|cff33ffcc" .. C.global.profile .. "|r'?", function() pfUI_profiles[C.global.profile] = nil pfUpdateProfiles() this:GetParent():Hide() @@ -683,9 +683,9 @@ pfUI:RegisterModule("gui", function () end, true) -- save profile - CreateConfig(this, "Save profile", C.global, "profile", "button", function() + CreateConfig(this, T["Save profile"], C.global, "profile", "button", function() if C.global.profile and pfUI_profiles[C.global.profile] then - CreateQuestionDialog("Save current settings to profile '|cff33ffcc" .. C.global.profile .. "|r'?", function() + CreateQuestionDialog(T["Save current settings to profile"] .. " '|cff33ffcc" .. C.global.profile .. "|r'?", function() if pfUI_profiles[C.global.profile] then pfUI_profiles[C.global.profile] = CopyTable(C) end @@ -695,13 +695,13 @@ pfUI:RegisterModule("gui", function () end, true) -- create profile - CreateConfig(this, "Create Profile", C.global, "profile", "button", function() - CreateQuestionDialog("Please enter a name for the new profile.\nExisting profiles sharing the same name will be overwritten.", + CreateConfig(this, T["Create Profile"], C.global, "profile", "button", function() + CreateQuestionDialog(T["Please enter a name for the new profile.\nExisting profiles sharing the same name will be overwritten."], function() local profile = this:GetParent().input:GetText() local bad = string.gsub(profile,"([%w%s]+)","") if bad~="" then - message('Cannot create profile: \"'..bad..'\"' .. " is not allowed in profile name") + message("\"" .. bad .. "\" " .. T["is not allowed in profile name"]) else profile = (string.gsub(profile,"^%s*(.-)%s*$", "%1")) if profile and profile ~= "" then @@ -718,672 +718,672 @@ pfUI:RegisterModule("gui", function () end) -- >> Appearance - pfUI.gui.tabs.settings.tabs.appearance = pfUI.gui.tabs.settings.tabs:CreateChildFrame("Appearance", 70) + pfUI.gui.tabs.settings.tabs.appearance = pfUI.gui.tabs.settings.tabs:CreateChildFrame(T["Appearance"], 70) pfUI.gui.tabs.settings.tabs.appearance:SetScript("OnShow", function() if not this.setup then - CreateConfig(this, "Background Color", C.appearance.border, "background", "color") - CreateConfig(this, "Border Color", C.appearance.border, "color", "color") + CreateConfig(this, T["Background Color"], C.appearance.border, "background", "color") + CreateConfig(this, T["Border Color"], C.appearance.border, "color", "color") CreateConfig(this) -- spacer - CreateConfig(this, "Global Border Size", C.appearance.border, "default") - CreateConfig(this, "Action Bar Border Size", C.appearance.border, "actionbars") - CreateConfig(this, "Unit Frame Border Size", C.appearance.border, "unitframes") - CreateConfig(this, "Panel Border Size", C.appearance.border, "panels") - CreateConfig(this, "Chat Border Size", C.appearance.border, "chat") - CreateConfig(this, "Bags Border Size", C.appearance.border, "bags") + CreateConfig(this, T["Global Border Size"], C.appearance.border, "default") + CreateConfig(this, T["Action Bar Border Size"], C.appearance.border, "actionbars") + CreateConfig(this, T["Unit Frame Border Size"], C.appearance.border, "unitframes") + CreateConfig(this, T["Panel Border Size"], C.appearance.border, "panels") + CreateConfig(this, T["Chat Border Size"], C.appearance.border, "chat") + CreateConfig(this, T["Bags Border Size"], C.appearance.border, "bags") this.setup = true end end) -- >> Cooldown - pfUI.gui.tabs.settings.tabs.cooldown = pfUI.gui.tabs.settings.tabs:CreateChildFrame("Cooldown", 70) + pfUI.gui.tabs.settings.tabs.cooldown = pfUI.gui.tabs.settings.tabs:CreateChildFrame(T["Cooldown"], 70) pfUI.gui.tabs.settings.tabs.cooldown:SetScript("OnShow", function() if not this.setup then - CreateConfig(this, "Cooldown Color (Less than 3 Sec)", C.appearance.cd, "lowcolor", "color") - CreateConfig(this, "Cooldown Color (Seconds)", C.appearance.cd, "normalcolor", "color") - CreateConfig(this, "Cooldown Color (Minutes)", C.appearance.cd, "minutecolor", "color") - CreateConfig(this, "Cooldown Color (Hours)", C.appearance.cd, "hourcolor", "color") - CreateConfig(this, "Cooldown Color (Days)", C.appearance.cd, "daycolor", "color") - CreateConfig(this, "Cooldown Text Threshold", C.appearance.cd, "threshold") - CreateConfig(this, "Cooldown Text Font Size", C.appearance.cd, "font_size") + CreateConfig(this, T["Cooldown Color (Less than 3 Sec)"], C.appearance.cd, "lowcolor", "color") + CreateConfig(this, T["Cooldown Color (Seconds)"], C.appearance.cd, "normalcolor", "color") + CreateConfig(this, T["Cooldown Color (Minutes)"], C.appearance.cd, "minutecolor", "color") + CreateConfig(this, T["Cooldown Color (Hours)"], C.appearance.cd, "hourcolor", "color") + CreateConfig(this, T["Cooldown Color (Days)"], C.appearance.cd, "daycolor", "color") + CreateConfig(this, T["Cooldown Text Threshold"], C.appearance.cd, "threshold") + CreateConfig(this, T["Cooldown Text Font Size"], C.appearance.cd, "font_size") this.setup = true end end) -- [[ UnitFrames ]] - pfUI.gui.tabs.uf = pfUI.gui.tabs:CreateChildFrame("Unit Frames", nil, nil, nil, true) + pfUI.gui.tabs.uf = pfUI.gui.tabs:CreateChildFrame(T["Unit Frames"], nil, nil, nil, true) pfUI.gui.tabs.uf.tabs = Createtabs(pfUI.gui.tabs.uf, "TOP", true) -- >> General - pfUI.gui.tabs.uf.tabs.general = pfUI.gui.tabs.uf.tabs:CreateChildFrame("General", 70) + pfUI.gui.tabs.uf.tabs.general = pfUI.gui.tabs.uf.tabs:CreateChildFrame(T["General"], 70) pfUI.gui.tabs.uf.tabs.general:SetScript("OnShow", function() if not this.setup then - CreateConfig(this, "Disable pfUI Unit Frames", C.unitframes, "disable", "checkbox") - CreateConfig(this, "Enable Pastel Colors", C.unitframes, "pastel", "checkbox") - CreateConfig(this, "Enable Custom Color Health Bars", C.unitframes, "custom", "checkbox") - CreateConfig(this, "Custom Health Bar Color", C.unitframes, "customcolor", "color") - CreateConfig(this, "Enable Custom Color Health Bar Background", C.unitframes, "custombg", "checkbox") - CreateConfig(this, "Custom Health Bar Background Color", C.unitframes, "custombgcolor", "color") - CreateConfig(this, "Healthbar Animation Speed", C.unitframes, "animation_speed") - CreateConfig(this, "Portrait Alpha", C.unitframes, "portraitalpha") - CreateConfig(this, "Always Use 2D Portraits", C.unitframes, "always2dportrait", "checkbox") - CreateConfig(this, "Enable 2D Portraits As Fallback", C.unitframes, "portraittexture", "checkbox") - CreateConfig(this, "Unit Frame Layout", C.unitframes, "layout", "dropdown", { "default", "tukui" }) - CreateConfig(this, "Aggressive 40y-Range Check (Will break stuff)", C.unitframes, "rangecheck", "checkbox") - CreateConfig(this, "40y-Range Check Interval", C.unitframes, "rangechecki") - CreateConfig(this, "Combopoint Size", C.unitframes, "combosize") - CreateConfig(this, "Abbreviate Numbers (4200 -> 4.2k)", C.unitframes, "abbrevnum", "checkbox") - CreateConfig(this, "Show PvP Icon", C.unitframes.player, "showPVP", "checkbox") - CreateConfig(this, "Enable Energy Ticks", C.unitframes.player, "energy", "checkbox") + CreateConfig(this, T["Disable pfUI Unit Frames"], C.unitframes, "disable", "checkbox") + CreateConfig(this, T["Enable Pastel Colors"], C.unitframes, "pastel", "checkbox") + CreateConfig(this, T["Enable Custom Color Health Bars"], C.unitframes, "custom", "checkbox") + CreateConfig(this, T["Custom Health Bar Color"], C.unitframes, "customcolor", "color") + CreateConfig(this, T["Enable Custom Color Health Bar Background"], C.unitframes, "custombg", "checkbox") + CreateConfig(this, T["Custom Health Bar Background Color"], C.unitframes, "custombgcolor", "color") + CreateConfig(this, T["Healthbar Animation Speed"], C.unitframes, "animation_speed") + CreateConfig(this, T["Portrait Alpha"], C.unitframes, "portraitalpha") + CreateConfig(this, T["Always Use 2D Portraits"], C.unitframes, "always2dportrait", "checkbox") + CreateConfig(this, T["Enable 2D Portraits As Fallback"], C.unitframes, "portraittexture", "checkbox") + CreateConfig(this, T["Unit Frame Layout"], C.unitframes, "layout", "dropdown", { "default", "tukui" }) + CreateConfig(this, T["Aggressive 40y-Range Check (Will break stuff)"], C.unitframes, "rangecheck", "checkbox") + CreateConfig(this, T["40y-Range Check Interval"], C.unitframes, "rangechecki") + CreateConfig(this, T["Combopoint Size"], C.unitframes, "combosize") + CreateConfig(this, T["Abbreviate Numbers (4200 -> 4.2k)"], C.unitframes, "abbrevnum", "checkbox") + CreateConfig(this, T["Show PvP Icon"], C.unitframes.player, "showPVP", "checkbox") + CreateConfig(this, T["Enable Energy Ticks"], C.unitframes.player, "energy", "checkbox") this.setup = true end end) -- >> Player - pfUI.gui.tabs.uf.tabs.player = pfUI.gui.tabs.uf.tabs:CreateChildFrame("Player", 70) + pfUI.gui.tabs.uf.tabs.player = pfUI.gui.tabs.uf.tabs:CreateChildFrame(T["Player"], 70) pfUI.gui.tabs.uf.tabs.player:SetScript("OnShow", function() if not this.setup then - CreateConfig(this, "Display Player Frame", C.unitframes.player, "visible", "checkbox") - CreateConfig(this, "Portrait Position", C.unitframes.player, "portrait", "dropdown", { "bar", "left", "right", "off" }) - CreateConfig(this, "Health Bar Width", C.unitframes.player, "width") - CreateConfig(this, "Health Bar Height", C.unitframes.player, "height") - CreateConfig(this, "Power Bar Height", C.unitframes.player, "pheight") - CreateConfig(this, "Spacing", C.unitframes.player, "pspace") - CreateConfig(this, "Buff Position", C.unitframes.player, "buffs", "dropdown", { "top", "bottom", "off"}) - CreateConfig(this, "Buff Size", C.unitframes.player, "buffsize") - CreateConfig(this, "Buff Limit", C.unitframes.player, "bufflimit") - CreateConfig(this, "Buffs Per Row", C.unitframes.player, "buffperrow") - CreateConfig(this, "Debuff Position", C.unitframes.player, "debuffs", "dropdown", { "top", "bottom", "off"}) - CreateConfig(this, "Debuff Size", C.unitframes.player, "debuffsize") - CreateConfig(this, "Debuff Limit", C.unitframes.player, "debufflimit") - CreateConfig(this, "Debuffs Per Row", C.unitframes.player, "debuffperrow") - CreateConfig(this, "Invert Health Bar", C.unitframes.player, "invert_healthbar", "checkbox") - CreateConfig(this, "Enable Buff Indicators", C.unitframes.player, "buff_indicator", "checkbox") - CreateConfig(this, "Enable Debuff Indicators", C.unitframes.player, "debuff_indicator", "checkbox") - CreateConfig(this, "Enable Clickcast", C.unitframes.player, "clickcast", "checkbox") - CreateConfig(this, "Enable Range Fading", C.unitframes.player, "faderange", "checkbox") - CreateConfig(this, "Left Text", C.unitframes.player, "txtleft", "dropdown", txtValues) - CreateConfig(this, "Center Text", C.unitframes.player, "txtcenter", "dropdown", txtValues) - CreateConfig(this, "Right Text", C.unitframes.player, "txtright", "dropdown", txtValues) - CreateConfig(this, "Enable Health Color in Text", C.unitframes.player, "healthcolor", "checkbox") - CreateConfig(this, "Enable Power Color in Text", C.unitframes.player, "powercolor", "checkbox") - CreateConfig(this, "Enable Level Color in Text", C.unitframes.player, "levelcolor", "checkbox") - CreateConfig(this, "Enable Class Color in Text", C.unitframes.player, "classcolor", "checkbox") + CreateConfig(this, T["Display Player Frame"], C.unitframes.player, "visible", "checkbox") + CreateConfig(this, T["Portrait Position"], C.unitframes.player, "portrait", "dropdown", { "bar", "left", "right", "off" }) + CreateConfig(this, T["Health Bar Width"], C.unitframes.player, "width") + CreateConfig(this, T["Health Bar Height"], C.unitframes.player, "height") + CreateConfig(this, T["Power Bar Height"], C.unitframes.player, "pheight") + CreateConfig(this, T["Spacing"], C.unitframes.player, "pspace") + CreateConfig(this, T["Buff Position"], C.unitframes.player, "buffs", "dropdown", { "top", "bottom", "off"}) + CreateConfig(this, T["Buff Size"], C.unitframes.player, "buffsize") + CreateConfig(this, T["Buff Limit"], C.unitframes.player, "bufflimit") + CreateConfig(this, T["Buffs Per Row"], C.unitframes.player, "buffperrow") + CreateConfig(this, T["Debuff Position"], C.unitframes.player, "debuffs", "dropdown", { "top", "bottom", "off"}) + CreateConfig(this, T["Debuff Size"], C.unitframes.player, "debuffsize") + CreateConfig(this, T["Debuff Limit"], C.unitframes.player, "debufflimit") + CreateConfig(this, T["Debuffs Per Row"], C.unitframes.player, "debuffperrow") + CreateConfig(this, T["Invert Health Bar"], C.unitframes.player, "invert_healthbar", "checkbox") + CreateConfig(this, T["Enable Buff Indicators"], C.unitframes.player, "buff_indicator", "checkbox") + CreateConfig(this, T["Enable Debuff Indicators"], C.unitframes.player, "debuff_indicator", "checkbox") + CreateConfig(this, T["Enable Clickcast"], C.unitframes.player, "clickcast", "checkbox") + CreateConfig(this, T["Enable Range Fading"], C.unitframes.player, "faderange", "checkbox") + CreateConfig(this, T["Left Text"], C.unitframes.player, "txtleft", "dropdown", txtValues) + CreateConfig(this, T["Center Text"], C.unitframes.player, "txtcenter", "dropdown", txtValues) + CreateConfig(this, T["Right Text"], C.unitframes.player, "txtright", "dropdown", txtValues) + CreateConfig(this, T["Enable Health Color in Text"], C.unitframes.player, "healthcolor", "checkbox") + CreateConfig(this, T["Enable Power Color in Text"], C.unitframes.player, "powercolor", "checkbox") + CreateConfig(this, T["Enable Level Color in Text"], C.unitframes.player, "levelcolor", "checkbox") + CreateConfig(this, T["Enable Class Color in Text"], C.unitframes.player, "classcolor", "checkbox") this.setup = true end end) -- >> Target - pfUI.gui.tabs.uf.tabs.target = pfUI.gui.tabs.uf.tabs:CreateChildFrame("Target", 70) + pfUI.gui.tabs.uf.tabs.target = pfUI.gui.tabs.uf.tabs:CreateChildFrame(T["Target"], 70) pfUI.gui.tabs.uf.tabs.target:SetScript("OnShow", function() if not this.setup then - CreateConfig(this, "Display Target Frame", C.unitframes.target, "visible", "checkbox") - CreateConfig(this, "Enable Target Switch Animation", C.unitframes.target, "animation", "checkbox") - CreateConfig(this, "Portrait Position", C.unitframes.target, "portrait", "dropdown", { "bar", "left", "right", "off" }) - CreateConfig(this, "Health Bar Width", C.unitframes.target, "width") - CreateConfig(this, "Health Bar Height", C.unitframes.target, "height") - CreateConfig(this, "Power Bar Height", C.unitframes.target, "pheight") - CreateConfig(this, "Spacing", C.unitframes.target, "pspace") - CreateConfig(this, "Buff Position", C.unitframes.target, "buffs", "dropdown", { "top", "bottom", "off"}) - CreateConfig(this, "Buff Size", C.unitframes.target, "buffsize") - CreateConfig(this, "Buff Limit", C.unitframes.target, "bufflimit") - CreateConfig(this, "Buffs Per Row", C.unitframes.target, "buffperrow") - CreateConfig(this, "Debuff Position", C.unitframes.target, "debuffs", "dropdown", { "top", "bottom", "off"}) - CreateConfig(this, "Debuff Size", C.unitframes.target, "debuffsize") - CreateConfig(this, "Debuff Limit", C.unitframes.target, "debufflimit") - CreateConfig(this, "Debuffs Per Row", C.unitframes.target, "debuffperrow") - CreateConfig(this, "Invert Health Bar", C.unitframes.target, "invert_healthbar", "checkbox") - CreateConfig(this, "Enable Buff Indicators", C.unitframes.target, "buff_indicator", "checkbox") - CreateConfig(this, "Enable Debuff Indicators", C.unitframes.target, "debuff_indicator", "checkbox") - CreateConfig(this, "Enable Clickcast", C.unitframes.target, "clickcast", "checkbox") - CreateConfig(this, "Enable Range Fading", C.unitframes.target, "faderange", "checkbox") - CreateConfig(this, "Left Text", C.unitframes.target, "txtleft", "dropdown", txtValues) - CreateConfig(this, "Center Text", C.unitframes.target, "txtcenter", "dropdown", txtValues) - CreateConfig(this, "Right Text", C.unitframes.target, "txtright", "dropdown", txtValues) - CreateConfig(this, "Enable Health Color in Text", C.unitframes.target, "healthcolor", "checkbox") - CreateConfig(this, "Enable Power Color in Text", C.unitframes.target, "powercolor", "checkbox") - CreateConfig(this, "Enable Level Color in Text", C.unitframes.target, "levelcolor", "checkbox") - CreateConfig(this, "Enable Class Color in Text", C.unitframes.target, "classcolor", "checkbox") + CreateConfig(this, T["Display Target Frame"], C.unitframes.target, "visible", "checkbox") + CreateConfig(this, T["Enable Target Switch Animation"], C.unitframes.target, "animation", "checkbox") + CreateConfig(this, T["Portrait Position"], C.unitframes.target, "portrait", "dropdown", { "bar", "left", "right", "off" }) + CreateConfig(this, T["Health Bar Width"], C.unitframes.target, "width") + CreateConfig(this, T["Health Bar Height"], C.unitframes.target, "height") + CreateConfig(this, T["Power Bar Height"], C.unitframes.target, "pheight") + CreateConfig(this, T["Spacing"], C.unitframes.target, "pspace") + CreateConfig(this, T["Buff Position"], C.unitframes.target, "buffs", "dropdown", { "top", "bottom", "off"}) + CreateConfig(this, T["Buff Size"], C.unitframes.target, "buffsize") + CreateConfig(this, T["Buff Limit"], C.unitframes.target, "bufflimit") + CreateConfig(this, T["Buffs Per Row"], C.unitframes.target, "buffperrow") + CreateConfig(this, T["Debuff Position"], C.unitframes.target, "debuffs", "dropdown", { "top", "bottom", "off"}) + CreateConfig(this, T["Debuff Size"], C.unitframes.target, "debuffsize") + CreateConfig(this, T["Debuff Limit"], C.unitframes.target, "debufflimit") + CreateConfig(this, T["Debuffs Per Row"], C.unitframes.target, "debuffperrow") + CreateConfig(this, T["Invert Health Bar"], C.unitframes.target, "invert_healthbar", "checkbox") + CreateConfig(this, T["Enable Buff Indicators"], C.unitframes.target, "buff_indicator", "checkbox") + CreateConfig(this, T["Enable Debuff Indicators"], C.unitframes.target, "debuff_indicator", "checkbox") + CreateConfig(this, T["Enable Clickcast"], C.unitframes.target, "clickcast", "checkbox") + CreateConfig(this, T["Enable Range Fading"], C.unitframes.target, "faderange", "checkbox") + CreateConfig(this, T["Left Text"], C.unitframes.target, "txtleft", "dropdown", txtValues) + CreateConfig(this, T["Center Text"], C.unitframes.target, "txtcenter", "dropdown", txtValues) + CreateConfig(this, T["Right Text"], C.unitframes.target, "txtright", "dropdown", txtValues) + CreateConfig(this, T["Enable Health Color in Text"], C.unitframes.target, "healthcolor", "checkbox") + CreateConfig(this, T["Enable Power Color in Text"], C.unitframes.target, "powercolor", "checkbox") + CreateConfig(this, T["Enable Level Color in Text"], C.unitframes.target, "levelcolor", "checkbox") + CreateConfig(this, T["Enable Class Color in Text"], C.unitframes.target, "classcolor", "checkbox") this.setup = true end end) -- >> Target-Target - pfUI.gui.tabs.uf.tabs.targettarget = pfUI.gui.tabs.uf.tabs:CreateChildFrame("Target-Target", 70) + pfUI.gui.tabs.uf.tabs.targettarget = pfUI.gui.tabs.uf.tabs:CreateChildFrame(T["Target-Target"], 70) pfUI.gui.tabs.uf.tabs.targettarget:SetScript("OnShow", function() if not this.setup then - CreateConfig(this, "Display Target of Target Frame", C.unitframes.ttarget, "visible", "checkbox") - CreateConfig(this, "Portrait Position", C.unitframes.ttarget, "portrait", "dropdown", { "bar", "left", "right", "off" }) - CreateConfig(this, "Health Bar Width", C.unitframes.ttarget, "width") - CreateConfig(this, "Health Bar Height", C.unitframes.ttarget, "height") - CreateConfig(this, "Power Bar Height", C.unitframes.ttarget, "pheight") - CreateConfig(this, "Spacing", C.unitframes.ttarget, "pspace") - CreateConfig(this, "Buff Position", C.unitframes.ttarget, "buffs", "dropdown", { "top", "bottom", "off"}) - CreateConfig(this, "Buff Size", C.unitframes.ttarget, "buffsize") - CreateConfig(this, "Buff Limit", C.unitframes.ttarget, "bufflimit") - CreateConfig(this, "Buffs Per Row", C.unitframes.ttarget, "buffperrow") - CreateConfig(this, "Debuff Position", C.unitframes.ttarget, "debuffs", "dropdown", { "top", "bottom", "off"}) - CreateConfig(this, "Debuff Size", C.unitframes.ttarget, "debuffsize") - CreateConfig(this, "Debuff Limit", C.unitframes.ttarget, "debufflimit") - CreateConfig(this, "Debuffs Per Row", C.unitframes.ttarget, "debuffperrow") - CreateConfig(this, "Invert Health Bar", C.unitframes.ttarget, "invert_healthbar", "checkbox") - CreateConfig(this, "Enable Buff Indicators", C.unitframes.ttarget, "buff_indicator", "checkbox") - CreateConfig(this, "Enable Debuff Indicators", C.unitframes.ttarget, "debuff_indicator", "checkbox") - CreateConfig(this, "Enable Clickcast", C.unitframes.ttarget, "clickcast", "checkbox") - CreateConfig(this, "Enable Range Fading", C.unitframes.ttarget, "faderange", "checkbox") - CreateConfig(this, "Left Text", C.unitframes.ttarget, "txtleft", "dropdown", txtValues) - CreateConfig(this, "Center Text", C.unitframes.ttarget, "txtcenter", "dropdown", txtValues) - CreateConfig(this, "Right Text", C.unitframes.ttarget, "txtright", "dropdown", txtValues) - CreateConfig(this, "Enable Health Color in Text", C.unitframes.ttarget, "healthcolor", "checkbox") - CreateConfig(this, "Enable Power Color in Text", C.unitframes.ttarget, "powercolor", "checkbox") - CreateConfig(this, "Enable Level Color in Text", C.unitframes.ttarget, "levelcolor", "checkbox") - CreateConfig(this, "Enable Class Color in Text", C.unitframes.ttarget, "classcolor", "checkbox") + CreateConfig(this, T["Display Target of Target Frame"], C.unitframes.ttarget, "visible", "checkbox") + CreateConfig(this, T["Portrait Position"], C.unitframes.ttarget, "portrait", "dropdown", { "bar", "left", "right", "off" }) + CreateConfig(this, T["Health Bar Width"], C.unitframes.ttarget, "width") + CreateConfig(this, T["Health Bar Height"], C.unitframes.ttarget, "height") + CreateConfig(this, T["Power Bar Height"], C.unitframes.ttarget, "pheight") + CreateConfig(this, T["Spacing"], C.unitframes.ttarget, "pspace") + CreateConfig(this, T["Buff Position"], C.unitframes.ttarget, "buffs", "dropdown", { "top", "bottom", "off"}) + CreateConfig(this, T["Buff Size"], C.unitframes.ttarget, "buffsize") + CreateConfig(this, T["Buff Limit"], C.unitframes.ttarget, "bufflimit") + CreateConfig(this, T["Buffs Per Row"], C.unitframes.ttarget, "buffperrow") + CreateConfig(this, T["Debuff Position"], C.unitframes.ttarget, "debuffs", "dropdown", { "top", "bottom", "off"}) + CreateConfig(this, T["Debuff Size"], C.unitframes.ttarget, "debuffsize") + CreateConfig(this, T["Debuff Limit"], C.unitframes.ttarget, "debufflimit") + CreateConfig(this, T["Debuffs Per Row"], C.unitframes.ttarget, "debuffperrow") + CreateConfig(this, T["Invert Health Bar"], C.unitframes.ttarget, "invert_healthbar", "checkbox") + CreateConfig(this, T["Enable Buff Indicators"], C.unitframes.ttarget, "buff_indicator", "checkbox") + CreateConfig(this, T["Enable Debuff Indicators"], C.unitframes.ttarget, "debuff_indicator", "checkbox") + CreateConfig(this, T["Enable Clickcast"], C.unitframes.ttarget, "clickcast", "checkbox") + CreateConfig(this, T["Enable Range Fading"], C.unitframes.ttarget, "faderange", "checkbox") + CreateConfig(this, T["Left Text"], C.unitframes.ttarget, "txtleft", "dropdown", txtValues) + CreateConfig(this, T["Center Text"], C.unitframes.ttarget, "txtcenter", "dropdown", txtValues) + CreateConfig(this, T["Right Text"], C.unitframes.ttarget, "txtright", "dropdown", txtValues) + CreateConfig(this, T["Enable Health Color in Text"], C.unitframes.ttarget, "healthcolor", "checkbox") + CreateConfig(this, T["Enable Power Color in Text"], C.unitframes.ttarget, "powercolor", "checkbox") + CreateConfig(this, T["Enable Level Color in Text"], C.unitframes.ttarget, "levelcolor", "checkbox") + CreateConfig(this, T["Enable Class Color in Text"], C.unitframes.ttarget, "classcolor", "checkbox") this.setup = true end end) -- >> Pet - pfUI.gui.tabs.uf.tabs.pet = pfUI.gui.tabs.uf.tabs:CreateChildFrame("Pet", 70) + pfUI.gui.tabs.uf.tabs.pet = pfUI.gui.tabs.uf.tabs:CreateChildFrame(T["Pet"], 70) pfUI.gui.tabs.uf.tabs.pet:SetScript("OnShow", function() if not this.setup then - CreateConfig(this, "Display Pet Frame", C.unitframes.player, "visible", "checkbox") - CreateConfig(this, "Portrait Position", C.unitframes.pet, "portrait", "dropdown", { "bar", "left", "right", "off" }) - CreateConfig(this, "Health Bar Width", C.unitframes.pet, "width") - CreateConfig(this, "Health Bar Height", C.unitframes.pet, "height") - CreateConfig(this, "Power Bar Height", C.unitframes.pet, "pheight") - CreateConfig(this, "Spacing", C.unitframes.pet, "pspace") - CreateConfig(this, "Buff Position", C.unitframes.pet, "buffs", "dropdown", { "top", "bottom", "off"}) - CreateConfig(this, "Buff Size", C.unitframes.pet, "buffsize") - CreateConfig(this, "Buff Limit", C.unitframes.pet, "bufflimit") - CreateConfig(this, "Buffs Per Row", C.unitframes.pet, "buffperrow") - CreateConfig(this, "Debuff Position", C.unitframes.pet, "debuffs", "dropdown", { "top", "bottom", "off"}) - CreateConfig(this, "Debuff Size", C.unitframes.pet, "debuffsize") - CreateConfig(this, "Debuff Limit", C.unitframes.pet, "debufflimit") - CreateConfig(this, "Debuffs Per Row", C.unitframes.pet, "debuffperrow") - CreateConfig(this, "Invert Health Bar", C.unitframes.pet, "invert_healthbar", "checkbox") - CreateConfig(this, "Enable Buff Indicators", C.unitframes.pet, "buff_indicator", "checkbox") - CreateConfig(this, "Enable Debuff Indicators", C.unitframes.pet, "debuff_indicator", "checkbox") - CreateConfig(this, "Enable Clickcast", C.unitframes.pet, "clickcast", "checkbox") - CreateConfig(this, "Enable Range Fading", C.unitframes.pet, "faderange", "checkbox") - CreateConfig(this, "Left Text", C.unitframes.pet, "txtleft", "dropdown", txtValues) - CreateConfig(this, "Center Text", C.unitframes.pet, "txtcenter", "dropdown", txtValues) - CreateConfig(this, "Right Text", C.unitframes.pet, "txtright", "dropdown", txtValues) - CreateConfig(this, "Enable Health Color in Text", C.unitframes.pet, "healthcolor", "checkbox") - CreateConfig(this, "Enable Power Color in Text", C.unitframes.pet, "powercolor", "checkbox") - CreateConfig(this, "Enable Level Color in Text", C.unitframes.pet, "levelcolor", "checkbox") - CreateConfig(this, "Enable Class Color in Text", C.unitframes.pet, "classcolor", "checkbox") + CreateConfig(this, T["Display Pet Frame"], C.unitframes.player, "visible", "checkbox") + CreateConfig(this, T["Portrait Position"], C.unitframes.pet, "portrait", "dropdown", { "bar", "left", "right", "off" }) + CreateConfig(this, T["Health Bar Width"], C.unitframes.pet, "width") + CreateConfig(this, T["Health Bar Height"], C.unitframes.pet, "height") + CreateConfig(this, T["Power Bar Height"], C.unitframes.pet, "pheight") + CreateConfig(this, T["Spacing"], C.unitframes.pet, "pspace") + CreateConfig(this, T["Buff Position"], C.unitframes.pet, "buffs", "dropdown", { "top", "bottom", "off"}) + CreateConfig(this, T["Buff Size"], C.unitframes.pet, "buffsize") + CreateConfig(this, T["Buff Limit"], C.unitframes.pet, "bufflimit") + CreateConfig(this, T["Buffs Per Row"], C.unitframes.pet, "buffperrow") + CreateConfig(this, T["Debuff Position"], C.unitframes.pet, "debuffs", "dropdown", { "top", "bottom", "off"}) + CreateConfig(this, T["Debuff Size"], C.unitframes.pet, "debuffsize") + CreateConfig(this, T["Debuff Limit"], C.unitframes.pet, "debufflimit") + CreateConfig(this, T["Debuffs Per Row"], C.unitframes.pet, "debuffperrow") + CreateConfig(this, T["Invert Health Bar"], C.unitframes.pet, "invert_healthbar", "checkbox") + CreateConfig(this, T["Enable Buff Indicators"], C.unitframes.pet, "buff_indicator", "checkbox") + CreateConfig(this, T["Enable Debuff Indicators"], C.unitframes.pet, "debuff_indicator", "checkbox") + CreateConfig(this, T["Enable Clickcast"], C.unitframes.pet, "clickcast", "checkbox") + CreateConfig(this, T["Enable Range Fading"], C.unitframes.pet, "faderange", "checkbox") + CreateConfig(this, T["Left Text"], C.unitframes.pet, "txtleft", "dropdown", txtValues) + CreateConfig(this, T["Center Text"], C.unitframes.pet, "txtcenter", "dropdown", txtValues) + CreateConfig(this, T["Right Text"], C.unitframes.pet, "txtright", "dropdown", txtValues) + CreateConfig(this, T["Enable Health Color in Text"], C.unitframes.pet, "healthcolor", "checkbox") + CreateConfig(this, T["Enable Power Color in Text"], C.unitframes.pet, "powercolor", "checkbox") + CreateConfig(this, T["Enable Level Color in Text"], C.unitframes.pet, "levelcolor", "checkbox") + CreateConfig(this, T["Enable Class Color in Text"], C.unitframes.pet, "classcolor", "checkbox") this.setup = true end end) -- >> Focus - pfUI.gui.tabs.uf.tabs.focus = pfUI.gui.tabs.uf.tabs:CreateChildFrame("Focus", 70) + pfUI.gui.tabs.uf.tabs.focus = pfUI.gui.tabs.uf.tabs:CreateChildFrame(T["Focus"], 70) pfUI.gui.tabs.uf.tabs.focus:SetScript("OnShow", function() if not this.setup then - CreateConfig(this, "Display Focus Frame", C.unitframes.focus, "visible", "checkbox") - CreateConfig(this, "Portrait Position", C.unitframes.focus, "portrait", "dropdown", { "bar", "left", "right", "off" }) - CreateConfig(this, "Health Bar Width", C.unitframes.focus, "width") - CreateConfig(this, "Health Bar Height", C.unitframes.focus, "height") - CreateConfig(this, "Power Bar Height", C.unitframes.focus, "pheight") - CreateConfig(this, "Spacing", C.unitframes.focus, "pspace") - CreateConfig(this, "Buff Position", C.unitframes.focus, "buffs", "dropdown", { "top", "bottom", "off"}) - CreateConfig(this, "Buff Size", C.unitframes.focus, "buffsize") - CreateConfig(this, "Buff Limit", C.unitframes.focus, "bufflimit") - CreateConfig(this, "Buffs Per Row", C.unitframes.focus, "buffperrow") - CreateConfig(this, "Debuff Position", C.unitframes.focus, "debuffs", "dropdown", { "top", "bottom", "off"}) - CreateConfig(this, "Debuff Size", C.unitframes.focus, "debuffsize") - CreateConfig(this, "Debuff Limit", C.unitframes.focus, "debufflimit") - CreateConfig(this, "Debuffs Per Row", C.unitframes.focus, "debuffperrow") - CreateConfig(this, "Invert Health Bar", C.unitframes.focus, "invert_healthbar", "checkbox") - CreateConfig(this, "Enable Buff Indicators", C.unitframes.focus, "buff_indicator", "checkbox") - CreateConfig(this, "Enable Debuff Indicators", C.unitframes.focus, "debuff_indicator", "checkbox") - CreateConfig(this, "Enable Clickcast", C.unitframes.focus, "clickcast", "checkbox") - CreateConfig(this, "Enable Range Fading", C.unitframes.focus, "faderange", "checkbox") - CreateConfig(this, "Left Text", C.unitframes.focus, "txtleft", "dropdown", txtValues) - CreateConfig(this, "Center Text", C.unitframes.focus, "txtcenter", "dropdown", txtValues) - CreateConfig(this, "Right Text", C.unitframes.focus, "txtright", "dropdown", txtValues) - CreateConfig(this, "Enable Health Color in Text", C.unitframes.focus, "healthcolor", "checkbox") - CreateConfig(this, "Enable Power Color in Text", C.unitframes.focus, "powercolor", "checkbox") - CreateConfig(this, "Enable Level Color in Text", C.unitframes.focus, "levelcolor", "checkbox") - CreateConfig(this, "Enable Class Color in Text", C.unitframes.focus, "classcolor", "checkbox") + CreateConfig(this, T["Display Focus Frame"], C.unitframes.focus, "visible", "checkbox") + CreateConfig(this, T["Portrait Position"], C.unitframes.focus, "portrait", "dropdown", { "bar", "left", "right", "off" }) + CreateConfig(this, T["Health Bar Width"], C.unitframes.focus, "width") + CreateConfig(this, T["Health Bar Height"], C.unitframes.focus, "height") + CreateConfig(this, T["Power Bar Height"], C.unitframes.focus, "pheight") + CreateConfig(this, T["Spacing"], C.unitframes.focus, "pspace") + CreateConfig(this, T["Buff Position"], C.unitframes.focus, "buffs", "dropdown", { "top", "bottom", "off"}) + CreateConfig(this, T["Buff Size"], C.unitframes.focus, "buffsize") + CreateConfig(this, T["Buff Limit"], C.unitframes.focus, "bufflimit") + CreateConfig(this, T["Buffs Per Row"], C.unitframes.focus, "buffperrow") + CreateConfig(this, T["Debuff Position"], C.unitframes.focus, "debuffs", "dropdown", { "top", "bottom", "off"}) + CreateConfig(this, T["Debuff Size"], C.unitframes.focus, "debuffsize") + CreateConfig(this, T["Debuff Limit"], C.unitframes.focus, "debufflimit") + CreateConfig(this, T["Debuffs Per Row"], C.unitframes.focus, "debuffperrow") + CreateConfig(this, T["Invert Health Bar"], C.unitframes.focus, "invert_healthbar", "checkbox") + CreateConfig(this, T["Enable Buff Indicators"], C.unitframes.focus, "buff_indicator", "checkbox") + CreateConfig(this, T["Enable Debuff Indicators"], C.unitframes.focus, "debuff_indicator", "checkbox") + CreateConfig(this, T["Enable Clickcast"], C.unitframes.focus, "clickcast", "checkbox") + CreateConfig(this, T["Enable Range Fading"], C.unitframes.focus, "faderange", "checkbox") + CreateConfig(this, T["Left Text"], C.unitframes.focus, "txtleft", "dropdown", txtValues) + CreateConfig(this, T["Center Text"], C.unitframes.focus, "txtcenter", "dropdown", txtValues) + CreateConfig(this, T["Right Text"], C.unitframes.focus, "txtright", "dropdown", txtValues) + CreateConfig(this, T["Enable Health Color in Text"], C.unitframes.focus, "healthcolor", "checkbox") + CreateConfig(this, T["Enable Power Color in Text"], C.unitframes.focus, "powercolor", "checkbox") + CreateConfig(this, T["Enable Level Color in Text"], C.unitframes.focus, "levelcolor", "checkbox") + CreateConfig(this, T["Enable Class Color in Text"], C.unitframes.focus, "classcolor", "checkbox") this.setup = true end end) -- [[ GroupFrames ]] - pfUI.gui.tabs.gf = pfUI.gui.tabs:CreateChildFrame("Group Frames", nil, nil, nil, true) + pfUI.gui.tabs.gf = pfUI.gui.tabs:CreateChildFrame(T["Group Frames"], nil, nil, nil, true) pfUI.gui.tabs.gf.tabs = Createtabs(pfUI.gui.tabs.gf, "TOP", true) -- >> General - pfUI.gui.tabs.gf.tabs.general = pfUI.gui.tabs.gf.tabs:CreateChildFrame("General", 70) + pfUI.gui.tabs.gf.tabs.general = pfUI.gui.tabs.gf.tabs:CreateChildFrame(T["General"], 70) pfUI.gui.tabs.gf.tabs.general:SetScript("OnShow", function() if not this.setup then - CreateConfig(this, "Show Hots as Buff Indicators", C.unitframes, "show_hots", "checkbox") - CreateConfig(this, "Show Hots of all Classes", C.unitframes, "all_hots", "checkbox") - CreateConfig(this, "Show Procs as Buff Indicators", C.unitframes, "show_procs", "checkbox") - CreateConfig(this, "Show Procs of all Classes", C.unitframes, "all_procs", "checkbox") - CreateConfig(this, "Only Show Indicators for Dispellable Debuffs", C.unitframes, "debuffs_class", "checkbox") - CreateConfig(this, "Clickcast Spells", nil, nil, "header") - CreateConfig(this, "Click Action", C.unitframes, "clickcast", nil, nil, nil, nil, "STRING") - CreateConfig(this, "Shift-Click Action", C.unitframes, "clickcast_shift", nil, nil, nil, nil, "STRING") - CreateConfig(this, "Alt-Click Action", C.unitframes, "clickcast_alt", nil, nil, nil, nil, "STRING") - CreateConfig(this, "Ctrl-Click Action", C.unitframes, "clickcast_ctrl", nil, nil, nil, nil, "STRING") + CreateConfig(this, T["Show Hots as Buff Indicators"], C.unitframes, "show_hots", "checkbox") + CreateConfig(this, T["Show Hots of all Classes"], C.unitframes, "all_hots", "checkbox") + CreateConfig(this, T["Show Procs as Buff Indicators"], C.unitframes, "show_procs", "checkbox") + CreateConfig(this, T["Show Procs of all Classes"], C.unitframes, "all_procs", "checkbox") + CreateConfig(this, T["Only Show Indicators for Dispellable Debuffs"], C.unitframes, "debuffs_class", "checkbox") + CreateConfig(this, T["Clickcast Spells"], nil, nil, "header") + CreateConfig(this, T["Click Action"], C.unitframes, "clickcast", nil, nil, nil, nil, "STRING") + CreateConfig(this, T["Shift-Click Action"], C.unitframes, "clickcast_shift", nil, nil, nil, nil, "STRING") + CreateConfig(this, T["Alt-Click Action"], C.unitframes, "clickcast_alt", nil, nil, nil, nil, "STRING") + CreateConfig(this, T["Ctrl-Click Action"], C.unitframes, "clickcast_ctrl", nil, nil, nil, nil, "STRING") this.setup = true end end) -- >> Raid - pfUI.gui.tabs.gf.tabs.raid = pfUI.gui.tabs.gf.tabs:CreateChildFrame("Raid", 70) + pfUI.gui.tabs.gf.tabs.raid = pfUI.gui.tabs.gf.tabs:CreateChildFrame(T["Raid"], 70) pfUI.gui.tabs.gf.tabs.raid:SetScript("OnShow", function() if not this.setup then - CreateConfig(this, "Display Raid Frames", C.unitframes.raid, "visible", "checkbox") - CreateConfig(this, "Portrait Position", C.unitframes.raid, "portrait", "dropdown", { "bar", "left", "right", "off" }) - CreateConfig(this, "Health Bar Width", C.unitframes.raid, "width") - CreateConfig(this, "Health Bar Height", C.unitframes.raid, "height") - CreateConfig(this, "Power Bar Height", C.unitframes.raid, "pheight") - CreateConfig(this, "Spacing", C.unitframes.raid, "pspace") - CreateConfig(this, "Buff Position", C.unitframes.raid, "buffs", "dropdown", { "top", "bottom", "off"}) - CreateConfig(this, "Buff Size", C.unitframes.raid, "buffsize") - CreateConfig(this, "Buff Limit", C.unitframes.raid, "bufflimit") - CreateConfig(this, "Buffs Per Row", C.unitframes.raid, "buffperrow") - CreateConfig(this, "Debuff Position", C.unitframes.raid, "debuffs", "dropdown", { "top", "bottom", "off"}) - CreateConfig(this, "Debuff Size", C.unitframes.raid, "debuffsize") - CreateConfig(this, "Debuff Limit", C.unitframes.raid, "debufflimit") - CreateConfig(this, "Debuffs Per Row", C.unitframes.raid, "debuffperrow") - CreateConfig(this, "Invert Health Bar", C.unitframes.raid, "invert_healthbar", "checkbox") - CreateConfig(this, "Enable Buff Indicators", C.unitframes.raid, "buff_indicator", "checkbox") - CreateConfig(this, "Enable Debuff Indicators", C.unitframes.raid, "debuff_indicator", "checkbox") - CreateConfig(this, "Enable Clickcast", C.unitframes.raid, "clickcast", "checkbox") - CreateConfig(this, "Enable Range Fading", C.unitframes.raid, "faderange", "checkbox") - CreateConfig(this, "Left Text", C.unitframes.raid, "txtleft", "dropdown", txtValues) - CreateConfig(this, "Center Text", C.unitframes.raid, "txtcenter", "dropdown", txtValues) - CreateConfig(this, "Right Text", C.unitframes.raid, "txtright", "dropdown", txtValues) - CreateConfig(this, "Enable Health Color in Text", C.unitframes.raid, "healthcolor", "checkbox") - CreateConfig(this, "Enable Power Color in Text", C.unitframes.raid, "powercolor", "checkbox") - CreateConfig(this, "Enable Level Color in Text", C.unitframes.raid, "levelcolor", "checkbox") - CreateConfig(this, "Enable Class Color in Text", C.unitframes.raid, "classcolor", "checkbox") + CreateConfig(this, T["Display Raid Frames"], C.unitframes.raid, "visible", "checkbox") + CreateConfig(this, T["Portrait Position"], C.unitframes.raid, "portrait", "dropdown", { "bar", "left", "right", "off" }) + CreateConfig(this, T["Health Bar Width"], C.unitframes.raid, "width") + CreateConfig(this, T["Health Bar Height"], C.unitframes.raid, "height") + CreateConfig(this, T["Power Bar Height"], C.unitframes.raid, "pheight") + CreateConfig(this, T["Spacing"], C.unitframes.raid, "pspace") + CreateConfig(this, T["Buff Position"], C.unitframes.raid, "buffs", "dropdown", { "top", "bottom", "off"}) + CreateConfig(this, T["Buff Size"], C.unitframes.raid, "buffsize") + CreateConfig(this, T["Buff Limit"], C.unitframes.raid, "bufflimit") + CreateConfig(this, T["Buffs Per Row"], C.unitframes.raid, "buffperrow") + CreateConfig(this, T["Debuff Position"], C.unitframes.raid, "debuffs", "dropdown", { "top", "bottom", "off"}) + CreateConfig(this, T["Debuff Size"], C.unitframes.raid, "debuffsize") + CreateConfig(this, T["Debuff Limit"], C.unitframes.raid, "debufflimit") + CreateConfig(this, T["Debuffs Per Row"], C.unitframes.raid, "debuffperrow") + CreateConfig(this, T["Invert Health Bar"], C.unitframes.raid, "invert_healthbar", "checkbox") + CreateConfig(this, T["Enable Buff Indicators"], C.unitframes.raid, "buff_indicator", "checkbox") + CreateConfig(this, T["Enable Debuff Indicators"], C.unitframes.raid, "debuff_indicator", "checkbox") + CreateConfig(this, T["Enable Clickcast"], C.unitframes.raid, "clickcast", "checkbox") + CreateConfig(this, T["Enable Range Fading"], C.unitframes.raid, "faderange", "checkbox") + CreateConfig(this, T["Left Text"], C.unitframes.raid, "txtleft", "dropdown", txtValues) + CreateConfig(this, T["Center Text"], C.unitframes.raid, "txtcenter", "dropdown", txtValues) + CreateConfig(this, T["Right Text"], C.unitframes.raid, "txtright", "dropdown", txtValues) + CreateConfig(this, T["Enable Health Color in Text"], C.unitframes.raid, "healthcolor", "checkbox") + CreateConfig(this, T["Enable Power Color in Text"], C.unitframes.raid, "powercolor", "checkbox") + CreateConfig(this, T["Enable Level Color in Text"], C.unitframes.raid, "levelcolor", "checkbox") + CreateConfig(this, T["Enable Class Color in Text"], C.unitframes.raid, "classcolor", "checkbox") this.setup = true end end) -- >> Group - pfUI.gui.tabs.gf.tabs.group = pfUI.gui.tabs.gf.tabs:CreateChildFrame("Group", 70) + pfUI.gui.tabs.gf.tabs.group = pfUI.gui.tabs.gf.tabs:CreateChildFrame(T["Group"], 70) pfUI.gui.tabs.gf.tabs.group:SetScript("OnShow", function() if not this.setup then - CreateConfig(this, "Display Group Frames", C.unitframes.group, "visible", "checkbox") - CreateConfig(this, "Portrait Position", C.unitframes.group, "portrait", "dropdown", { "bar", "left", "right", "off" }) - CreateConfig(this, "Health Bar Width", C.unitframes.group, "width") - CreateConfig(this, "Health Bar Height", C.unitframes.group, "height") - CreateConfig(this, "Power Bar Height", C.unitframes.group, "pheight") - CreateConfig(this, "Spacing", C.unitframes.group, "pspace") - CreateConfig(this, "Buff Position", C.unitframes.group, "buffs", "dropdown", { "top", "bottom", "off"}) - CreateConfig(this, "Buff Size", C.unitframes.group, "buffsize") - CreateConfig(this, "Buff Limit", C.unitframes.group, "bufflimit") - CreateConfig(this, "Buffs Per Row", C.unitframes.group, "buffperrow") - CreateConfig(this, "Debuff Position", C.unitframes.group, "debuffs", "dropdown", { "top", "bottom", "off"}) - CreateConfig(this, "Debuff Size", C.unitframes.group, "debuffsize") - CreateConfig(this, "Debuff Limit", C.unitframes.group, "debufflimit") - CreateConfig(this, "Debuffs Per Row", C.unitframes.group, "debuffperrow") - CreateConfig(this, "Invert Health Bar", C.unitframes.group, "invert_healthbar", "checkbox") - CreateConfig(this, "Enable Buff Indicators", C.unitframes.group, "buff_indicator", "checkbox") - CreateConfig(this, "Enable Debuff Indicators", C.unitframes.group, "debuff_indicator", "checkbox") - CreateConfig(this, "Enable Clickcast", C.unitframes.group, "clickcast", "checkbox") - CreateConfig(this, "Enable Range Fading", C.unitframes.group, "faderange", "checkbox") - CreateConfig(this, "Left Text", C.unitframes.group, "txtleft", "dropdown", txtValues) - CreateConfig(this, "Center Text", C.unitframes.group, "txtcenter", "dropdown", txtValues) - CreateConfig(this, "Right Text", C.unitframes.group, "txtright", "dropdown", txtValues) - CreateConfig(this, "Hide Group Frames When In A Raid", C.unitframes.group, "hide_in_raid", "checkbox") - CreateConfig(this, "Enable Health Color in Text", C.unitframes.group, "healthcolor", "checkbox") - CreateConfig(this, "Enable Power Color in Text", C.unitframes.group, "powercolor", "checkbox") - CreateConfig(this, "Enable Level Color in Text", C.unitframes.group, "levelcolor", "checkbox") - CreateConfig(this, "Enable Class Color in Text", C.unitframes.group, "classcolor", "checkbox") + CreateConfig(this, T["Display Group Frames"], C.unitframes.group, "visible", "checkbox") + CreateConfig(this, T["Portrait Position"], C.unitframes.group, "portrait", "dropdown", { "bar", "left", "right", "off" }) + CreateConfig(this, T["Health Bar Width"], C.unitframes.group, "width") + CreateConfig(this, T["Health Bar Height"], C.unitframes.group, "height") + CreateConfig(this, T["Power Bar Height"], C.unitframes.group, "pheight") + CreateConfig(this, T["Spacing"], C.unitframes.group, "pspace") + CreateConfig(this, T["Buff Position"], C.unitframes.group, "buffs", "dropdown", { "top", "bottom", "off"}) + CreateConfig(this, T["Buff Size"], C.unitframes.group, "buffsize") + CreateConfig(this, T["Buff Limit"], C.unitframes.group, "bufflimit") + CreateConfig(this, T["Buffs Per Row"], C.unitframes.group, "buffperrow") + CreateConfig(this, T["Debuff Position"], C.unitframes.group, "debuffs", "dropdown", { "top", "bottom", "off"}) + CreateConfig(this, T["Debuff Size"], C.unitframes.group, "debuffsize") + CreateConfig(this, T["Debuff Limit"], C.unitframes.group, "debufflimit") + CreateConfig(this, T["Debuffs Per Row"], C.unitframes.group, "debuffperrow") + CreateConfig(this, T["Invert Health Bar"], C.unitframes.group, "invert_healthbar", "checkbox") + CreateConfig(this, T["Enable Buff Indicators"], C.unitframes.group, "buff_indicator", "checkbox") + CreateConfig(this, T["Enable Debuff Indicators"], C.unitframes.group, "debuff_indicator", "checkbox") + CreateConfig(this, T["Enable Clickcast"], C.unitframes.group, "clickcast", "checkbox") + CreateConfig(this, T["Enable Range Fading"], C.unitframes.group, "faderange", "checkbox") + CreateConfig(this, T["Left Text"], C.unitframes.group, "txtleft", "dropdown", txtValues) + CreateConfig(this, T["Center Text"], C.unitframes.group, "txtcenter", "dropdown", txtValues) + CreateConfig(this, T["Right Text"], C.unitframes.group, "txtright", "dropdown", txtValues) + CreateConfig(this, T["Hide Group Frames When In A Raid"], C.unitframes.group, "hide_in_raid", "checkbox") + CreateConfig(this, T["Enable Health Color in Text"], C.unitframes.group, "healthcolor", "checkbox") + CreateConfig(this, T["Enable Power Color in Text"], C.unitframes.group, "powercolor", "checkbox") + CreateConfig(this, T["Enable Level Color in Text"], C.unitframes.group, "levelcolor", "checkbox") + CreateConfig(this, T["Enable Class Color in Text"], C.unitframes.group, "classcolor", "checkbox") this.setup = true end end) -- >> Group-Target - pfUI.gui.tabs.gf.tabs.grouptarget = pfUI.gui.tabs.gf.tabs:CreateChildFrame("Group-Target", 70) + pfUI.gui.tabs.gf.tabs.grouptarget = pfUI.gui.tabs.gf.tabs:CreateChildFrame(T["Group-Target"], 70) pfUI.gui.tabs.gf.tabs.grouptarget:SetScript("OnShow", function() if not this.setup then - CreateConfig(this, "Display Group Target Frames", C.unitframes.grouptarget, "visible", "checkbox") - CreateConfig(this, "Portrait Position", C.unitframes.grouptarget, "portrait", "dropdown", { "bar", "left", "right", "off" }) - CreateConfig(this, "Health Bar Width", C.unitframes.grouptarget, "width") - CreateConfig(this, "Health Bar Height", C.unitframes.grouptarget, "height") - CreateConfig(this, "Power Bar Height", C.unitframes.grouptarget, "pheight") - CreateConfig(this, "Spacing", C.unitframes.grouptarget, "pspace") - CreateConfig(this, "Buff Position", C.unitframes.grouptarget, "buffs", "dropdown", { "top", "bottom", "off"}) - CreateConfig(this, "Buff Size", C.unitframes.grouptarget, "buffsize") - CreateConfig(this, "Buff Limit", C.unitframes.grouptarget, "bufflimit") - CreateConfig(this, "Buffs Per Row", C.unitframes.grouptarget, "buffperrow") - CreateConfig(this, "Debuff Position", C.unitframes.grouptarget, "debuffs", "dropdown", { "top", "bottom", "off"}) - CreateConfig(this, "Debuff Size", C.unitframes.grouptarget, "debuffsize") - CreateConfig(this, "Debuff Limit", C.unitframes.grouptarget, "debufflimit") - CreateConfig(this, "Debuffs Per Row", C.unitframes.grouptarget, "debuffperrow") - CreateConfig(this, "Invert Health Bar", C.unitframes.grouptarget, "invert_healthbar", "checkbox") - CreateConfig(this, "Enable Buff Indicators", C.unitframes.grouptarget, "buff_indicator", "checkbox") - CreateConfig(this, "Enable Debuff Indicators", C.unitframes.grouptarget, "debuff_indicator", "checkbox") - CreateConfig(this, "Enable Clickcast", C.unitframes.grouptarget, "clickcast", "checkbox") - CreateConfig(this, "Enable Range Fading", C.unitframes.grouptarget, "faderange", "checkbox") - CreateConfig(this, "Left Text", C.unitframes.grouptarget, "txtleft", "dropdown", txtValues) - CreateConfig(this, "Center Text", C.unitframes.grouptarget, "txtcenter", "dropdown", txtValues) - CreateConfig(this, "Right Text", C.unitframes.grouptarget, "txtright", "dropdown", txtValues) - CreateConfig(this, "Enable Health Color in Text", C.unitframes.grouptarget, "healthcolor", "checkbox") - CreateConfig(this, "Enable Power Color in Text", C.unitframes.grouptarget, "powercolor", "checkbox") - CreateConfig(this, "Enable Level Color in Text", C.unitframes.grouptarget, "levelcolor", "checkbox") - CreateConfig(this, "Enable Class Color in Text", C.unitframes.grouptarget, "classcolor", "checkbox") + CreateConfig(this, T["Display Group Target Frames"], C.unitframes.grouptarget, "visible", "checkbox") + CreateConfig(this, T["Portrait Position"], C.unitframes.grouptarget, "portrait", "dropdown", { "bar", "left", "right", "off" }) + CreateConfig(this, T["Health Bar Width"], C.unitframes.grouptarget, "width") + CreateConfig(this, T["Health Bar Height"], C.unitframes.grouptarget, "height") + CreateConfig(this, T["Power Bar Height"], C.unitframes.grouptarget, "pheight") + CreateConfig(this, T["Spacing"], C.unitframes.grouptarget, "pspace") + CreateConfig(this, T["Buff Position"], C.unitframes.grouptarget, "buffs", "dropdown", { "top", "bottom", "off"}) + CreateConfig(this, T["Buff Size"], C.unitframes.grouptarget, "buffsize") + CreateConfig(this, T["Buff Limit"], C.unitframes.grouptarget, "bufflimit") + CreateConfig(this, T["Buffs Per Row"], C.unitframes.grouptarget, "buffperrow") + CreateConfig(this, T["Debuff Position"], C.unitframes.grouptarget, "debuffs", "dropdown", { "top", "bottom", "off"}) + CreateConfig(this, T["Debuff Size"], C.unitframes.grouptarget, "debuffsize") + CreateConfig(this, T["Debuff Limit"], C.unitframes.grouptarget, "debufflimit") + CreateConfig(this, T["Debuffs Per Row"], C.unitframes.grouptarget, "debuffperrow") + CreateConfig(this, T["Invert Health Bar"], C.unitframes.grouptarget, "invert_healthbar", "checkbox") + CreateConfig(this, T["Enable Buff Indicators"], C.unitframes.grouptarget, "buff_indicator", "checkbox") + CreateConfig(this, T["Enable Debuff Indicators"], C.unitframes.grouptarget, "debuff_indicator", "checkbox") + CreateConfig(this, T["Enable Clickcast"], C.unitframes.grouptarget, "clickcast", "checkbox") + CreateConfig(this, T["Enable Range Fading"], C.unitframes.grouptarget, "faderange", "checkbox") + CreateConfig(this, T["Left Text"], C.unitframes.grouptarget, "txtleft", "dropdown", txtValues) + CreateConfig(this, T["Center Text"], C.unitframes.grouptarget, "txtcenter", "dropdown", txtValues) + CreateConfig(this, T["Right Text"], C.unitframes.grouptarget, "txtright", "dropdown", txtValues) + CreateConfig(this, T["Enable Health Color in Text"], C.unitframes.grouptarget, "healthcolor", "checkbox") + CreateConfig(this, T["Enable Power Color in Text"], C.unitframes.grouptarget, "powercolor", "checkbox") + CreateConfig(this, T["Enable Level Color in Text"], C.unitframes.grouptarget, "levelcolor", "checkbox") + CreateConfig(this, T["Enable Class Color in Text"], C.unitframes.grouptarget, "classcolor", "checkbox") this.setup = true end end) -- >> Group-Pet - pfUI.gui.tabs.gf.tabs.grouppet = pfUI.gui.tabs.gf.tabs:CreateChildFrame("Group-Pet", 70) + pfUI.gui.tabs.gf.tabs.grouppet = pfUI.gui.tabs.gf.tabs:CreateChildFrame(T["Group-Pet"], 70) pfUI.gui.tabs.gf.tabs.grouppet:SetScript("OnShow", function() if not this.setup then - CreateConfig(this, "Display Group Pet Frames", C.unitframes.grouppet, "visible", "checkbox") - CreateConfig(this, "Portrait Position", C.unitframes.grouppet, "portrait", "dropdown", { "bar", "left", "right", "off" }) - CreateConfig(this, "Health Bar Width", C.unitframes.grouppet, "width") - CreateConfig(this, "Health Bar Height", C.unitframes.grouppet, "height") - CreateConfig(this, "Power Bar Height", C.unitframes.grouppet, "pheight") - CreateConfig(this, "Spacing", C.unitframes.grouppet, "pspace") - CreateConfig(this, "Buff Position", C.unitframes.grouppet, "buffs", "dropdown", { "top", "bottom", "off"}) - CreateConfig(this, "Buff Size", C.unitframes.grouppet, "buffsize") - CreateConfig(this, "Buff Limit", C.unitframes.grouppet, "bufflimit") - CreateConfig(this, "Buffs Per Row", C.unitframes.grouppet, "buffperrow") - CreateConfig(this, "Debuff Position", C.unitframes.grouppet, "debuffs", "dropdown", { "top", "bottom", "off"}) - CreateConfig(this, "Debuff Size", C.unitframes.grouppet, "debuffsize") - CreateConfig(this, "Debuff Limit", C.unitframes.grouppet, "debufflimit") - CreateConfig(this, "Debuffs Per Row", C.unitframes.grouppet, "debuffperrow") - CreateConfig(this, "Invert Health Bar", C.unitframes.grouppet, "invert_healthbar", "checkbox") - CreateConfig(this, "Enable Buff Indicators", C.unitframes.grouppet, "buff_indicator", "checkbox") - CreateConfig(this, "Enable Debuff Indicators", C.unitframes.grouppet, "debuff_indicator", "checkbox") - CreateConfig(this, "Enable Clickcast", C.unitframes.grouppet, "clickcast", "checkbox") - CreateConfig(this, "Enable Range Fading", C.unitframes.grouppet, "faderange", "checkbox") - CreateConfig(this, "Left Text", C.unitframes.grouppet, "txtleft", "dropdown", txtValues) - CreateConfig(this, "Center Text", C.unitframes.grouppet, "txtcenter", "dropdown", txtValues) - CreateConfig(this, "Right Text", C.unitframes.grouppet, "txtright", "dropdown", txtValues) - CreateConfig(this, "Enable Health Color in Text", C.unitframes.grouppet, "healthcolor", "checkbox") - CreateConfig(this, "Enable Power Color in Text", C.unitframes.grouppet, "powercolor", "checkbox") - CreateConfig(this, "Enable Level Color in Text", C.unitframes.grouppet, "levelcolor", "checkbox") - CreateConfig(this, "Enable Class Color in Text", C.unitframes.grouppet, "classcolor", "checkbox") + CreateConfig(this, T["Display Group Pet Frames"], C.unitframes.grouppet, "visible", "checkbox") + CreateConfig(this, T["Portrait Position"], C.unitframes.grouppet, "portrait", "dropdown", { "bar", "left", "right", "off" }) + CreateConfig(this, T["Health Bar Width"], C.unitframes.grouppet, "width") + CreateConfig(this, T["Health Bar Height"], C.unitframes.grouppet, "height") + CreateConfig(this, T["Power Bar Height"], C.unitframes.grouppet, "pheight") + CreateConfig(this, T["Spacing"], C.unitframes.grouppet, "pspace") + CreateConfig(this, T["Buff Position"], C.unitframes.grouppet, "buffs", "dropdown", { "top", "bottom", "off"}) + CreateConfig(this, T["Buff Size"], C.unitframes.grouppet, "buffsize") + CreateConfig(this, T["Buff Limit"], C.unitframes.grouppet, "bufflimit") + CreateConfig(this, T["Buffs Per Row"], C.unitframes.grouppet, "buffperrow") + CreateConfig(this, T["Debuff Position"], C.unitframes.grouppet, "debuffs", "dropdown", { "top", "bottom", "off"}) + CreateConfig(this, T["Debuff Size"], C.unitframes.grouppet, "debuffsize") + CreateConfig(this, T["Debuff Limit"], C.unitframes.grouppet, "debufflimit") + CreateConfig(this, T["Debuffs Per Row"], C.unitframes.grouppet, "debuffperrow") + CreateConfig(this, T["Invert Health Bar"], C.unitframes.grouppet, "invert_healthbar", "checkbox") + CreateConfig(this, T["Enable Buff Indicators"], C.unitframes.grouppet, "buff_indicator", "checkbox") + CreateConfig(this, T["Enable Debuff Indicators"], C.unitframes.grouppet, "debuff_indicator", "checkbox") + CreateConfig(this, T["Enable Clickcast"], C.unitframes.grouppet, "clickcast", "checkbox") + CreateConfig(this, T["Enable Range Fading"], C.unitframes.grouppet, "faderange", "checkbox") + CreateConfig(this, T["Left Text"], C.unitframes.grouppet, "txtleft", "dropdown", txtValues) + CreateConfig(this, T["Center Text"], C.unitframes.grouppet, "txtcenter", "dropdown", txtValues) + CreateConfig(this, T["Right Text"], C.unitframes.grouppet, "txtright", "dropdown", txtValues) + CreateConfig(this, T["Enable Health Color in Text"], C.unitframes.grouppet, "healthcolor", "checkbox") + CreateConfig(this, T["Enable Power Color in Text"], C.unitframes.grouppet, "powercolor", "checkbox") + CreateConfig(this, T["Enable Level Color in Text"], C.unitframes.grouppet, "levelcolor", "checkbox") + CreateConfig(this, T["Enable Class Color in Text"], C.unitframes.grouppet, "classcolor", "checkbox") this.setup = true end end) -- [[ Combat ]] - pfUI.gui.tabs.combat = pfUI.gui.tabs:CreateChildFrame("Combat", nil, nil, nil, true) + pfUI.gui.tabs.combat = pfUI.gui.tabs:CreateChildFrame(T["Combat"], nil, nil, nil, true) pfUI.gui.tabs.combat.tabs = Createtabs(pfUI.gui.tabs.combat, "TOP", true) -- >> General - pfUI.gui.tabs.combat.tabs.general = pfUI.gui.tabs.combat.tabs:CreateChildFrame("Combat", 70) + pfUI.gui.tabs.combat.tabs.general = pfUI.gui.tabs.combat.tabs:CreateChildFrame(T["Combat"], 70) pfUI.gui.tabs.combat.tabs.general:SetScript("OnShow", function() if not this.setup then - CreateConfig(this, "Enable Combat Glow Effects On Screen Edges", C.appearance.infight, "screen", "checkbox") - CreateConfig(this, "Enable Combat Glow Effects On Unit Frames", C.appearance.infight, "common", "checkbox") - CreateConfig(this, "Enable Combat Glow Effects On Group Frames", C.appearance.infight, "group", "checkbox") + CreateConfig(this, T["Enable Combat Glow Effects On Screen Edges"], C.appearance.infight, "screen", "checkbox") + CreateConfig(this, T["Enable Combat Glow Effects On Unit Frames"], C.appearance.infight, "common", "checkbox") + CreateConfig(this, T["Enable Combat Glow Effects On Group Frames"], C.appearance.infight, "group", "checkbox") this.setup = true end end) -- [[ Bags & Bank ]] - pfUI.gui.tabs.bags = pfUI.gui.tabs:CreateChildFrame("Bags & Bank", nil, nil, nil, true) + pfUI.gui.tabs.bags = pfUI.gui.tabs:CreateChildFrame(T["Bags & Bank"], nil, nil, nil, true) pfUI.gui.tabs.bags.tabs = Createtabs(pfUI.gui.tabs.bags, "TOP", true) -- >> General - pfUI.gui.tabs.bags.tabs.general = pfUI.gui.tabs.bags.tabs:CreateChildFrame("Bags & Bank", 70) + pfUI.gui.tabs.bags.tabs.general = pfUI.gui.tabs.bags.tabs:CreateChildFrame(T["Bags & Bank"], 70) pfUI.gui.tabs.bags.tabs.general:SetScript("OnShow", function() if not this.setup then - CreateConfig(this, "Disable Item Quality Color For \"Common\" Items", C.appearance.bags, "borderlimit", "checkbox") - CreateConfig(this, "Enable Item Quality Color For Equipment Only", C.appearance.bags, "borderonlygear", "checkbox") - CreateConfig(this, "Auto Sell Grey Items", C.global, "autosell", "checkbox") - CreateConfig(this, "Auto Repair Items", C.global, "autorepair", "checkbox") + CreateConfig(this, T["Disable Item Quality Color For \"Common\" Items"], C.appearance.bags, "borderlimit", "checkbox") + CreateConfig(this, T["Enable Item Quality Color For Equipment Only"], C.appearance.bags, "borderonlygear", "checkbox") + CreateConfig(this, T["Auto Sell Grey Items"], C.global, "autosell", "checkbox") + CreateConfig(this, T["Auto Repair Items"], C.global, "autorepair", "checkbox") this.setup = true end end) -- [[ Loot ]] - pfUI.gui.tabs.loot = pfUI.gui.tabs:CreateChildFrame("Loot", nil, nil, nil, true) + pfUI.gui.tabs.loot = pfUI.gui.tabs:CreateChildFrame(T["Loot"], nil, nil, nil, true) pfUI.gui.tabs.loot.tabs = Createtabs(pfUI.gui.tabs.loot, "TOP", true) -- >> General - pfUI.gui.tabs.loot.tabs.general = pfUI.gui.tabs.loot.tabs:CreateChildFrame("Loot", 70) + pfUI.gui.tabs.loot.tabs.general = pfUI.gui.tabs.loot.tabs:CreateChildFrame(T["Loot"], 70) pfUI.gui.tabs.loot.tabs.general:SetScript("OnShow", function() if not this.setup then - CreateConfig(this, "Enable Auto-Resize Loot Frame", C.loot, "autoresize", "checkbox") - CreateConfig(this, "Disable Loot Confirmation Dialog (Without Group)", C.loot, "autopickup", "checkbox") + CreateConfig(this, T["Enable Auto-Resize Loot Frame"], C.loot, "autoresize", "checkbox") + CreateConfig(this, T["Disable Loot Confirmation Dialog (Without Group)"], C.loot, "autopickup", "checkbox") this.setup = true end end) -- [[ Minimap ]] - pfUI.gui.tabs.minimap = pfUI.gui.tabs:CreateChildFrame("Minimap", nil, nil, nil, true) + pfUI.gui.tabs.minimap = pfUI.gui.tabs:CreateChildFrame(T["Minimap"], nil, nil, nil, true) pfUI.gui.tabs.minimap.tabs = Createtabs(pfUI.gui.tabs.minimap, "TOP", true) -- >> General - pfUI.gui.tabs.minimap.tabs.general = pfUI.gui.tabs.minimap.tabs:CreateChildFrame("Minimap", 70) + pfUI.gui.tabs.minimap.tabs.general = pfUI.gui.tabs.minimap.tabs:CreateChildFrame(T["Minimap"], 70) pfUI.gui.tabs.minimap.tabs.general:SetScript("OnShow", function() if not this.setup then - CreateConfig(this, "Enable Zone Text On Minimap Mouseover", C.appearance.minimap, "mouseoverzone", "checkbox") - CreateConfig(this, "Disable Minimap Buffs", C.global, "hidebuff", "checkbox") - CreateConfig(this, "Disable Minimap Weapon Buffs", C.global, "hidewbuff", "checkbox") - CreateConfig(this, "Show PvP Icon", C.unitframes.player, "showPVPMinimap", "checkbox") + CreateConfig(this, T["Enable Zone Text On Minimap Mouseover"], C.appearance.minimap, "mouseoverzone", "checkbox") + CreateConfig(this, T["Disable Minimap Buffs"], C.global, "hidebuff", "checkbox") + CreateConfig(this, T["Disable Minimap Weapon Buffs"], C.global, "hidewbuff", "checkbox") + CreateConfig(this, T["Show PvP Icon"], C.unitframes.player, "showPVPMinimap", "checkbox") this.setup = true end end) -- [[ Actionbar ]] - pfUI.gui.tabs.actionbar = pfUI.gui.tabs:CreateChildFrame("Actionbar", nil, nil, nil, true) + pfUI.gui.tabs.actionbar = pfUI.gui.tabs:CreateChildFrame(T["Actionbar"], nil, nil, nil, true) pfUI.gui.tabs.actionbar.tabs = Createtabs(pfUI.gui.tabs.actionbar, "TOP", true) -- >> General - pfUI.gui.tabs.actionbar.tabs.general = pfUI.gui.tabs.actionbar.tabs:CreateChildFrame("General", 70) + pfUI.gui.tabs.actionbar.tabs.general = pfUI.gui.tabs.actionbar.tabs:CreateChildFrame(T["General"], 70) pfUI.gui.tabs.actionbar.tabs.general:SetScript("OnShow", function() if not this.setup then - CreateConfig(this, "Icon Size", C.bars, "icon_size") - CreateConfig(this, "Enable Action Bar Backgrounds", C.bars, "background", "checkbox") - CreateConfig(this, "Enable Range Display On Hotkeys", C.bars, "glowrange", "checkbox") - CreateConfig(this, "Range Display Color", C.bars, "rangecolor", "color") - CreateConfig(this, "Show Macro Text", C.bars, "showmacro", "checkbox") - CreateConfig(this, "Show Hotkey Text", C.bars, "showkeybind", "checkbox") - CreateConfig(this, "Enable Range Based Auto Paging (Hunter)", C.bars, "hunterbar", "checkbox") + CreateConfig(this, T["Icon Size"], C.bars, "icon_size") + CreateConfig(this, T["Enable Action Bar Backgrounds"], C.bars, "background", "checkbox") + CreateConfig(this, T["Enable Range Display On Hotkeys"], C.bars, "glowrange", "checkbox") + CreateConfig(this, T["Range Display Color"], C.bars, "rangecolor", "color") + CreateConfig(this, T["Show Macro Text"], C.bars, "showmacro", "checkbox") + CreateConfig(this, T["Show Hotkey Text"], C.bars, "showkeybind", "checkbox") + CreateConfig(this, T["Enable Range Based Auto Paging (Hunter)"], C.bars, "hunterbar", "checkbox") this.setup = true end end) -- >> Autohide - pfUI.gui.tabs.actionbar.tabs.autohide = pfUI.gui.tabs.actionbar.tabs:CreateChildFrame("Autohide", 70) + pfUI.gui.tabs.actionbar.tabs.autohide = pfUI.gui.tabs.actionbar.tabs:CreateChildFrame(T["Autohide"], 70) pfUI.gui.tabs.actionbar.tabs.autohide:SetScript("OnShow", function() if not this.setup then - CreateConfig(this, "Seconds Until Action Bars Autohide", C.bars, "hide_time") - CreateConfig(this, "Enable Autohide For BarActionMain", C.bars, "hide_actionmain", "checkbox") - CreateConfig(this, "Enable Autohide For BarBottomLeft", C.bars, "hide_bottomleft", "checkbox") - CreateConfig(this, "Enable Autohide For BarBottomRight", C.bars, "hide_bottomright", "checkbox") - CreateConfig(this, "Enable Autohide For BarRight", C.bars, "hide_right", "checkbox") - CreateConfig(this, "Enable Autohide For BarTwoRight", C.bars, "hide_tworight", "checkbox") - CreateConfig(this, "Enable Autohide For BarShapeShift", C.bars, "hide_shapeshift", "checkbox") - CreateConfig(this, "Enable Autohide For BarPet", C.bars, "hide_pet", "checkbox") + CreateConfig(this, T["Seconds Until Action Bars Autohide"], C.bars, "hide_time") + CreateConfig(this, T["Enable Autohide For BarActionMain"], C.bars, "hide_actionmain", "checkbox") + CreateConfig(this, T["Enable Autohide For BarBottomLeft"], C.bars, "hide_bottomleft", "checkbox") + CreateConfig(this, T["Enable Autohide For BarBottomRight"], C.bars, "hide_bottomright", "checkbox") + CreateConfig(this, T["Enable Autohide For BarRight"], C.bars, "hide_right", "checkbox") + CreateConfig(this, T["Enable Autohide For BarTwoRight"], C.bars, "hide_tworight", "checkbox") + CreateConfig(this, T["Enable Autohide For BarShapeShift"], C.bars, "hide_shapeshift", "checkbox") + CreateConfig(this, T["Enable Autohide For BarPet"], C.bars, "hide_pet", "checkbox") this.setup = true end end) -- >> Layout - pfUI.gui.tabs.actionbar.tabs.layout = pfUI.gui.tabs.actionbar.tabs:CreateChildFrame("Layout", 70) + pfUI.gui.tabs.actionbar.tabs.layout = pfUI.gui.tabs.actionbar.tabs:CreateChildFrame(T["Layout"], 70) pfUI.gui.tabs.actionbar.tabs.layout:SetScript("OnShow", function() if not this.setup then - CreateConfig(this, "Main Actionbar (ActionMain)", C.bars.actionmain, "formfactor", "dropdown", dropdown_num_actionbar_buttons) - CreateConfig(this, "Second Actionbar (BottomLeft)", C.bars.bottomleft, "formfactor", "dropdown", dropdown_num_actionbar_buttons) - CreateConfig(this, "Left Actionbar (BottomRight)", C.bars.bottomright, "formfactor", "dropdown", dropdown_num_actionbar_buttons) - CreateConfig(this, "Right Actionbar (Right)", C.bars.right, "formfactor", "dropdown", dropdown_num_actionbar_buttons) - CreateConfig(this, "Vertical Actionbar (TwoRight)", C.bars.tworight, "formfactor", "dropdown", dropdown_num_actionbar_buttons) - CreateConfig(this, "Shapeshift Bar (BarShapeShift)", C.bars.shapeshift, "formfactor", "dropdown", dropdown_num_shapeshift_slots) - CreateConfig(this, "Pet Bar (BarPet)", C.bars.pet, "formfactor", "dropdown", dropdown_num_pet_action_slots) + CreateConfig(this, T["Main Actionbar (ActionMain)"], C.bars.actionmain, "formfactor", "dropdown", dropdown_num_actionbar_buttons) + CreateConfig(this, T["Second Actionbar (BottomLeft)"], C.bars.bottomleft, "formfactor", "dropdown", dropdown_num_actionbar_buttons) + CreateConfig(this, T["Left Actionbar (BottomRight)"], C.bars.bottomright, "formfactor", "dropdown", dropdown_num_actionbar_buttons) + CreateConfig(this, T["Right Actionbar (Right)"], C.bars.right, "formfactor", "dropdown", dropdown_num_actionbar_buttons) + CreateConfig(this, T["Vertical Actionbar (TwoRight)"], C.bars.tworight, "formfactor", "dropdown", dropdown_num_actionbar_buttons) + CreateConfig(this, T["Shapeshift Bar (BarShapeShift)"], C.bars.shapeshift, "formfactor", "dropdown", dropdown_num_shapeshift_slots) + CreateConfig(this, T["Pet Bar (BarPet)"], C.bars.pet, "formfactor", "dropdown", dropdown_num_pet_action_slots) this.setup = true end end) -- [[ Panel ]] - pfUI.gui.tabs.panel = pfUI.gui.tabs:CreateChildFrame("Panel", nil, nil, nil, true) + pfUI.gui.tabs.panel = pfUI.gui.tabs:CreateChildFrame(T["Panel"], nil, nil, nil, true) pfUI.gui.tabs.panel.tabs = Createtabs(pfUI.gui.tabs.panel, "TOP", true) -- >> General - pfUI.gui.tabs.panel.tabs.general = pfUI.gui.tabs.panel.tabs:CreateChildFrame("Panel", 70) + pfUI.gui.tabs.panel.tabs.general = pfUI.gui.tabs.panel.tabs:CreateChildFrame(T["Panel"], 70) pfUI.gui.tabs.panel.tabs.general:SetScript("OnShow", function() if not this.setup then - CreateConfig(this, "Use Unit Fonts", C.panel, "use_unitfonts", "checkbox") - CreateConfig(this, "Left Panel: Left", C.panel.left, "left", "dropdown", dropdown_panel_values) - CreateConfig(this, "Left Panel: Center", C.panel.left, "center", "dropdown", dropdown_panel_values) - CreateConfig(this, "Left Panel: Right", C.panel.left, "right", "dropdown", dropdown_panel_values) - CreateConfig(this, "Right Panel: Left", C.panel.right, "left", "dropdown", dropdown_panel_values) - CreateConfig(this, "Right Panel: Center", C.panel.right, "center", "dropdown", dropdown_panel_values) - CreateConfig(this, "Right Panel: Right", C.panel.right, "right", "dropdown", dropdown_panel_values) - CreateConfig(this, "Other Panel: Minimap", C.panel.other, "minimap", "dropdown", dropdown_panel_values) - CreateConfig(this, "Always Show Experience And Reputation Bar", C.panel.xp, "showalways", "checkbox") - CreateConfig(this, "Enable Micro Bar", C.panel.micro, "enable", "checkbox") - CreateConfig(this, "Enable 24h Clock", C.global, "twentyfour", "checkbox") + CreateConfig(this, T["Use Unit Fonts"], C.panel, "use_unitfonts", "checkbox") + CreateConfig(this, T["Left Panel: Left"], C.panel.left, "left", "dropdown", dropdown_panel_values) + CreateConfig(this, T["Left Panel: Center"], C.panel.left, "center", "dropdown", dropdown_panel_values) + CreateConfig(this, T["Left Panel: Right"], C.panel.left, "right", "dropdown", dropdown_panel_values) + CreateConfig(this, T["Right Panel: Left"], C.panel.right, "left", "dropdown", dropdown_panel_values) + CreateConfig(this, T["Right Panel: Center"], C.panel.right, "center", "dropdown", dropdown_panel_values) + CreateConfig(this, T["Right Panel: Right"], C.panel.right, "right", "dropdown", dropdown_panel_values) + CreateConfig(this, T["Other Panel: Minimap"], C.panel.other, "minimap", "dropdown", dropdown_panel_values) + CreateConfig(this, T["Always Show Experience And Reputation Bar"], C.panel.xp, "showalways", "checkbox") + CreateConfig(this, T["Enable Micro Bar"], C.panel.micro, "enable", "checkbox") + CreateConfig(this, T["Enable 24h Clock"], C.global, "twentyfour", "checkbox") this.setup = true end end) -- [[ Tooltip ]] - pfUI.gui.tabs.tooltip = pfUI.gui.tabs:CreateChildFrame("Tooltip", nil, nil, nil, true) + pfUI.gui.tabs.tooltip = pfUI.gui.tabs:CreateChildFrame(T["Tooltip"], nil, nil, nil, true) pfUI.gui.tabs.tooltip.tabs = Createtabs(pfUI.gui.tabs.tooltip, "TOP", true) -- >> General - pfUI.gui.tabs.tooltip.tabs.general = pfUI.gui.tabs.tooltip.tabs:CreateChildFrame("Tooltip", 70) + pfUI.gui.tabs.tooltip.tabs.general = pfUI.gui.tabs.tooltip.tabs:CreateChildFrame(T["Tooltip"], 70) pfUI.gui.tabs.tooltip.tabs.general:SetScript("OnShow", function() if not this.setup then - CreateConfig(this, "Tooltip Position", C.tooltip, "position", "dropdown", { "bottom", "chat", "cursor" }) - CreateConfig(this, "Enable Extended Guild Information", C.tooltip, "extguild", "checkbox") - CreateConfig(this, "Custom Transparency", C.tooltip, "alpha") - CreateConfig(this, "Always Show Item Comparison", C.tooltip.compare, "showalways", "checkbox") - CreateConfig(this, "Always Show Extended Vendor Values", C.tooltip.vendor, "showalways", "checkbox") + CreateConfig(this, T["Tooltip Position"], C.tooltip, "position", "dropdown", { "bottom", "chat", "cursor" }) + CreateConfig(this, T["Enable Extended Guild Information"], C.tooltip, "extguild", "checkbox") + CreateConfig(this, T["Custom Transparency"], C.tooltip, "alpha") + CreateConfig(this, T["Always Show Item Comparison"], C.tooltip.compare, "showalways", "checkbox") + CreateConfig(this, T["Always Show Extended Vendor Values"], C.tooltip.vendor, "showalways", "checkbox") this.setup = true end end) -- [[ Castbar ]] - pfUI.gui.tabs.castbar = pfUI.gui.tabs:CreateChildFrame("Castbar", nil, nil, nil, true) + pfUI.gui.tabs.castbar = pfUI.gui.tabs:CreateChildFrame(T["Castbar"], nil, nil, nil, true) pfUI.gui.tabs.castbar.tabs = Createtabs(pfUI.gui.tabs.castbar, "TOP", true) -- >> General - pfUI.gui.tabs.castbar.tabs.general = pfUI.gui.tabs.castbar.tabs:CreateChildFrame("Castbar", 70) + pfUI.gui.tabs.castbar.tabs.general = pfUI.gui.tabs.castbar.tabs:CreateChildFrame(T["Castbar"], 70) pfUI.gui.tabs.castbar.tabs.general:SetScript("OnShow", function() if not this.setup then - CreateConfig(this, "Use Unit Fonts", C.castbar, "use_unitfonts", "checkbox") - CreateConfig(this, "Casting Color", C.appearance.castbar, "castbarcolor", "color") - CreateConfig(this, "Channeling Color", C.appearance.castbar, "channelcolor", "color") - CreateConfig(this, "Disable Blizzard Castbar", C.castbar.player, "hide_blizz", "checkbox") - CreateConfig(this, "Disable pfUI Player Castbar", C.castbar.player, "hide_pfui", "checkbox") - CreateConfig(this, "Disable pfUI Target Castbar", C.castbar.target, "hide_pfui", "checkbox") + CreateConfig(this, T["Use Unit Fonts"], C.castbar, "use_unitfonts", "checkbox") + CreateConfig(this, T["Casting Color"], C.appearance.castbar, "castbarcolor", "color") + CreateConfig(this, T["Channeling Color"], C.appearance.castbar, "channelcolor", "color") + CreateConfig(this, T["Disable Blizzard Castbar"], C.castbar.player, "hide_blizz", "checkbox") + CreateConfig(this, T["Disable pfUI Player Castbar"], C.castbar.player, "hide_pfui", "checkbox") + CreateConfig(this, T["Disable pfUI Target Castbar"], C.castbar.target, "hide_pfui", "checkbox") this.setup = true end end) -- [[ Chat ]] - pfUI.gui.tabs.chat = pfUI.gui.tabs:CreateChildFrame("Chat", nil, nil, nil, true) + pfUI.gui.tabs.chat = pfUI.gui.tabs:CreateChildFrame(T["Chat"], nil, nil, nil, true) pfUI.gui.tabs.chat.tabs = Createtabs(pfUI.gui.tabs.chat, "TOP", true) -- >> General - pfUI.gui.tabs.chat.tabs.general = pfUI.gui.tabs.chat.tabs:CreateChildFrame("General", 70) + pfUI.gui.tabs.chat.tabs.general = pfUI.gui.tabs.chat.tabs:CreateChildFrame(T["General"], 70) pfUI.gui.tabs.chat.tabs.general:SetScript("OnShow", function() if not this.setup then - CreateConfig(this, "Enable \"Loot & Spam\" Chat Window", C.chat.right, "enable", "checkbox") - CreateConfig(this, "Inputbox Width", C.chat.text, "input_width") - CreateConfig(this, "Inputbox Height", C.chat.text, "input_height") - CreateConfig(this, "Enable Timestamps", C.chat.text, "time", "checkbox") - CreateConfig(this, "Timestamp Format", C.chat.text, "timeformat", nil, nil, nil, nil, "STRING") - CreateConfig(this, "Timestamp Brackets", C.chat.text, "timebracket", nil, nil, nil, nil, "STRING") - CreateConfig(this, "Timestamp Color", C.chat.text, "timecolor", "color") - CreateConfig(this, "Hide Channel Names", C.chat.text, "channelnumonly", "checkbox") - CreateConfig(this, "Enable URL Detection", C.chat.text, "detecturl", "checkbox") - CreateConfig(this, "Enable Class Colors", C.chat.text, "classcolor", "checkbox") - CreateConfig(this, "Left Chat Width", C.chat.left, "width") - CreateConfig(this, "Left Chat Height", C.chat.left, "height") - CreateConfig(this, "Right Chat Width", C.chat.right, "width") - CreateConfig(this, "Right Chat Height", C.chat.right, "height") - CreateConfig(this, "Enable Right Chat Window", C.chat.right, "alwaysshow", "checkbox") - CreateConfig(this, "Enable Chat Dock", C.chat.global, "tabdock", "checkbox") - CreateConfig(this, "Enable Custom Colors", C.chat.global, "custombg", "checkbox") - CreateConfig(this, "Chat Background Color", C.chat.global, "background", "color") - CreateConfig(this, "Chat Border Color", C.chat.global, "border", "color") - CreateConfig(this, "Enable Custom Incoming Whispers Layout", C.chat.global, "whispermod", "checkbox") - CreateConfig(this, "Incoming Whispers Color", C.chat.global, "whisper", "color") - CreateConfig(this, "Enable Sticky Chat", C.chat.global, "sticky", "checkbox") - CreateConfig(this, "Enable Chat Fade", C.chat.global, "fadeout", "checkbox") - CreateConfig(this, "Seconds Before Chat Fade", C.chat.global, "fadetime") + CreateConfig(this, T["Enable \"Loot & Spam\" Chat Window"], C.chat.right, "enable", "checkbox") + CreateConfig(this, T["Inputbox Width"], C.chat.text, "input_width") + CreateConfig(this, T["Inputbox Height"], C.chat.text, "input_height") + CreateConfig(this, T["Enable Timestamps"], C.chat.text, "time", "checkbox") + CreateConfig(this, T["Timestamp Format"], C.chat.text, "timeformat", nil, nil, nil, nil, "STRING") + CreateConfig(this, T["Timestamp Brackets"], C.chat.text, "timebracket", nil, nil, nil, nil, "STRING") + CreateConfig(this, T["Timestamp Color"], C.chat.text, "timecolor", "color") + CreateConfig(this, T["Hide Channel Names"], C.chat.text, "channelnumonly", "checkbox") + CreateConfig(this, T["Enable URL Detection"], C.chat.text, "detecturl", "checkbox") + CreateConfig(this, T["Enable Class Colors"], C.chat.text, "classcolor", "checkbox") + CreateConfig(this, T["Left Chat Width"], C.chat.left, "width") + CreateConfig(this, T["Left Chat Height"], C.chat.left, "height") + CreateConfig(this, T["Right Chat Width"], C.chat.right, "width") + CreateConfig(this, T["Right Chat Height"], C.chat.right, "height") + CreateConfig(this, T["Enable Right Chat Window"], C.chat.right, "alwaysshow", "checkbox") + CreateConfig(this, T["Enable Chat Dock"], C.chat.global, "tabdock", "checkbox") + CreateConfig(this, T["Enable Custom Colors"], C.chat.global, "custombg", "checkbox") + CreateConfig(this, T["Chat Background Color"], C.chat.global, "background", "color") + CreateConfig(this, T["Chat Border Color"], C.chat.global, "border", "color") + CreateConfig(this, T["Enable Custom Incoming Whispers Layout"], C.chat.global, "whispermod", "checkbox") + CreateConfig(this, T["Incoming Whispers Color"], C.chat.global, "whisper", "color") + CreateConfig(this, T["Enable Sticky Chat"], C.chat.global, "sticky", "checkbox") + CreateConfig(this, T["Enable Chat Fade"], C.chat.global, "fadeout", "checkbox") + CreateConfig(this, T["Seconds Before Chat Fade"], C.chat.global, "fadetime") this.setup = true end end) -- [[ Nameplates ]] - pfUI.gui.tabs.nameplates = pfUI.gui.tabs:CreateChildFrame("Nameplates", nil, nil, nil, true) + pfUI.gui.tabs.nameplates = pfUI.gui.tabs:CreateChildFrame(T["Nameplates"], nil, nil, nil, true) pfUI.gui.tabs.nameplates.tabs = Createtabs(pfUI.gui.tabs.nameplates, "TOP", true) -- General - pfUI.gui.tabs.nameplates.tabs.general = pfUI.gui.tabs.nameplates.tabs:CreateChildFrame("Nameplates", 70) + pfUI.gui.tabs.nameplates.tabs.general = pfUI.gui.tabs.nameplates.tabs:CreateChildFrame(T["Nameplates"], 70) pfUI.gui.tabs.nameplates.tabs.general:SetScript("OnShow", function() if not this.setup then - CreateConfig(this, "Use Unit Fonts", C.nameplates, "use_unitfonts", "checkbox") - CreateConfig(this, "Enable Castbars", C.nameplates, "showcastbar", "checkbox") - CreateConfig(this, "Enable Spellname", C.nameplates, "spellname", "checkbox") - CreateConfig(this, "Enable Debuffs", C.nameplates, "showdebuffs", "checkbox") - CreateConfig(this, "Enable Clickthrough", C.nameplates, "clickthrough", "checkbox") - CreateConfig(this, "Enable Mouselook With Right Click", C.nameplates, "rightclick", "checkbox") - CreateConfig(this, "Right Click Auto Attack Threshold", C.nameplates, "clickthreshold") - CreateConfig(this, "Enable Class Colors On Enemies", C.nameplates, "enemyclassc", "checkbox") - CreateConfig(this, "Enable Class Colors On Friends", C.nameplates, "friendclassc", "checkbox") - CreateConfig(this, "Raid Icon Size", C.nameplates, "raidiconsize") - CreateConfig(this, "Show Players Only", C.nameplates, "players", "checkbox") - CreateConfig(this, "Show Health Points", C.nameplates, "showhp", "checkbox") - CreateConfig(this, "Vertical Position", C.nameplates, "vpos") - CreateConfig(this, "Nameplate Width", C.nameplates, "width") - CreateConfig(this, "Healthbar Height", C.nameplates, "heighthealth") - CreateConfig(this, "Castbar Height", C.nameplates, "heightcast") + CreateConfig(this, T["Use Unit Fonts"], C.nameplates, "use_unitfonts", "checkbox") + CreateConfig(this, T["Enable Castbars"], C.nameplates, "showcastbar", "checkbox") + CreateConfig(this, T["Enable Spellname"], C.nameplates, "spellname", "checkbox") + CreateConfig(this, T["Enable Debuffs"], C.nameplates, "showdebuffs", "checkbox") + CreateConfig(this, T["Enable Clickthrough"], C.nameplates, "clickthrough", "checkbox") + CreateConfig(this, T["Enable Mouselook With Right Click"], C.nameplates, "rightclick", "checkbox") + CreateConfig(this, T["Right Click Auto Attack Threshold"], C.nameplates, "clickthreshold") + CreateConfig(this, T["Enable Class Colors On Enemies"], C.nameplates, "enemyclassc", "checkbox") + CreateConfig(this, T["Enable Class Colors On Friends"], C.nameplates, "friendclassc", "checkbox") + CreateConfig(this, T["Raid Icon Size"], C.nameplates, "raidiconsize") + CreateConfig(this, T["Show Players Only"], C.nameplates, "players", "checkbox") + CreateConfig(this, T["Show Health Points"], C.nameplates, "showhp", "checkbox") + CreateConfig(this, T["Vertical Position"], C.nameplates, "vpos") + CreateConfig(this, T["Nameplate Width"], C.nameplates, "width") + CreateConfig(this, T["Healthbar Height"], C.nameplates, "heighthealth") + CreateConfig(this, T["Castbar Height"], C.nameplates, "heightcast") this.setup = true end end) -- [[ Thirdparty ]] - pfUI.gui.tabs.thirdparty = pfUI.gui.tabs:CreateChildFrame("Thirdparty", nil, nil, nil, true) + pfUI.gui.tabs.thirdparty = pfUI.gui.tabs:CreateChildFrame(T["Thirdparty"], nil, nil, nil, true) pfUI.gui.tabs.thirdparty.tabs = Createtabs(pfUI.gui.tabs.thirdparty, "TOP", true) -- >> General - pfUI.gui.tabs.thirdparty.tabs.general = pfUI.gui.tabs.thirdparty.tabs:CreateChildFrame("Thirdparty", 70) + pfUI.gui.tabs.thirdparty.tabs.general = pfUI.gui.tabs.thirdparty.tabs:CreateChildFrame(T["Thirdparty"], 70) pfUI.gui.tabs.thirdparty.tabs.general:SetScript("OnShow", function() if not this.setup then - CreateConfig(this, "DPSMate", C.thirdparty.dpsmate, "enable", "checkbox") - CreateConfig(this, "WIM", C.thirdparty.wim, "enable", "checkbox") - CreateConfig(this, "HealComm", C.thirdparty.healcomm, "enable", "checkbox") - CreateConfig(this, "CleanUp", C.thirdparty.cleanup, "enable", "checkbox") - CreateConfig(this, "KLH Threat Meter", C.thirdparty.ktm, "enable", "checkbox") + CreateConfig(this, T["DPSMate"], C.thirdparty.dpsmate, "enable", "checkbox") + CreateConfig(this, T["WIM"], C.thirdparty.wim, "enable", "checkbox") + CreateConfig(this, T["HealComm"], C.thirdparty.healcomm, "enable", "checkbox") + CreateConfig(this, T["CleanUp"], C.thirdparty.cleanup, "enable", "checkbox") + CreateConfig(this, T["KLH Threat Meter"], C.thirdparty.ktm, "enable", "checkbox") this.setup = true end end) -- [[ Modules ]] - pfUI.gui.tabs.modules = pfUI.gui.tabs:CreateChildFrame("Modules", nil, nil, nil, true) + pfUI.gui.tabs.modules = pfUI.gui.tabs:CreateChildFrame(T["Modules"], nil, nil, nil, true) pfUI.gui.tabs.modules.tabs = Createtabs(pfUI.gui.tabs.modules, "TOP", true) -- General - pfUI.gui.tabs.modules.tabs.general = pfUI.gui.tabs.modules.tabs:CreateChildFrame("Modules", 70) + pfUI.gui.tabs.modules.tabs.general = pfUI.gui.tabs.modules.tabs:CreateChildFrame(T["Modules"], 70) pfUI.gui.tabs.modules.tabs.general:SetScript("OnShow", function() if not this.setup then for i,m in pairs(pfUI.modules) do if m ~= "gui" then -- create disabled entry if not existing and display pfUI:UpdateConfig("disabled", nil, m, "0") - CreateConfig(this, "Disable Module: " .. m, C.disabled, m, "checkbox") + CreateConfig(this, T["Disable Module"] .. m, C.disabled, m, "checkbox") end end this.setup = true @@ -1391,20 +1391,20 @@ pfUI:RegisterModule("gui", function () end) -- [[ Close ]] - pfUI.gui.tabs.close = pfUI.gui.tabs:CreateChildFrame("Close", nil, nil, "BOTTOM") + pfUI.gui.tabs.close = pfUI.gui.tabs:CreateChildFrame(T["Close"], nil, nil, "BOTTOM") pfUI.gui.tabs.close.button:SetScript("OnClick", function() pfUI.gui:Hide() end) -- [[ Unlock ]] - pfUI.gui.tabs.unlock = pfUI.gui.tabs:CreateChildFrame("Unlock", nil, nil, "BOTTOM") + pfUI.gui.tabs.unlock = pfUI.gui.tabs:CreateChildFrame(T["Unlock"], nil, nil, "BOTTOM") pfUI.gui.tabs.unlock.button:SetScript("OnClick", function() DelayChangedSettings() pfUI.unlock:UnlockFrames() end) -- [[ Hoverbind ]] - pfUI.gui.tabs.hoverbind = pfUI.gui.tabs:CreateChildFrame("Hoverbind", nil, nil, "BOTTOM") + pfUI.gui.tabs.hoverbind = pfUI.gui.tabs:CreateChildFrame(T["Hoverbind"], nil, nil, "BOTTOM") pfUI.gui.tabs.hoverbind.button:SetScript("OnClick", function() if pfUI.hoverbind then DelayChangedSettings() diff --git a/modules/hoverbind.lua b/modules/hoverbind.lua index dca88bda..e234c630 100644 --- a/modules/hoverbind.lua +++ b/modules/hoverbind.lua @@ -37,11 +37,8 @@ pfUI:RegisterModule("hoverbind", function () pfUI.gui:Hide() pfUI.hoverbind.edit:Show() - pfUI.info:ShowInfoBox("|cff33ffccKeybind Mode|r\n" .. - "This mode allows you to bind keyboard shortcuts to your actionbars.\n" .. - "By hovering a button with your cursor and pressing a key, the key will be assigned to that button.\n" .. - "Hit Escape on a button to remove bindings.\n\n" .. - "Press Escape or click on an empty area to leave the keybind mode.\n", 30, pfUI.hoverbind.edit) + local txt = T["|cff33ffccKeybind Mode|r\nThis mode allows you to bind keyboard shortcuts to your actionbars.\nBy hovering a button with your cursor and pressing a key, the key will be assigned to that button.\nHit Escape on a button to remove bindings.\n\nPress Escape or click on an empty area to leave the keybind mode."] + pfUI.info:ShowInfoBox(txt, 30, pfUI.hoverbind.edit) end) pfUI.hoverbind:SetScript("OnHide",function() diff --git a/modules/skin.lua b/modules/skin.lua index ebf58f05..5f899286 100644 --- a/modules/skin.lua +++ b/modules/skin.lua @@ -51,7 +51,7 @@ pfUI:RegisterModule("skin", function () local pfUIButton = CreateFrame("Button", "GameMenuButtonPFUI", GameMenuFrame, "GameMenuButtonTemplate") pfUIButton:SetPoint("TOP", 0, -10) - pfUIButton:SetText("\"pfUI\" Settings") + pfUIButton:SetText(T["pfUI Settings"]) pfUIButton:SetScript("OnClick", function() pfUI.gui:Show() HideUIPanel(GameMenuFrame) diff --git a/modules/unlock.lua b/modules/unlock.lua index d337a1d5..1e302be6 100644 --- a/modules/unlock.lua +++ b/modules/unlock.lua @@ -305,10 +305,8 @@ pfUI:RegisterModule("unlock", function () end function pfUI.unlock:UnlockFrames() - pfUI.info:ShowInfoBox("|cff33ffccUnlock Mode|r\n" .. - "This mode allows you to move frames by dragging them using the mouse cursor. " .. - "Frames can be scaled by scrolling up and down.\nTo scale multiple frames at once (eg. raidframes), " .. - "hold down the shift key while scrolling. Click into an empty space to go back to the pfUI menu.", 15, pfUI.unlock) + local txt = T["|cff33ffccUnlock Mode|r\nThis mode allows you to move frames by dragging them using the mouse cursor. Frames can be scaled by scrolling up and down.\nTo scale multiple frames at once (eg. raidframes), hold down the shift key while scrolling. Click into an empty space to go back to the pfUI menu."] + pfUI.info:ShowInfoBox(txt, 15, pfUI.unlock) pfUI.unlock:Show() pfUI.gui:Hide() diff --git a/pfUI.lua b/pfUI.lua index 50b28307..6034cd38 100644 --- a/pfUI.lua +++ b/pfUI.lua @@ -45,6 +45,7 @@ pfUI.hooks = {} pfUI_playerDB = {} pfUI_config = {} pfUI_locale = {} +pfUI_translation = {} pfUI:SetScript("OnEvent", function() @@ -87,6 +88,11 @@ pfUI:SetScript("OnEvent", function() env_pfui.C = pfUI_config env_pfui.L = pfUI_locale[GetLocale()] or pfUI_locale["enUS"] + env_pfui.T = setmetatable(pfUI_translation[GetLocale()] or {}, { __index = function(tab,key) + local value = tostring(key) + rawset(tab,key,value) + return value + end}) for i,m in pairs(this.modules) do -- do not load disabled modules diff --git a/pfUI.toc b/pfUI.toc index d1fe4df8..9e746aeb 100644 --- a/pfUI.toc +++ b/pfUI.toc @@ -22,6 +22,13 @@ env\locales_zhCN.lua env\locales_ruRU.lua env\locales_koKR.lua +env\translations_enUS.lua +env\translations_frFR.lua +env\translations_deDE.lua +env\translations_zhCN.lua +env\translations_ruRU.lua +env\translations_koKR.lua + # environment env\tables.lua env\colors.lua