Mercurial > wow > degaine
comparison Localization.lua @ 50:2e42e992d588
Oops, forgot a file
author | contrebasse |
---|---|
date | Sun, 27 Feb 2011 23:04:37 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
49:94566cb4534f | 50:2e42e992d588 |
---|---|
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 |