Files
ElvUIModernized/!Compatibility/libs/LibBabble-ItemBagFamily-3.0.lua
T
2018-07-10 22:59:26 +03:00

70 lines
2.1 KiB
Lua

local MAJOR_VERSION = "LibBabble-ItemFamily-3.0"
local MINOR_VERSION = 90000 + tonumber(string.match("$Revision: 50 $", "%d+"))
if not LibStub then error(MAJOR_VERSION .. " requires LibStub.") end
local lib = LibStub("LibBabble-3.0"):New(MAJOR_VERSION, MINOR_VERSION)
if not lib then return end
local GAME_LOCALE = GetLocale()
lib:SetBaseTranslations {
["Quiver"] = true,
["Ammo Pouch"] = true,
["Soul Bag"] = true,
["Herb Bag"] = true,
["Enchanting Bag"] = true,
}
if GAME_LOCALE == "enUS" then
lib:SetCurrentTranslations(true)
elseif GAME_LOCALE == "deDE" then
lib:SetCurrentTranslations {
["Quiver"] = "Köcher",
["Ammo Pouch"] = "Ammo Pouch",
["Soul Bag"] = "Seelentaschen",
["Herb Bag"] = "Kräutertaschen",
["Enchanting Bag"] = "Verzauberertaschen",
}
elseif GAME_LOCALE == "frFR" then
lib:SetCurrentTranslations {
["Quiver"] = "Carquois",
["Ammo Pouch"] = "Ammo Pouch",
["Soul Bag"] = "Sacs d'âmes",
["Herb Bag"] = "Sacs d'herbes",
["Enchanting Bag"] = "Sacs d'enchanteur",
}
elseif GAME_LOCALE == "zhCN" then
lib:SetCurrentTranslations {
["Quiver"] = "箭袋",
["Ammo Pouch"] = "Ammo Pouch",
["Soul Bag"] = "灵魂袋",
["Herb Bag"] = "草药包",
["Enchanting Bag"] = "附魔材料包",
}
elseif GAME_LOCALE == "koKR" then
lib:SetCurrentTranslations {
["Quiver"] = "화살통",
["Ammo Pouch"] = "Ammo Pouch",
["Soul Bag"] = "영혼의 주머니",
["Herb Bag"] = "약초 가방",
["Enchanting Bag"] = "마법부여 가방",
}
elseif GAME_LOCALE == "esES" then
lib:SetCurrentTranslations {
["Quiver"] = "Carcaj",
["Ammo Pouch"] = "Ammo Pouch",
["Soul Bag"] = "Bolsas de almas",
["Herb Bag"] = "Bolsas de hierbas",
["Enchanting Bag"] = "Bolsas de encantamiento",
}
elseif GAME_LOCALE == "ruRU" then
lib:SetCurrentTranslations {
["Quiver"] = "Колчан",
["Ammo Pouch"] = "Подсумок",
["Soul Bag"] = "Сумка душ",
["Herb Bag"] = "Сумка травника",
["Enchanting Bag"] = "Сумка зачаровывателя",
}
else
error(string.format("%s: Locale %q not supported", MAJOR_VERSION, GAME_LOCALE))
end