Quantcast

Some cleanup and locales

Darthpred [02-20-13 - 12:18]
Some cleanup and locales
Filename
ElvUI_SLE/locales/english.lua
ElvUI_SLE/locales/russian.lua
ElvUI_SLE/modules/farm/farm.lua
ElvUI_SLE/modules/farm/options.lua
diff --git a/ElvUI_SLE/locales/english.lua b/ElvUI_SLE/locales/english.lua
index bcf44cb..aa5327e 100644
--- a/ElvUI_SLE/locales/english.lua
+++ b/ElvUI_SLE/locales/english.lua
@@ -131,6 +131,10 @@ L['Only show the buttons for the seeds, portals, tools you have in your bags.']
 L["Seed Bars"] = true
 L["Auto Planting"] = true
 L["Automatically plant seeds to the nearest tilled soil if one is not already selected."] = true
+L["Dock Buttons To"] = true
+L["Change the position from where seed bars will grow."] = true
+L["Bottom"] = true
+L["Top"] = true
 L["Farm Seed Bars"] = true
 L["Farm Tool Bar"] = true
 L["Farm Portal Bar"] = true
diff --git a/ElvUI_SLE/locales/russian.lua b/ElvUI_SLE/locales/russian.lua
index 10d4578..3489f59 100644
--- a/ElvUI_SLE/locales/russian.lua
+++ b/ElvUI_SLE/locales/russian.lua
@@ -136,6 +136,10 @@ L['Only show the buttons for the seeds, portals, tools you have in your bags.']
 L["Seed Bars"] = "Панели семян"
 L["Auto Planting"] = "Автоматическая посадка"
 L["Automatically plant seeds to the nearest tilled soil if one is not already selected."] = "Автоматически высаживать указанное растение на ближайшую возделанную змелю, если не выбрана другая."
+L["Dock Buttons To"] = "Прикрепить кнопки к"
+L["Change the position from where seed bars will grow."] = "Изменить сторону, с которой будут расти панели семян."
+L["Bottom"] = "Низ"
+L["Top"] = "Верх"
 L["Farm Seed Bars"] = "Панели семян"
 L["Farm Tool Bar"] = "Панель инструментов"
 L["Farm Portal Bar"] = "Панель порталов"
diff --git a/ElvUI_SLE/modules/farm/farm.lua b/ElvUI_SLE/modules/farm/farm.lua
index a189b04..63d1b99 100644
--- a/ElvUI_SLE/modules/farm/farm.lua
+++ b/ElvUI_SLE/modules/farm/farm.lua
@@ -149,12 +149,6 @@ function F:UpdateSeedBarLayout(seedBar, anchor, buttons, category)
 	size = db.size
 	local seedor = db.seedor
 	seedBar:ClearAllPoints()
-	--_G[("FarmSeedBar%d"):format(i)
-	--[[if category == 1 then
-		seedBar:Point("TOPLEFT", anchor, "TOPLEFT", (E.PixelMode and 0 or -2), 0)
-	else
-		seedBar:Point("TOPLEFT", anchor, "TOPLEFT", (category-1)*(size+(E.PixelMode and 2 or 1))-(E.PixelMode and 0 or 2), 0)
-	end]]
 	if category == 1 then
 		if seedor == "TOP" or seedor == "BOTTOM" then
 			seedBar:Point(seedor.."LEFT", anchor, (E.PixelMode and 0 or -2), seedor == "TOP" and 0 or (E.PixelMode and 2 or 0))
@@ -297,7 +291,6 @@ end
 function F:CreateFrames()
 	size = E.db.sle.farm.size
 	SeedAnchor = CreateFrame("Frame", "SeedAnchor", E.UIParent)
-	SeedAnchor:CreateBackdrop("Transparent")
 	SeedAnchor:SetFrameStrata("BACKGROUND")

 	ToolAnchor = CreateFrame("Frame", "ToolAnchor", E.UIParent)
@@ -327,7 +320,6 @@ function F:CreateFrames()

 	for i = 1, 5 do
 		local seedBar = CreateFrame("Frame", ("FarmSeedBar%d"):format(i), UIParent)
-		--seedBar:CreateBackdrop("Transparent")
 		seedBar:Width(size+2)
 		seedBar:Height(size+2)
 		seedBar:SetFrameStrata("BACKGROUND")
diff --git a/ElvUI_SLE/modules/farm/options.lua b/ElvUI_SLE/modules/farm/options.lua
index d63ea79..b4932ce 100644
--- a/ElvUI_SLE/modules/farm/options.lua
+++ b/ElvUI_SLE/modules/farm/options.lua
@@ -53,16 +53,16 @@ E.Options.args.sle.args.farm = {
 				growth = {
 					order = 8,
 					type = "select",
-					name = L["Direction"],
-					desc = L["Change the direction of buttons growth from the skull marker"],
+					name = L["Dock Buttons To"],
+					desc = L["Change the position from where seed bars will grow."],
 					disabled = function() return not E.private.sle.farm end,
 					get = function(info) return E.db.sle.farm.seedor end,
 					set = function(info, value) E.db.sle.farm.seedor = value; F:UpdateLayout() end,
 					values = {
 						['RIGHT'] = L["Right"],
 						['LEFT'] = L["Left"],
-						['BOTTOM'] = L["Up"],
-						['TOP'] = L["Down"],
+						['BOTTOM'] = L["Bottom"],
+						['TOP'] = L["Top"],
 					},
 				},
 			},