Thread Tools Display Modes
Prev Previous Post   Next Post Next
07-21-21, 01:28 AM   #1
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,240
Language agnostic parts of global strings?

I was looking at the global strings, and found NOT_IN_TORGHAST, which is partially useful to me. What I want is just the word "Torghast" without the rest of the phrase "Can't do that in Torghast, Tower of the Damned".

In English, I could match that easily enough, I think, but would my snippet work across all languages the game supports?
Lua Code:
  1. local torghast = NOT_IN_TORGHAST:match("^Torghast$")
  2. print(torghast)
  3. --> "Torghast" in all languages?
Will this work?
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Language agnostic parts of global strings?


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