From ce8ed4066210699c3cbb6cfe531483fe433c853b Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sat, 24 Apr 2010 00:37:02 -0400 Subject: [PATCH] Changed @project-revision@ to @project-version@ in the ToC and in user-visible places. --- ARL.lua | 3 +-- AckisRecipeList.toc | 4 ++-- Frame.lua | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/ARL.lua b/ARL.lua index 9a51941..4574270 100644 --- a/ARL.lua +++ b/ARL.lua @@ -400,8 +400,7 @@ function addon:OnInitialize() return end local version = GetAddOnMetadata("AckisRecipeList", "Version") - version = string.gsub(version, "@project.revision@", "Devel") - self.version = version + self.version = (version == "@project-version@") and "Devel" or version self:SetupOptions() diff --git a/AckisRecipeList.toc b/AckisRecipeList.toc index a73fcfb..55d10a2 100644 --- a/AckisRecipeList.toc +++ b/AckisRecipeList.toc @@ -33,8 +33,8 @@ ## X-Donate: http://www.wowace.com/addons/arl/#w-donations ## Interface: 30300 -## Version: 1.0 @project-revision@ -## X-Revision: @project-revision@ +## Version: @project-version@ +## X-Revision: @project-abbreviated-hash@ ## X-Date: @file-date-iso@ ## X-Credits: FGWarmonger, Kagaro, Speeddymon, Xinhuan, Aesir, BWMerlin, everyone who translated stuff and more! diff --git a/Frame.lua b/Frame.lua index 9e06b81..2464407 100644 --- a/Frame.lua +++ b/Frame.lua @@ -1241,7 +1241,7 @@ end function MainPanel:UpdateTitle() if not self.is_expanded then - self.title_bar:SetFormattedText(SetTextColor(BASIC_COLORS["normal"], "ARL (v.%s) - %s"), addon.version, Player.current_prof) + self.title_bar:SetFormattedText(SetTextColor(BASIC_COLORS["normal"], "ARL (%s) - %s"), addon.version, Player.current_prof) return end local total, active = 0, 0 @@ -1254,7 +1254,7 @@ function MainPanel:UpdateTitle() total = total + 1 end end - self.title_bar:SetFormattedText(SetTextColor(BASIC_COLORS["normal"], "ARL (v.%s) - %s (%d/%d %s)"), addon.version, Player.current_prof, active, total, _G.FILTERS) + self.title_bar:SetFormattedText(SetTextColor(BASIC_COLORS["normal"], "ARL (%s) - %s (%d/%d %s)"), addon.version, Player.current_prof, active, total, _G.FILTERS) end ------------------------------------------------------------------------------- -- 1.7.9.5