OpenClonk Bugtracker - OpenClonk
View Issue Details
0002049OpenClonkEnginepublic2018-12-18 18:202019-03-31 14:35
ReporterMarky 
Assigned ToMarky 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionunable to reproduce 
PlatformOSOS Version
Product Version 
Target VersionFixed in Versiongit master 
Summary0002049: Bug or feature? Properties get evaluated in Desc*.txt?
DescriptionIf you write a localized string that contains a property, such as:

local Description="$Description"

and have DescUS.txt:

Description=This is a "foo.bar".

then the engine tries to evaluate the "foo.bar" as a property of the object. This results in an engine error:

ERROR: '}' or ',' expected, but found identifier (.../Script.c:<line nr>:<closing ">)

Or is it the "-character that needs to be escaped?
TagsNo tags attached.
Attached Files

Notes
(0006195)
Marky   
2018-12-23 08:45   
May have been a misconception!
(0006209)
Marky   
2019-02-03 19:12   
I think that this was actually an unrelated error and wrong interpretation of the error message by me.
(0006215)
Marky   
2019-03-31 14:35   
Tried to reproduce by setting the pump Name=this.HitPoints - no errors whatsoever. Probably was a fault on my part when I entered the issue.

Issue History
2018-12-18 18:20MarkyNew Issue
2018-12-23 08:45MarkyNote Added: 0006195
2019-02-03 19:12MarkyNote Added: 0006209
2019-03-31 14:35MarkyAssigned To => Marky
2019-03-31 14:35MarkyStatusnew => closed
2019-03-31 14:35MarkyResolutionopen => unable to reproduce
2019-03-31 14:35MarkyFixed in Version => git master
2019-03-31 14:35MarkyNote Added: 0006215