api: rework of locale system

This commit is contained in:
shagu
2017-02-26 21:29:27 +01:00
parent ce5abaa8b4
commit 6e26336d36
12 changed files with 101 additions and 108 deletions
+2 -2
View File
@@ -312,8 +312,8 @@ pfUI:RegisterModule("bags", function ()
local _, _, id = strfind(GetInventoryItemLink("player", ContainerIDToInventoryID(bag)) or "", "item:(%d+)")
if id then
local _, _, _, _, itemType, subType = GetItemInfo(id)
bagtype = pfLocaleBagtypes[pfUI.cache["locale"]][itemType]
bagsubtype = pfLocaleBagtypes[pfUI.cache["locale"]][subType]
bagtype = L["bagtypes"][itemType]
bagsubtype = L["bagtypes"][subType]
if bagsubtype == "SOULBAG" then
bagtype = "SOULBAG"