Reply
 
Thread Tools Display Modes
Old 03-16-12, 11:50 AM   #1
Animor
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Mar 2011
Posts: 136
Localization issue

Hello,

I want to identify if a whisper is coming from a GM.
So I've found out that CHAT_MSG_WHISPER event returns arg6 with a status (DND, GM, etc.)

However, I'm afraid that on non-English localized client, "GM" may be something else, a different string. How can I find out if this is indeed the case? I want a solution that will work on all clients, not only English.

Thanks in advance for any help!
Animor is offline   Reply With Quote
Old 03-16-12, 01:14 PM   #2
Waky
A Cobalt Mageweaver
 
Waky's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2010
Posts: 200
It's listed under the arg "flags" and I would assume that flags are strictly in English, since they shouldn't come up in a normal players view. Unless someone says otherwise, I would say it's always "GM."
Waky is offline   Reply With Quote
Old 03-16-12, 01:41 PM   #3
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 489
yes, I'd say the same ... a flag is supposed to be clear.
__________________
The cataclysm broke the world ... and the pandas could not fix it!
Rilgamon is offline   Reply With Quote
Old 03-17-12, 02:15 AM   #4
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 2,613
It's locale-independent, just like event names.
Phanx is offline   Reply With Quote
Old 03-17-12, 03:20 AM   #5
Animor
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Mar 2011
Posts: 136
Thank you all!
Animor is offline   Reply With Quote
Reply

Go BackWoWInterface » Developer Discussions » Lua/XML Help » Localization issue

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off