View Single Post
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