View Single Post
06-05-23, 06:12 PM   #1
LudiusMaximus
A Rage Talon Dragon Guard
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 323
How to spell out the result of plural UI escape sequences?

Hi, how can I get the interpreted version of a string including plural UI escape sequences?

Lua Code:
  1. local pluralString = "2 |4car:cars;"
  2. -- Do something with pluralString such that the result is what would be printed.
  3. local interpretedPluralString = ???
  4. assert(interpretedPluralString == "2 cars")
Thanks in advance!
__________________
~ Be the change you want to see in the world... of warcraft interface! ~
  Reply With Quote