api: add translation mechanics

This commit is contained in:
shagu
2017-06-24 14:43:19 +02:00
parent fa053a5f78
commit 5832215f95
14 changed files with 1981 additions and 488 deletions
+5 -9
View File
@@ -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