Mercurial > wow > mailopener
diff Modules/BeanCounterSupport.lua @ 68:eadff31e61e8
Localization of all files. Testing packager settings (especially automatic locale exports), localization is not yet finished.
| author | Zerotorescue |
|---|---|
| date | Wed, 15 Sep 2010 13:10:56 +0200 |
| parents | 90d58723ac0a |
| children | f01e0184a275 |
line wrap: on
line diff
--- a/Modules/BeanCounterSupport.lua Tue Sep 14 11:17:38 2010 +0200 +++ b/Modules/BeanCounterSupport.lua Wed Sep 15 13:10:56 2010 +0200 @@ -1,7 +1,7 @@ local MailOpener = LibStub("AceAddon-3.0"):GetAddon("MailOpener"); local mod = MailOpener:NewModule("BeanCounterSupport", "AceEvent-3.0", "AceHook-3.0"); -mod.moduleDescription = "Prevents mail opening while BeanCounter is still scanning. Does nothing when BeanCounter is disabled."; +mod.moduleDescription = L["Prevents mail opening while BeanCounter is still scanning. Does nothing when BeanCounter is disabled."]; mod.moduleRequired = false; local MailAddonName = "BeanCounter"; -- what to fill the global MailAddonBusy with @@ -104,31 +104,31 @@ local configGroup = { order = 0, type = "modulesSubGroup", - name = "BeanCounter Support", - desc = "Change settings for the BeanCounter Support module.", + name = L["BeanCounter Support"], + desc = L["Change settings for the BeanCounter Support module."], args = { General = { order = 10, type = "group", inline = true, - name = "General", + name = L["General"], args = { description = { order = 10, type = "description", name = function() - local descText = "With this button you can completely toggle this module |cff00ff00on|r or |cffff0000off|r. This setting will be remembered and the module will be automatically toggled |cff00ff00on|r or |cffff0000off|r upon logon as it was last set.\n\n"; + local descText = L["With this button you can completely toggle this module |cff00ff00on|r or |cffff0000off|r. This setting will be remembered and the module will be automatically toggled |cff00ff00on|r or |cffff0000off|r upon logon as it was last set."] .. "\n\n"; -- Behavior info - descText = descText .. "|cfffed000Please note this module will only be enabled when the addon \"BeanCounter\" is enabled. This module will be disabled when BeanCounter could not be found and enabled when it can unless you manually disabled this module.|r\n\n"; + descText = descText .. L["|cfffed000Please note this module will only be enabled when the addon \"BeanCounter\" is enabled. This module will be disabled when BeanCounter could not be found and enabled when it can unless you manually disabled this module.|r"] .. "\n\n"; -- Final warning - descText = descText .. "|cffff0000You are strongly adviced to leave this module enabled unless you have very good reasons not to.|r\n\n"; + descText = descText .. L["|cffff0000You are strongly adviced to leave this module enabled unless you have very good reasons not to.|r"] .. "\n\n"; if self:IsEnabled() then - descText = descText .. "Status: |cff00ff00Enabled|r"; + descText = descText .. L["Status: %s"]:format(L["|cff00ff00Enabled|r"]); else - descText = descText .. "Status: |cffff0000Disabled|r"; + descText = descText .. L["Status: %s"]:format(L["|cffff0000Disabled|r"]); end return descText; @@ -139,12 +139,12 @@ type = "execute", name = function() if self:IsEnabled() then - return "Disable Module"; + return L["Disable Module"]; else - return "Enable Module"; + return L["Enable Module"]; end end, - desc = "Click here to completely toggle this module on or off.", + desc = L["Click here to completely toggle this module on or off."], width = "double", func = function() if self:IsEnabled() then @@ -159,7 +159,7 @@ end, confirm = function() if self:IsEnabled() then - return "Are you sure you want to disable this module?\n\nIt will only be active when needed and disabling it may cause your BeanCounter data to become incomplete. Leaving it on causes no harm."; + return L["Are you sure you want to disable this module?\n\nIt will only be active when needed and disabling it may cause your BeanCounter data to become incomplete. Leaving it on causes no harm."]; else return false; end
