Leo450 / betterbags-gearfirst

MIT License
0 stars 3 forks source link

Plugin not working at all - French localization #14

Closed Layz666 closed 1 week ago

Layz666 commented 1 week ago

Hello ! Plugin worked fine before TWW prepatch hit, since then, it doesn't work at all. Localization of my game is French, is that the source of the problem?

Screen captures for references.

bag1 bag2 bags3

spn2000 commented 1 week ago

Same problem for the german client. I think something changed in the localization module in betterbags. the localized names for the section do not get set anymore L:S("Hearthstones", "Piedras de hogar") throws an error.

workaround for me was to modify _retail_\Interface\AddOns\BetterBags\core\localization.lua file and add the S function before L:enable()

function L:S(key,localkey)
  if not self.data[key] then self.data[key] = {} end
  self.data[key][L.locale] = localkey
end
Leo450 commented 1 week ago

Fixed in 1.0.11