reportContext.getMessage() syntax to behave like label/chart localization properties [message #985750] |
Thu, 15 November 2012 18:04  |
Eclipse User |
|
|
|
This concerns an issue I am seeing in an application using BIRT 2.5.2.
The labels and chart series titles are set by property keys and translate correctly. However the places where the design is using reportContext.getMessage("keyval") are not translating.
It appears that this is happening in cases where the browser is using one locale while the server is using a different one. The internal calls are getting the browser locale and are appearing correctly, while the JavaScript calls are using the server locale and are thus not correct.
I've done some searching and see that the getMessage() call accepts a second argument which is a locale. Since the browser locale is being used in the label localization I expect that the desired locale is available for use in code.
Is this what is returned by the reportContext.getLocale() call? I do not have access to a test environment to test this myself or I would! Thanks.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.17081 seconds