From 1f688db6fb3f1a687a92eba518cbabaa1817c47c Mon Sep 17 00:00:00 2001 From: Darthpred Date: Mon, 4 Mar 2013 19:22:16 +0400 Subject: [PATCH] Lib update --- .../libs/LibElvUIPlugin-1.0/LibElvUIPlugin-1.0.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ElvUI_SLE/libs/LibElvUIPlugin-1.0/LibElvUIPlugin-1.0.lua b/ElvUI_SLE/libs/LibElvUIPlugin-1.0/LibElvUIPlugin-1.0.lua index b740339..70d0cba 100644 --- a/ElvUI_SLE/libs/LibElvUIPlugin-1.0/LibElvUIPlugin-1.0.lua +++ b/ElvUI_SLE/libs/LibElvUIPlugin-1.0/LibElvUIPlugin-1.0.lua @@ -88,7 +88,8 @@ function lib:SetupVersionCheck(plugin) if plugin.version ~= 'BETA' and tonumber(message) ~= nil and tonumber(message) > tonumber(plugin.version) then plugin.old = true plugin.newversion = tonumber(message) - E:Print(L["Your version of "] .. plugin.name .. L[" is out of date. You can download the latest version from http://www.tukui.org"]) + local Pname = GetAddOnMetadata(plugin.name, "Title") + E:Print(L["Your version of "] .. Pname .. L[" is out of date. You can download the latest version from http://www.tukui.org"]) E[plugin.name.."recievedOutOfDateMessage"] = true end end @@ -132,14 +133,16 @@ function lib:GeneratePluginList() local author = GetAddOnMetadata(plugin.name, "Author") local Pname = GetAddOnMetadata(plugin.name, "Title") local color = plugin.old and E:RGBToHex(1,0,0) or E:RGBToHex(0,1,0) - list = list .. color .. Pname .. " " ..L["Version"].." " .. plugin.version + list = list .. Pname if author then list = list .. " "..L["by"].." " .. author end + list = list .. color .. " - " ..L["Version"].." " .. plugin.version if plugin.old then list = list .. L[" (Newest: "] .. plugin.newversion .. ")" end list = list .. "|r\n" + E:Print(L["Your version of "] .. Pname .. L[" is out of date. You can download the latest version from http://www.tukui.org"]) end end return list -- 1.7.9.5