View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0003191||The Dark Mod||Coding||public||03.08.2012 08:03||03.08.2012 08:06|
|Product Version||TDM 1.07|
|Summary||0003191: Extend string template replacement|
|Description||The current system only replaced ("translates") a string, if it is exactly in the format "#str_DDDDD" where D is a digit between 0 and 9.|
It would be desirable, that templates like "15 #str_12345" could work, too.
That means that the replacement should also deal with templates insides strings, and possible recursion with a small hard-coded limit of maybe 16 steps.
The template notation of #str_DDDDD is sufficiently unique enough that it is unlikely to collide with any user string to allow this.
This would allow for "#str_12345" to be "translated" to "#str_12346 #str_12347" which in turn turns either into "Fifteen gold" or "Fünfzehn Goldstücke" as the final output.
|Tags||No tags attached.|