WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   GetItemInfo, GetZoneText and localized client. (https://www.wowinterface.com/forums/showthread.php?t=15904)

Guildenstern 04-16-08 12:26 PM

GetItemInfo, GetZoneText and localized client.
 
Hello.
I'm new to addon developement, so I might be asking something silly, but how do I properly handle those functions so that my addon doesn't break on non-english versions of wow? I want it to check itemType in one situation, and player's zone in another, and to make certain decisions based on that. But results those functions return depend on the client's language. I've tried looking through GlobalStrings.lua, but couldn't find constants for item types and game zones. Is there easy way around this?


All times are GMT -6. The time now is 08:45 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI