View Single Post
08/23/18, 08:21 AM   #1
Gandalf
 
Gandalf's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2016
Posts: 28
Exclamation zo_strformat - lost in translation

Heya,

Run into a strange behavior of zo_strformat:

When using:
Code:
/script SetCVar("language.2", "en") or /script SetCVar("language.2", "de")
/script d( zo_strformat("<<1>>","Show me your Face") )
It returns:
Code:
"Show me your Face"
When using:
Code:
/script SetCVar("language.2", "fr")
/script d( zo_strformat("<<1>>","Show me your Face") )
It returns:
Code:
"Show m’your Face"!
Any idea why I get in "French" mode such a highly sophisticated output?

Using good old string.format causes no issues.

Cheers,
Gandalf
  Reply With Quote