View Issue Details

IDProjectCategoryView StatusLast Update
0003191The Dark ModCodingpublic05.10.2021 03:22
Reportertels Assigned Tostgatilov  
PrioritylowSeverityfeatureReproducibilityN/A
Status closedResolutionwon't fix 
Product VersionTDM 1.07 
Summary0003191: Extend string template replacement
DescriptionThe 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.
TagsNo tags attached.

Relationships

related to 0005261 resolvedstgatilov Extend localization system to understand string placeholders 

Activities

nbohr1more

nbohr1more

05.10.2021 03:16

developer   ~0014403

Closing as a duplicate of 0005261
stgatilov

stgatilov

05.10.2021 03:20

administrator   ~0014404

Last edited: 05.10.2021 03:22

It is not duplicate.

This issue is about allowing some kind of functional programming on string templates...
Given how much time has passed since the idea, I think the best would be to drop this idea.

Issue History

Date Modified Username Field Change
03.08.2012 08:03 tels New Issue
03.08.2012 08:06 tels Description Updated
05.10.2021 03:15 nbohr1more Relationship added duplicate of 0005261
05.10.2021 03:16 nbohr1more Note Added: 0014403
05.10.2021 03:17 nbohr1more Assigned To => stgatilov
05.10.2021 03:17 nbohr1more Status new => resolved
05.10.2021 03:17 nbohr1more Resolution open => fixed
05.10.2021 03:17 nbohr1more Fixed in Version => TDM 2.10
05.10.2021 03:17 nbohr1more Target Version => TDM 2.10
05.10.2021 03:20 stgatilov Note Added: 0014404
05.10.2021 03:20 stgatilov Relationship deleted 0005261
05.10.2021 03:21 stgatilov Relationship added related to 0005261
05.10.2021 03:21 stgatilov Status resolved => closed
05.10.2021 03:21 stgatilov Resolution fixed => won't fix
05.10.2021 03:21 stgatilov Fixed in Version TDM 2.10 =>
05.10.2021 03:21 stgatilov Target Version TDM 2.10 =>
05.10.2021 03:22 stgatilov Note Edited: 0014404