Problem : localizing message with parameters [message #512975] |
Mon, 08 February 2010 13:35 |
youss Messages: 2 Registered: February 2010 |
Junior Member |
|
|
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 here.
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.
[Updated on: Mon, 08 February 2010 13:43] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03106 seconds