# HG changeset patch # User contrebasse # Date 1298844277 -3600 # Node ID 2e42e992d588509b4f94949de5af539abafa4601 # Parent 94566cb4534f64c47e71b4a7e225bf42c6f44595 Oops, forgot a file diff -r 94566cb4534f -r 2e42e992d588 Localization.lua --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Localization.lua Sun Feb 27 23:04:37 2011 +0100 @@ -0,0 +1,37 @@ +local AddonName, T = ... + +-- Taken from Inline Aura +local L = setmetatable({}, {__index = function(self, key) + local value = tostring(key) + if key ~= nil then self[key] = value end + --@debug@ + DEFAULT_CHAT_FRAME:AddMessage("Phrase manquante : ", value) + --@end-debug@ + return value +end}) +T.L = L + +local locale = GetLocale() + +------------------------------------------------------------------------------- +-- English localization (Default) +------------------------------------------------------------------------------- + +--@debug@ +L["BINDING_HEADER"] = "Automatically draw weapon" +L["BINDING_NAME_DEGAINE_TOGGLE"] = "Toggle" +L["PRINT_DISABLED"] = "Automatic weapon drawing |cFFFF0000disabled|r" +L["PRINT_ENABLED"] = "Automatic weapon drawing |cFF00FF00enabled|r" +--@end-debug@ + + +--@localization(locale="enUS", format="lua_additive_table")@ + +------------------------------------------------------------------------------- +-- French localization +------------------------------------------------------------------------------- +if (locale == "frFR") then + +--@localization(locale="frFR", format="lua_additive_table")@ + +end