Quantcast

Added missing locale strings.

pschifferer [12-15-09 - 03:01]
Added missing locale strings.
Filename
CauldronMain.xml
CauldronMainUI.lua
CauldronShoppingListUI.lua
Locale/Cauldron-enUS.lua
Locale/Cauldron-ruRU.lua
diff --git a/CauldronMain.xml b/CauldronMain.xml
index 845ac06..a3a7358 100644
--- a/CauldronMain.xml
+++ b/CauldronMain.xml
@@ -992,7 +992,7 @@

                 <Layers>
                     <Layer level="OVERLAY">
-                        <FontString inherits="GameFontNormal" text="Queue">
+                        <FontString name="$parentQueueLabel" inherits="GameFontNormal" text="Queue">
                             <Anchors>
                                 <Anchor point="TOP" relativeTo="CauldronSkillInfoFrame" relativePoint="TOP">
                                     <Offset x="0" y="-18" />
@@ -1086,7 +1086,7 @@
 						<Layers>
 							<Layer level="OVERLAY">
 								<FontString name="$parentText" inherits="QuestTitleFont"
-											text="The queue is empty!"
+											text=""
 											justifyH="CENTER" justifyV="CENTER">
 									<Size x="302" y="360" />
 									<Anchors>
diff --git a/CauldronMainUI.lua b/CauldronMainUI.lua
index 36e0837..f546e2a 100644
--- a/CauldronMainUI.lua
+++ b/CauldronMainUI.lua
@@ -54,6 +54,13 @@ function Cauldron:Frame_Show()
 			--]]

 		end
+
+		-- put localized text in various labels
+		CauldronSkillInfoFrameQueueLabel:SetText(L["Queue"]);
+		CauldronQueueAllButton:SetText(L["Queue All"]);
+		CauldronQueueButton:SetText(L["Queue"]);
+		CauldronProcessButton:SetText(L["Process"]);
+		CauldronClearQueueButton:SetText(L["Clear Queue"]);

 		--@alpha@
 	 	self:debug("Frame_Show: show our frame");
@@ -641,9 +648,9 @@ function Cauldron:UpdateQueue()
 		CauldronQueueFrameScrollFrame:Hide();

 		if IsTradeSkillLinked() then
-			CauldronQueueFrameQueueEmptyText:SetText("No queue for linked tradeskills.");
+			CauldronQueueFrameQueueEmptyText:SetText(L["No queue for linked tradeskills."]);
 		else
-			CauldronQueueFrameQueueEmptyText:SetText("The queue is empty!\nMake something.");
+			CauldronQueueFrameQueueEmptyText:SetText(L["The queue is empty!\nMake something."]);
 		end

 		return;
diff --git a/CauldronShoppingListUI.lua b/CauldronShoppingListUI.lua
index bf4deeb..374b1eb 100644
--- a/CauldronShoppingListUI.lua
+++ b/CauldronShoppingListUI.lua
@@ -38,6 +38,9 @@ function Cauldron:ShowShoppingList()
 		self.db.profile.showShoppingList = true;
 	end

+	-- update labels with localized text
+	CauldronShoppingListFrameTitleText:SetText(L["Shopping List"]);
+
 	Cauldron:UpdateShoppingList();

 	_G["CauldronShoppingListFrameAutoBuyButton"]:SetChecked(Cauldron:GetAutoBuy());
diff --git a/Locale/Cauldron-enUS.lua b/Locale/Cauldron-enUS.lua
index a56d202..e9f5b02 100644
--- a/Locale/Cauldron-enUS.lua
+++ b/Locale/Cauldron-enUS.lua
@@ -32,11 +32,16 @@ L["Toggles whether Cauldron displays debug messages"] = true
 L["enabled"] = true
 L["disabled"] = true
 L["skills"] = true
+L["Queue"] = true
+L["Queue All"] = true
+L["Process"] = true
+L["Clear Queue"] = true

 L["Cauldron had issues with some recipes for this profession."] = true
 L["Please close and re-open the %1$s window again to re-scan."] = true
 L["Rescanning recipe: %1$s..."] = true

+L["Shopping List"] = true
 L["Auto-buy?"] = true
 L["If this option is checked, then any item that is in the list will be automatically purchased when a vendor window is opened, if that vendor has the items."] = true

@@ -134,6 +139,9 @@ L["Decrease the amount of this item"] = true
 L["Increase the amount of this item"] = true
 L["Remove this item from the shopping list"] = true

+L["No queue for linked tradeskills."] = true
+L["The queue is empty!\nMake something."] = true
+
 L["Available at vendor"] = true

 L["Click to queue the listed amount of this item"] = true
diff --git a/Locale/Cauldron-ruRU.lua b/Locale/Cauldron-ruRU.lua
index 811faea..2ec265a 100755
--- a/Locale/Cauldron-ruRU.lua
+++ b/Locale/Cauldron-ruRU.lua
@@ -31,7 +31,12 @@ L["Toggles whether Cauldron displays debug messages"] = ""
 L["enabled"] = "включен"
 L["disabled"] = "отключен"
 L["skills"] = "навыка(ов)"
+L["Queue"] = true
+L["Queue All"] = true
+L["Process"] = true
+L["Clear Queue"] = true

+L["Shopping List"] = true
 L["Auto-buy?"] = "Авто-купить?"
 L["If this option is checked, then any item that is in the list will be automatically purchased when a vendor window is opened, if that vendor has the items."] = "Если эта опция отмечена, то любой предмет, который находится в списке будет автоматически куплен при открытии окна торговца, если такой будет в наличии."