Ostoic / RaidBrowser

Bringing LFR to Wrath of the Lich King (Non-Classic)
MIT License
36 stars 19 forks source link

Custom formattered message #22

Open jarrekk opened 1 year ago

jarrekk commented 1 year ago

Hi, thx for this awesome addons! One suggestion from me is that I can't custom the formatted message as I use Chinese client, so "inv 5641gs Elemental Shaman" would be "inv 5641gs xxx xxx" with Chinese words, this maybe similar on other client which language is not English, could u let us custom the message?

Intervence commented 1 year ago

Hi! you can do it by manually altering raid_browser.stats.build_inv_string function in stats.lua to fit your needs. But it might be a bad practice to make it depend on your locale if you're not playing on CN server. Most players won't understand what you say. https://github.com/Ostoic/RaidBrowser/blob/87d8b7c97e64395e22b3623ad7d6c41153ff3532/RaidBrowser/stats.lua#L252