Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

WoWInterface » Developer Discussions » Lua/XML Help » How to spell out the result of plural UI escape sequences?


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