Quantcast

Added localization for favorites.

pschifferer [01-22-09 - 17:44]
Added localization for favorites.
Filename
Cauldron/CauldronMain.xml
Cauldron/CauldronMainUI.lua
Cauldron/Locale/Cauldron-enUS.lua
diff --git a/Cauldron/CauldronMain.xml b/Cauldron/CauldronMain.xml
index 81c8447..64fe6db 100644
--- a/Cauldron/CauldronMain.xml
+++ b/Cauldron/CauldronMain.xml
@@ -165,7 +165,7 @@
 						Cauldron:FavoriteItemButton_OnClick(self);
 					</OnClick>
 				</Scripts>
-			</Button>
+			</CheckButton>
     		<Frame name="$parentReagents">
     			<Size x="40" y="100" />
 				<Anchors>
diff --git a/Cauldron/CauldronMainUI.lua b/Cauldron/CauldronMainUI.lua
index 6b672bc..6a4cc82 100644
--- a/Cauldron/CauldronMainUI.lua
+++ b/Cauldron/CauldronMainUI.lua
@@ -226,6 +226,7 @@ function Cauldron:UpdateSkillList()
 		-- set favorite check button
 		frame = _G["CauldronSkillItem"..i.."FavoriteButton"];
 		frame:SetChecked(self.db.realm.userdata[self.vars.playername].skills[skillName].window.skills[skillInfo.name].favorite);
+		frame.skillInfo = skillInfo;

 		-- set cooldown
 		frame = _G["CauldronSkillItem"..i.."SkillCooldown"];
diff --git a/Cauldron/Locale/Cauldron-enUS.lua b/Cauldron/Locale/Cauldron-enUS.lua
index c6a1013..28ab192 100644
--- a/Cauldron/Locale/Cauldron-enUS.lua
+++ b/Cauldron/Locale/Cauldron-enUS.lua
@@ -50,6 +50,8 @@ L["Medium"] = true
 L["Easy"] = true
 L["Trivial"] = true
 L["Set whether items of this difficulty level should be shown"] = true
+L["Favorites"] = true
+L["Mark this skill as a favorite"] = true
 L["Reagents"] = true
 L["Display the normal list of skills"] = true
 L["Set whether skills for which you have all the required reagents are shown in the list"] = true