build identifier: 20090920-1017

hi everyone,

i am just discovering birt 2.5.1 since one week, and i have a little problem with the internationalization of my reports.

i want to use localized messages with parameters, as described on the documentation.

here is my key in the resource file:

message.line1=i have seen {0} {1} {2} {3}.



and how i use it (in a dynamic text) :

i18nparams = new array(4);
i18nparams[0] = params["value0"].value;
i18nparams[1] = params["value1"].value;
i18nparams[2] = params["value2"].value;
i18nparams[3] = params["value3"].value;
	this.text = reportcontext.getmessage("message.line1", reportcontext.getlocale(), i18nparams);



when i render the design, i always get this text : "i have seen {0} {1} {2} {3}"
all the values have not been replaced...

what i am doing wrong ?

thanks.

reproducible: always
problem solved :

the correct syntax seems to be : i18nparams[0] = params["value0"]; and not : i18nparams[0] = params["value0"].value;
here is the reason, and the solution of this problem :

there was a quote in my message like message.line=it's the {0}.

doubling the quote solved my problem.

so, the good syntax is message.line=it''s the {0}.

thanks everyone.