mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-14 09:10:49 +00:00
api: add translation mechanics
This commit is contained in:
+6
-11
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
+458
-458
File diff suppressed because it is too large
Load Diff
@@ -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()
|
||||
|
||||
+1
-1
@@ -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)
|
||||
|
||||
+2
-4
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user