Quantcast

Localized all remaining english text strings

James Whitehead II [01-04-07 - 03:27]
Localized all remaining english text strings
Filename
PerfectRaid_Aggro.lua
PerfectRaid_Buffs.lua
PerfectRaid_Hacks.lua
PerfectRaid_Range.lua
diff --git a/PerfectRaid_Aggro.lua b/PerfectRaid_Aggro.lua
index 8b285ae..7d202da 100644
--- a/PerfectRaid_Aggro.lua
+++ b/PerfectRaid_Aggro.lua
@@ -133,11 +133,11 @@ function Aggro:CreateOptions(opt)
 	options.widgets = {}

 	local check = CreateFrame("CheckButton", "PRAggro_Enable", options, "PRCheckTemplate")
-	check.Label:SetText("Perform aggro checking")
+	check.Label:SetText(L["Perform aggro checking"])
 	table.insert(options.widgets, check)

 	local slider = CreateFrame("Slider", "PRAggro_Rate", options, "PRSliderTemplate")
-	slider.Text:SetText("Update delay")
+	slider.Text:SetText(L["Update delay"])
 	slider.High:SetText("2.0")
 	slider.Low:SetText("0")
 	slider:SetMinMaxValues(0,2.0)
@@ -145,13 +145,13 @@ function Aggro:CreateOptions(opt)
 	table.insert(options.widgets, slider)

 	local cancel = CreateFrame("Button", "PRAggro_Cancel", options, "PRButtonTemplate")
-	cancel.Label:SetText("Cancel")
+	cancel.Label:SetText(L["Cancel"])
 	cancel:SetPoint("BOTTOMRIGHT", 0, 5)
 	cancel:SetScript("OnClick", function() self:OnShow() end)
 	cancel:Show()

 	local save = CreateFrame("Button", "PRAggro_Save", options, "PRButtonTemplate")
-	save.Label:SetText("Save")
+	save.Label:SetText(L["Save"])
 	save:SetPoint("BOTTOMRIGHT", cancel, "BOTTOMLEFT", -10, 0)
 	save:SetScript("OnClick", function() self:SaveOptions() end)
 	save:Show()
@@ -185,4 +185,3 @@ function Aggro:SaveOptions()
 		self:Enable()
 	end
 end
