View Single Post
05/09/14, 09:11 AM   #7
Iyanga
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 183
Reading the thread title I had hoped to get an answer for a slightly different problems.


Some words/strings are localized in singular and some in plural form.

How can you modify the string depending on the form?

Basically I need something like:

Lua Code:
  1. if localizedword == singular then
  2. auxVerb = "xyz"
  3. elseif localizedword == plural then
  4. auxVerb == "abc"
  5. end
  6. string.format("bla bla %s %s", auxVerb , localizedword)

Yes, that's the way I can do it, I was wondering though if there is a smart zo_strformat solution. There are fragments like <<1[/m/f]>> in EsoStrings, which looks like there is a way, but no idea how they need to be used and combined properly.

Basically something similar to the solution here, just without a number involved.
  Reply With Quote