Quantcast

Add missing strings to enUS

Scott Sibley [07-10-11 - 02:18]
Add missing strings to enUS
Filename
Localization/enUS.lua
Modules/RaidIcon/RaidIcon.lua
Modules/UnitTooltip/UnitTooltip.lua
diff --git a/Localization/enUS.lua b/Localization/enUS.lua
index 24874e9..4f414ba 100644
--- a/Localization/enUS.lua
+++ b/Localization/enUS.lua
@@ -1,5 +1,10 @@
+local debug = false
+--[===[@debug@
+debug = true
+--@end-debug@]===]
+
 local AceLocale = LibStub:GetLibrary("AceLocale-3.0")
-local L = AceLocale:NewLocale("StarTip", "enUS", true, true)
+local L = AceLocale:NewLocale("StarTip", "enUS", true, debug)
 if not L then return end

 L["Welcome to "] = true
@@ -40,6 +45,8 @@ L["Inverted Modifier"] = true
 L["Whether to invert what happens when a key is pressed or not, i.e. show and hide."] = true
 L["Greetings"] = true
 L["Whether the greetings message should be shown or not"] = true
+L["Restart Timers"] = true
+L["Would you like to restart your timers? Note that this will restart all timers."] = true


 -- UnitTooltip
@@ -137,6 +144,7 @@ L["Fails: %d"] = true
 L["Threat"] = true
 -- UnitTooltip options
 L["Add Line"] = true
+L["A line named %s already exists."] = true
 L["Give the line a name"] = true
 L["Refresh Rate"] = true
 L["The rate at which the tooltip will be refreshed"] = true
@@ -202,6 +210,11 @@ L["Left Color"] = true
 L["Background color for left segment. Return r, g, b, and a."] = true
 L["Right Color"] = true
 L["Background color for right segment. Return r, g, b, and a."] = true
+L["Update Anyways"] = true
+L["Line segments won't update if the text never changes. Enable this option to bypass this restriction"] = true
+L["How fast to scroll marquee text."] = true
+L["Clip Length"] = true
+L["Whether to clip the string's length when it is longer than the value of Columns."] = true

 -- Mouse Gestures
 L["Left Button"] = true
@@ -219,6 +232,8 @@ L["Delete this widget"] = true


 -- Appearance
+L["Bold Font"] = true
+L["Set the tooltip's bold font"] = true
 L["Scale Slider"] = true
 L["Adjust tooltip scale"] = true
 L["Tooltip Font"] = true
@@ -300,12 +315,26 @@ L["Restore Defaults"] = true
 L["Toggle whether this histogram is enabled or not."] = true

 -- Portrait
+L["Whether to show a portrait on the item tooltip."] = true
+L["Whether to show a portrait on the spell tooltip."] = true
+L["Whether to show a portrait on the default unit tooltip."] = true
+L["Whether to show a portrait on the main QTip tooltip."] = true
+L["Item Tooltip"] = true
+L["Spell Tooltip"] = true
+L["Tooltip Main"] = true
+L["Whether to show the portrait as a 3d model (toggled true) or a 2d model (toggled false)"] = true
+L["Default Unit Tooltip"] = true
 L["Size"] = true
 L["The square portrait's width and height"] = true
 L["3d Model"] = true
 L["Whether to show the portrait as a 3d model (toggled true) or a 2d model (toggled false)"] = true

 -- Position
+L["Left"] = true
+L["Right"] = true
+L["Top"] = true
+L["Bottom"] = true
+L["Offscreen"] = true
 L["World Units"] = true
 L["Where to anchor the tooltip when mousing over world characters"] = true
 L["X-axis offset: %d-%d"] = true
diff --git a/Modules/RaidIcon/RaidIcon.lua b/Modules/RaidIcon/RaidIcon.lua
index 5dc3dcf..54ccb17 100644
--- a/Modules/RaidIcon/RaidIcon.lua
+++ b/Modules/RaidIcon/RaidIcon.lua
@@ -64,7 +64,7 @@ end

 function mod:GetOptions()
 	local options = {
-		pvp = {
+		icon = {
 			name = L["Raid Icon"],
 			type = "group",
 			args = {
@@ -107,7 +107,7 @@ function mod:GetOptions()
 	}

 	for i, point in ipairs(self.db.profile.points) do
-		options.pvp.args["point" .. i] = {
+		options.icon.args["point" .. i] = {
 			name = "Point #" .. i,
 			type = "group",
 			order = i + 1,
diff --git a/Modules/UnitTooltip/UnitTooltip.lua b/Modules/UnitTooltip/UnitTooltip.lua
index db660e1..02c02d5 100644
--- a/Modules/UnitTooltip/UnitTooltip.lua
+++ b/Modules/UnitTooltip/UnitTooltip.lua
@@ -1074,9 +1074,26 @@ function mod:RebuildOpts()
             name = L["Add Line"],
             desc = L["Give the line a name"],
             type = "input",
+            validate = function(info, v)
+                for k, line in pairs(self.db.profile.lines) do
+			if line.name == v and not v.deleted then
+				StarTip:Print(format(L["A line named %s already exists."], v))
+				return false
+			end
+		end
+		return true
+            end,
             set = function(info, v)
                 if v == "" then return end
-                tinsert(self.db.profile.lines, {name = v, left = nil, right = nil, update=500, enabled = true})
+		local key
+		for k, v in pairs(self.db.profile.lines) do
+			if v.name == v then
+				key = k
+				break
+			end
+		end
+		if key then tremove(self.db.profile.lines, key) end
+                tinsert(self.db.profile.lines, {name = v, left = nil, right = nil, update=500, enabled = true, custom=true})
                 self:RebuildOpts()
                 StarTip:RebuildOpts()
                 self:ClearLines()
@@ -1528,7 +1545,7 @@ print("lolol")
                                 order = 10
                             },
                             limited = {
-                                name = L["Clip length"],
+                                name = L["Clip Length"],
                                 desc = L["Whether to clip the string's length when it is longer than the value of Columns."],
                                 type = "toggle",
                                 get = function()