DO NOT EDIT OR ANSWER THIS ISSUE. SEE THE ORIGINAL ISSUE INSTEAD:
https://www.jfire.org/modules/bugs/view.php?id=1428
ORIGINAL REPORTER: marco
When using a default messages.properties in combination with an incomplete language-specific file (e.g. messages_en.properties), the fallback-mechanism doesn't work properly:
In the invoice, the letter's subject is rendered via JavaScript and should result in sth. like "Invoice 2009/123". However, with "Invoice" being in the messages.properties (and missing in the messages_en.properties), the output is "null2009/123".
Here's the JavaScript:
***
articleContainerType = "";
articleContainer = JFireReportingHelper.getVar("articleContainer");
className = articleContainer.getClass().getSimpleName();
articleContainerType = reportContext.getMessage("articleContainer.name."+className, reportContext.getLocale());
articleContainerType + " " + articleContainer.getArticleContainerIDPrefix() + "/" + articleContainer.getArticleContainerIDAsString()
***
Thus, the error is somehow in the reportContext.getMessage(...).
ORIGINAL COMMENT BY marco, VIEW IT HERE:
https://www.jfire.org/modules/bugs/view.php?id=1428
The variable "reportContext" comes from BIRT - not JFire. Thus, the method getMessage(...) [which btw. exists without the locale argument, too] needs to be fixed in BIRT and we should postpone further work on this after we updated to the new BIRT.