Thread Tools Display Modes
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!
  Reply With Quote
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."
  Reply With Quote
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: 822
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!
  Reply With Quote
03-17-12, 02:15 AM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
It's locale-independent, just like event names.
  Reply With Quote
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!
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Localization issue


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