mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
Compare-tooltip stat deltas now resolve their display label through _G[key] (the WoW GlobalString), falling back to the built-in English only when undefined. LabelFor tries _G[key], then _G[key.."_SHORT"], then the English fallback: primary stats / resistances / CURRENTLY_EQUIPPED resolve directly, while the rating/regen tokens GetItemStats keys on (ITEM_MOD_CRIT_MELEE_RATING, ...) — whose own global is a "%s" description — map to their compact, translatable _SHORT sibling for display. StatAccum keys are left untouched (the GetItemStats contract, confirmed against a TBC dump: ratings key on the non-_SHORT token). The format guard now rejects only real printf conversions (%d/%s/%1$s), letting a literal "%" unit through. enUS.lua gains the ITEM_MOD_*_SHORT, ITEM_DELTA_DESCRIPTION and format keys (native RESISTANCE*/CURRENTLY_EQUIPPED left to the client). The non-US locales (deDE/esES/frFR/ruRU/zhCN/zhTW) are auto-filled from Blizzard Classic (1.15) per-locale GlobalStrings; only the custom BINDING_NAME_AOELOOT stays commented as an enUS fallback. Fixes #8