Mercurial > wow > degaine
comparison Localization.lua @ 63:3daeb57da1a9 tip
Automated merge with ssh://hg.wowace.com/wow/degaine/mainline
| author | contrebasse |
|---|---|
| date | Wed, 01 Jun 2011 19:16:37 +0200 |
| parents | 2e42e992d588 |
| children |
comparison
equal
deleted
inserted
replaced
| 61:60dfeef23620 | 63:3daeb57da1a9 |
|---|---|
| 1 local AddonName, T = ... | |
| 2 | |
| 3 -- Taken from Inline Aura | |
| 4 local L = setmetatable({}, {__index = function(self, key) | |
| 5 local value = tostring(key) | |
| 6 if key ~= nil then self[key] = value end | |
| 7 --@debug@ | |
| 8 DEFAULT_CHAT_FRAME:AddMessage("Phrase manquante : ", value) | |
| 9 --@end-debug@ | |
| 10 return value | |
| 11 end}) | |
| 12 T.L = L | |
| 13 | |
| 14 local locale = GetLocale() | |
| 15 | |
| 16 ------------------------------------------------------------------------------- | |
| 17 -- English localization (Default) | |
| 18 ------------------------------------------------------------------------------- | |
| 19 | |
| 20 --@debug@ | |
| 21 L["BINDING_HEADER"] = "Automatically draw weapon" | |
| 22 L["BINDING_NAME_DEGAINE_TOGGLE"] = "Toggle" | |
| 23 L["PRINT_DISABLED"] = "Automatic weapon drawing |cFFFF0000disabled|r" | |
| 24 L["PRINT_ENABLED"] = "Automatic weapon drawing |cFF00FF00enabled|r" | |
| 25 --@end-debug@ | |
| 26 | |
| 27 | |
| 28 --@localization(locale="enUS", format="lua_additive_table")@ | |
| 29 | |
| 30 ------------------------------------------------------------------------------- | |
| 31 -- French localization | |
| 32 ------------------------------------------------------------------------------- | |
| 33 if (locale == "frFR") then | |
| 34 | |
| 35 --@localization(locale="frFR", format="lua_additive_table")@ | |
| 36 | |
| 37 end |
