Build the class name lookup from FillLocalizedClassList

Replace the hardcoded per-locale ["class"] reverse-lookup tables (localized
class name -> token) with a runtime build in GetEnvironment:

  L["class"] = tInvert(FillLocalizedClassList({}))

The client's own class list supplies the localized names for whatever locale is
running, so the tables were pure duplication -- and this also covers locales the
hardcoded tables never listed. Consumers (libunitscan, panel, socialmod) are
unchanged. Drop ["class"] from every locale file.
This commit is contained in:
Brues
2026-08-09 19:03:29 -05:00
parent 4e461d766e
commit 881a17e508
8 changed files with 1 additions and 77 deletions
-11
View File
@@ -1,16 +1,5 @@
pfUI_locale["ruRU"] = {}
pfUI_locale["ruRU"]["class"] = {
["Чернокнижник"] = "WARLOCK",
["Воин"] = "WARRIOR",
["Охотник"] = "HUNTER",
["Маг"] = "MAGE",
["Жрец"] = "PRIEST",
["Друид"] = "DRUID",
["Паладин"] = "PALADIN",
["Шаман"] = "SHAMAN",
["Разбойник"] = "ROGUE",
}
pfUI_locale["ruRU"]["healduration"] = {
["Rejuvenation"] = "Увеличивает время действия \"Омоложения\" на 3 сек.",