Permalink
Browse files

Title is no longer hard-coded

  • Loading branch information...
1 parent a364a67 commit 8e6d5e80401f8e3b8b63294bf3940eb85520804b @Jaliborc Jaliborc committed Mar 11, 2012
Showing with 3 additions and 1 deletion.
  1. +1 −0 localization/en.lua
  2. +2 −1 main.lua
View
@@ -5,6 +5,7 @@
local L = LibStub('AceLocale-3.0'):NewLocale('Bagnon-GuildBank', 'enUS', true)
+L.Title = [[%s's Guild Bank]]
L.Log1 = 'Transaction Log'
L.Log3 = 'Tab Information'
View
@@ -5,9 +5,10 @@
local Bagnon = LibStub('AceAddon-3.0'):GetAddon('Bagnon')
local GuildBank = Bagnon:NewModule('GuildBank', 'AceEvent-3.0')
+local L = LibStub('AceLocale-3.0'):GetLocale('Bagnon-GuildBank')
function GuildBank:OnEnable()
- Bagnon.GuildFrame:New('guildbank')
+ Bagnon.GuildFrame:New('guildbank', L.Title)
self:RegisterEvent('GUILDBANKFRAME_OPENED')
self:RegisterEvent('GUILDBANKFRAME_CLOSED')

0 comments on commit 8e6d5e8

Please sign in to comment.