-
diff --git a/PerfectRaid_Buffs.lua b/PerfectRaid_Buffs.lua
index 9e3a596..35e56ef 100644
--- a/PerfectRaid_Buffs.lua
+++ b/PerfectRaid_Buffs.lua
@@ -139,24 +139,24 @@ Buffs.conditions = {

 function Buffs:CreateOptions(opt)
 	local options = CreateFrame("Frame", "PROptions_Buffs", PROptions)
-	opt:AddOptionsTab("Buffs/Debuffs", options)
+	opt:AddOptionsTab(L["Buffs/Debuffs"], options)

 	self:CreateListFrame(options, 10)

 	local delete = CreateFrame("Button", "PRBuffs_Delete", options, "PRButtonTemplate")
-	delete.Label:SetText("Delete")
+	delete.Label:SetText(L["Delete"])
 	delete:SetPoint("BOTTOMRIGHT", 0, 5)
 	delete:SetScript("OnClick", function() self:DeleteEntry() end)
 	delete:Show()

 	local edit = CreateFrame("Button", "PRBuffs_Edit", options, "PRButtonTemplate")
-	edit.Label:SetText("Edit")
+	edit.Label:SetText(L["Edit"])
 	edit:SetPoint("BOTTOMRIGHT", delete, "BOTTOMLEFT", -10, 0)
 	edit:SetScript("OnClick", function() self:EditEntry() end)
 	edit:Show()

 	local add = CreateFrame("Button", "PRBuffs_Add", options, "PRButtonTemplate")
-	add.Label:SetText("Add")
+	add.Label:SetText(L["Add"])
 	add:SetPoint("BOTTOMRIGHT", edit, "BOTTOMLEFT", -10, 0)
 	add:SetScript("OnClick", function() self:AddEntry() end)
 	add:Show()
@@ -190,7 +190,7 @@ function Buffs:CreateListFrame(parent, num)
 		entry.line1 = entry:CreateFontString(nil, "ARTWORK", "GameFontHighlight")
 		entry.line1:SetPoint("LEFT", 0 ,0)
 		entry.line1:SetPoint("RIGHT", -5, 0)
-		entry.line1:SetText("Buff Name")
+		entry.line1:SetText(L["Buff Name"])
 		entry.line1:SetJustifyH("LEFT")
 		return entry
 	end
@@ -281,7 +281,7 @@ function Buffs:CreateEditFrame(parent)

 	local buffname = CreateFrame("EditBox", name.."BuffName", frame, "InputBoxTemplate")
 	local font = buffname:CreateFontString(nil, "ARTWORK", "GameFontHighlightSmall")
-	font:SetText("Buff Name:")
+	font:SetText(L["Buff Name:"])
 	font:SetPoint("BOTTOMLEFT", buffname, "TOPLEFT", 0, 3)
 	buffname:SetPoint("TOPLEFT", 0, -10)
 	buffname:SetAutoFocus(nil)
@@ -292,7 +292,7 @@ function Buffs:CreateEditFrame(parent)

 	local groupname = CreateFrame("EditBox", name.."GroupName", frame, "InputBoxTemplate")
 	local font = groupname:CreateFontString(nil, "ARTWORK", "GameFontHighlightSmall")
-	font:SetText("Group Buff Name:")
+	font:SetText(L["Group Buff Name:"])
 	font:SetPoint("BOTTOMLEFT", groupname, "TOPLEFT", 0, 3)
 	groupname:SetPoint("TOPLEFT", 220, -10)
 	groupname:SetAutoFocus(nil)
@@ -303,7 +303,7 @@ function Buffs:CreateEditFrame(parent)

 	local disptext = CreateFrame("EditBox", name.."DispText", frame, "InputBoxTemplate")
 	local font = disptext:CreateFontString(nil, "ARTWORK", "GameFontHighlightSmall")
-	font:SetText("Display Text:")
+	font:SetText(L["Display Text:"])
 	font:SetPoint("BOTTOMLEFT", disptext, "TOPLEFT", 0, 3)
 	disptext:SetPoint("TOPLEFT", 0, -50)
 	disptext:SetAutoFocus(nil)
@@ -437,25 +437,25 @@ function Buffs:CreateEditFrame(parent)
 	end

 	local cancel = CreateFrame("Button", "PRBuffs_EditCancel", PROptions_Buffs_Edit, "PRButtonTemplate")
-	cancel.Label:SetText("Cancel")
+	cancel.Label:SetText(L["Cancel"])
 	cancel:SetPoint("BOTTOMRIGHT", 0, 5)
 	cancel:SetScript("OnClick", function() self:CancelEntry() end)
 	cancel:Show()

 	local save = CreateFrame("Button", "PRBuffs_EditSave", PROptions_Buffs_Edit, "PRButtonTemplate")
-	save.Label:SetText("Save")
+	save.Label:SetText(L["Save"])
 	save:SetPoint("BOTTOMRIGHT", cancel, "BOTTOMLEFT", -10, 0)
 	save:SetScript("OnClick", function() self:SaveEntry() end)
 	save:Show()

 	local missing = CreateFrame("CheckButton", "PRBuffs_Missing", PROptions_Buffs_Edit, "PRCheckTemplate")
-	missing.Label:SetText("Only show if this buff is missing")
+	missing.Label:SetText(L["Only show if this buff is missing"])
 	missing:SetPoint("BOTTOMLEFT", 0, 10)
 	missing:Show()
 	frame.missing = missing

 	local disabled = CreateFrame("CheckButton", "PRBuffs_Disabled", PROptions_Buffs_Edit, "PRCheckTemplate")
-	disabled.Label:SetText("Do not check this buff (Disable)")
+	disabled.Label:SetText(L["Do not check this buff (Disable)"])
 	disabled:SetPoint("BOTTOMLEFT", missing, "TOPLEFT", 0, 10)
 	disabled:Show()
 	frame.disabled = disabled
diff --git a/PerfectRaid_Hacks.lua b/PerfectRaid_Hacks.lua
index 9efddc9..ce475bc 100644
--- a/PerfectRaid_Hacks.lua
+++ b/PerfectRaid_Hacks.lua
@@ -54,7 +54,7 @@ function Hacks:CreateOptions(opt)
 	options.widgets = {}

 	local slider = CreateFrame("Slider", "PRHacks_Scale", options, "PRSliderTemplate")
-	slider.Text:SetText("Frame Scale")
+	slider.Text:SetText(L["Frame Scale"])
 	slider.High:SetText("2.0")
 	slider.Low:SetText("0.1")
 	slider:SetMinMaxValues(0.1,2.0)
@@ -62,7 +62,7 @@ function Hacks:CreateOptions(opt)
 	table.insert(options.widgets, slider)

 	local check = CreateFrame("CheckButton", "PRHacks_Backdrop", options, "PRCheckTemplate")
-	check.Label:SetText("Put a backdrop behind PerfectRaid")
+	check.Label:SetText(L["Put a backdrop behind PerfectRaid"])
 	table.insert(options.widgets, check)

 	slider:SetScript("OnValueChanged", function(frame)
@@ -71,13 +71,13 @@ function Hacks:CreateOptions(opt)
 	end)

 	local cancel = CreateFrame("Button", "PRHacks_Cancel", options, "PRButtonTemplate")
-	cancel.Label:SetText("Cancel")
+	cancel.Label:SetText(L["Cancel"])
 	cancel:SetPoint("BOTTOMRIGHT", 0, 5)
 	cancel:SetScript("OnClick", function() self:OnShow() end)
 	cancel:Show()

 	local save = CreateFrame("Button", "PRHacks_Save", options, "PRButtonTemplate")
-	save.Label:SetText("Save")
+	save.Label:SetText(L["Save"])
 	save:SetPoint("BOTTOMRIGHT", cancel, "BOTTOMLEFT", -10, 0)
 	save:SetScript("OnClick", function() self:SaveOptions() end)
 	save:Show()
diff --git a/PerfectRaid_Range.lua b/PerfectRaid_Range.lua
index cd26b12..ccaec02 100644
--- a/PerfectRaid_Range.lua
+++ b/PerfectRaid_Range.lua
@@ -114,11 +114,11 @@ function Range:CreateOptions(opt)
 	options.widgets = {}

 	local check = CreateFrame("CheckButton", "PRRange_Enable", options, "PRCheckTemplate")
-	check.Label:SetText("Perform range checking")
+	check.Label:SetText(L["Perform range checking"])
 	table.insert(options.widgets, check)

 	local slider = CreateFrame("Slider", "PRRange_Rate", options, "PRSliderTemplate")
-	slider.Text:SetText("Update delay")
+	slider.Text:SetText(L["Update delay"])
 	slider.High:SetText("2.0")
 	slider.Low:SetText("0")
 	slider:SetMinMaxValues(0,2.0)
@@ -126,7 +126,7 @@ function Range:CreateOptions(opt)
 	table.insert(options.widgets, slider)

 	local slider = CreateFrame("Slider", "PRRange_Alpha", options, "PRSliderTemplate")
-	slider.Text:SetText("Out-of-Range Alpha")
+	slider.Text:SetText(L["Out-of-Range Alpha"])
 	slider.High:SetText("1")
 	slider.Low:SetText("0")
 	slider:SetMinMaxValues(0,1)
@@ -134,13 +134,13 @@ function Range:CreateOptions(opt)
 	table.insert(options.widgets, slider)

 	local cancel = CreateFrame("Button", "PRRange_Cancel", options, "PRButtonTemplate")
-	cancel.Label:SetText("Cancel")
+	cancel.Label:SetText(L["Cancel"])
 	cancel:SetPoint("BOTTOMRIGHT", 0, 5)
 	cancel:SetScript("OnClick", function() self:OnShow() end)
 	cancel:Show()

 	local save = CreateFrame("Button", "PRRange_Save", options, "PRButtonTemplate")
-	save.Label:SetText("Save")
+	save.Label:SetText(L["Save"])
 	save:SetPoint("BOTTOMRIGHT", cancel, "BOTTOMLEFT", -10, 0)
 	save:SetScript("OnClick", function() self:SaveOptions() end)
 	save:Show()