Mercurial > wow > whichrankdoeswhat
changeset 3:001b15e07b87
Poke the localizer.
| author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
|---|---|
| date | Sat, 12 Feb 2011 19:09:57 +0000 |
| parents | 78ff21480511 |
| children | e66407f67848 |
| files | .pkgmeta WhichRankDoesWhat.toc locale-deDE.lua locale-enUS.lua locale-esES.lua locale-esMX.lua locale-frFR.lua locale-koKR.lua locale-ruRU.lua locale-zhCN.lua locale-zhTW.lua main.lua |
| diffstat | 12 files changed, 102 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/.pkgmeta Fri Jan 14 02:09:34 2011 +0000 +++ b/.pkgmeta Sat Feb 12 19:09:57 2011 +0000 @@ -19,6 +19,8 @@ url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceDBOptions-3.0 libs/AceDB-3.0: url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceDB-3.0 + libs/AceLocale-3.0: + url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceLocale-3.0 libs/AceGUI-3.0: url: svn://svn.wowace.com/wow/ace3/mainline/trunk/AceGUI-3.0 libs/lib-st:
--- a/WhichRankDoesWhat.toc Fri Jan 14 02:09:34 2011 +0000 +++ b/WhichRankDoesWhat.toc Sat Feb 12 19:09:57 2011 +0000 @@ -13,12 +13,23 @@ libs\AceDB-3.0\AceDB-3.0.xml libs\AceDBOptions-3.0\AceDBOptions-3.0.xml libs\AceEvent-3.0\AceEvent-3.0.xml +libs\AceLocale-3.0\AceLocale-3.0.xml libs\AceConsole-3.0\AceConsole-3.0.xml libs\AceGUI-3.0\AceGUI-3.0.xml libs\AceConfig-3.0\AceConfig-3.0.xml libs\lib-st\lib-st.xml #@end-no-lib-strip@ +locale-enUS.lua +locale-deDE.lua +locale-esES.lua +locale-esMX.lua +locale-frFR.lua +locale-koKR.lua +locale-ruRU.lua +locale-zhCN.lua +locale-zhTW.lua + AceGUIWidget-lib-st.lua main.lua
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/locale-deDE.lua Sat Feb 12 19:09:57 2011 +0000 @@ -0,0 +1,8 @@ +-- Which Rank Does What Locale +-- Please use the Localization App on WoWAce to Update this +-- http://www.wowace.com/addons/whichrankdoeswhat/localization/ +local nametag = ... +local L = LibStub("AceLocale-3.0"):NewLocale(nametag, "deDE") +if not L then return end + +--@localization(locale="deDE", format="lua_additive_table", handle-unlocalized="comment")@
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/locale-enUS.lua Sat Feb 12 19:09:57 2011 +0000 @@ -0,0 +1,7 @@ +-- Which Rank Does What Locale +-- Please use the Localization App on WoWAce to Update this +-- http://www.wowace.com/addons/whichrankdoeswhat/localization/ +local nametag = ... +local L = LibStub("AceLocale-3.0"):NewLocale(nametag, "enUS", --[[default=]]true, --[[silent=]]true) + +--@localization(locale="enUS", format="lua_additive_table", same-key-is-true=true)@
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/locale-esES.lua Sat Feb 12 19:09:57 2011 +0000 @@ -0,0 +1,8 @@ +-- Which Rank Does What Locale +-- Please use the Localization App on WoWAce to Update this +-- http://www.wowace.com/addons/whichrankdoeswhat/localization/ +local nametag = ... +local L = LibStub("AceLocale-3.0"):NewLocale(nametag, "esES") +if not L then return end + +--@localization(locale="esES", format="lua_additive_table", handle-unlocalized="comment")@
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/locale-esMX.lua Sat Feb 12 19:09:57 2011 +0000 @@ -0,0 +1,8 @@ +-- Which Rank Does What Locale +-- Please use the Localization App on WoWAce to Update this +-- http://www.wowace.com/addons/whichrankdoeswhat/localization/ +local nametag = ... +local L = LibStub("AceLocale-3.0"):NewLocale(nametag, "esMX") +if not L then return end + +--@localization(locale="esMX", format="lua_additive_table", handle-unlocalized="comment")@
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/locale-frFR.lua Sat Feb 12 19:09:57 2011 +0000 @@ -0,0 +1,8 @@ +-- Which Rank Does What Locale +-- Please use the Localization App on WoWAce to Update this +-- http://www.wowace.com/addons/whichrankdoeswhat/localization/ +local nametag = ... +local L = LibStub("AceLocale-3.0"):NewLocale(nametag, "frFR") +if not L then return end + +--@localization(locale="frFR", format="lua_additive_table", handle-unlocalized="comment")@
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/locale-koKR.lua Sat Feb 12 19:09:57 2011 +0000 @@ -0,0 +1,8 @@ +-- Which Rank Does What Locale +-- Please use the Localization App on WoWAce to Update this +-- http://www.wowace.com/addons/whichrankdoeswhat/localization/ +local nametag = ... +local L = LibStub("AceLocale-3.0"):NewLocale(nametag, "koKR") +if not L then return end + +--@localization(locale="koKR", format="lua_additive_table", handle-unlocalized="comment")@
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/locale-ruRU.lua Sat Feb 12 19:09:57 2011 +0000 @@ -0,0 +1,8 @@ +-- Which Rank Does What Locale +-- Please use the Localization App on WoWAce to Update this +-- http://www.wowace.com/addons/whichrankdoeswhat/localization/ +local nametag = ... +local L = LibStub("AceLocale-3.0"):NewLocale(nametag, "ruRU") +if not L then return end + +--@localization(locale="ruRU", format="lua_additive_table", handle-unlocalized="comment")@
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/locale-zhCN.lua Sat Feb 12 19:09:57 2011 +0000 @@ -0,0 +1,8 @@ +-- Which Rank Does What Locale +-- Please use the Localization App on WoWAce to Update this +-- http://www.wowace.com/addons/whichrankdoeswhat/localization/ +local nametag = ... +local L = LibStub("AceLocale-3.0"):NewLocale(nametag, "zhCN") +if not L then return end + +--@localization(locale="zhCN", format="lua_additive_table", handle-unlocalized="comment")@
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/locale-zhTW.lua Sat Feb 12 19:09:57 2011 +0000 @@ -0,0 +1,8 @@ +-- Which Rank Does What Locale +-- Please use the Localization App on WoWAce to Update this +-- http://www.wowace.com/addons/whichrankdoeswhat/localization/ +local nametag = ... +local L = LibStub("AceLocale-3.0"):NewLocale(nametag, "zhTW") +if not L then return end + +--@localization(locale="zhTW", format="lua_additive_table", handle-unlocalized="comment")@
--- a/main.lua Fri Jan 14 02:09:34 2011 +0000 +++ b/main.lua Sat Feb 12 19:09:57 2011 +0000 @@ -1,4 +1,5 @@ local nametag, addon = ... +local L = LibStub("AceLocale-3.0"):GetLocale(nametag) addon.defaults = { profile = { @@ -17,8 +18,8 @@ set = "SetOption", args = { general = { - name = "General", - desc = "General options", + name = GENERAL, + desc = L["General options"], type = 'group', order = 10, args = { @@ -31,15 +32,15 @@ order = 1, }, enable = { - name = "Enable", - desc = "Use this addon", + name = ENABLE, + desc = L["Use this addon"], type = 'toggle', arg = "ToggleEnable", order = 5, }, guildcontrol = { - name = "Guild Control for non-GMs", - desc = [[Make the grayed-out Guild Control button activate this addon instead.]], + name = L["Guild Control for non-GMs"], + desc = L["Make the grayed-out Guild Control button activate this addon instead."], type = 'toggle', order = 10, }, @@ -52,7 +53,7 @@ }, popup = { name = "/wrdw", - desc = "Toggle WRDW window", + desc = L["Toggle WRDW window"], type = 'execute', func = function() InterfaceOptionsFrameCancel:Click() @@ -142,7 +143,7 @@ end function addon:OnDisable() - self:Print([[You will need to relog or /reload to fully disable this addon.]]) + self:Print(L["You will need to relog or /reload to fully disable this addon."]) end function addon:ToggleEnable() @@ -168,10 +169,14 @@ -- Something somewhere has changed, redo the cache -function addon:GUILD_RANKS_UPDATE() - self.perms = nil - if (not incomplete) and self.display and self.display:IsVisible() then - self.display:SetStatusText([[|cffff1010Guild flags have changed!|r You must close and reopen this window to display the changes.]]) +do + local text = '|cffff1010' .. L["Guild flags have changed!"] .. '|r' .. + L["You must close and reopen this window to display the changes."] + function addon:GUILD_RANKS_UPDATE() + self.perms = nil + if (not incomplete) and self.display and self.display:IsVisible() then + self.display:SetStatusText(text) + end end end @@ -280,7 +285,7 @@ tab.tooltip = name end if incomplete then - setstatus[[Guild vault information is incomplete. Be closer to a vault, and give it some time. You may need to relog and/or open the guild roster/vault to force a client update.]] + setstatus(L["Guild vault information is incomplete. Be closer to a vault, and give it some time. You may need to relog and/or open the guild roster/vault to force a client update."]) end end end
