mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-07 22:20:00 +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
|
||||
|
||||
Reference in New Issue
Block a user