Project: Birt
Bug 247163 Parameter Group Display Name Not Being Localized
Reported: 2008-09-12 10:13:43 | Status: closed fixed

The Parameter Group Display Name is not being Localized by the BIRT Web Viewer on the Prompt Page. Steps to Reproduce 1. Create a report with a Parameter Group 2. Create a resource bundle with different locales for that report, like sample_report.properties, sample_report_es.properties and so on 3. Because there is no place in the Studio to add a key, edit the XML Example: <parameter-group name="ITEMRANGE" id="627"> <text-property name="displayName" key="IL.ItemRange"></text-property> <parameters> <scalar-parameter name="p_ItemStart" id="500"> <property name="valueType">static</property> <property name="dataType">string</property> <property name="paramType">simple</property> <text-property name="promptText" key="IL.From"></text-property> <property name="controlType">text-box</property> <property name="defaultValue">0</property> <property name="distinct">true</property> <structure name="format"> <property name="category">Unformatted</property> </structure> </scalar-parameter> <scalar-parameter name="p_ItemEnd" id="501"> <property name="valueType">static</property> <property name="dataType">string</property> <property name="paramType">simple</property> <text-property name="promptText" key="IL.To"></text-property> <property name="controlType">text-box</property> <property name="defaultValue">ZZZZZZZZZZZZZZZ</property> <property name="distinct">true</property> <structure name="format"> <property name="category">Unformatted</property> </structure> </scalar-parameter> </parameters> </parameter-group> 4. Run the report using the Web Viewer with different locales, __locale=en_US and __locale=es_ES 5. The Parameter Name are being localized, but the Parameter Group Display Name is not

Files changed in fix:
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/CascadingParameterGroupHandle.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/ParameterGroupHandle.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/elements/interfaces/ICascadingParameterGroupModel.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/elements/interfaces/IParameterGroupModel.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/writer/ModuleWriter.java