Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 369597

Summary: reportDesign.getTitle() get the default value and not the translated key
Product: z_Archived Reporter: Alessio Pollero <alessio.pollero>
Component: BIRTAssignee: Birt-ReportEngine-inbox <Birt-ReportEngine-inbox>
Status: RESOLVED WORKSFORME QA Contact: Xiaoying Gu <bluesoldier>
Severity: normal    
Priority: P3 CC: bluesoldier
Version: unspecified   
Target Milestone: 4.2.0   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Alessio Pollero CLA 2012-01-24 15:56:44 EST
Build Identifier: Version: 3.7.1 Build id: M20110909-1335

I have translated my Report title element assigning a key to it : 

<text-property name="title" key="ReportTitle">Title Alessio</text-property>

Then when i from runtime with a specific locale i try to get the value with : 

reportDesign.getTitle();

i get the default value between the tags that is : "Title Alessio" and not the corresponding value linked to the key ...



BIRT : 3.7.1

See this forum post for more information : http://www.eclipse.org/forums/index.php/m/782966/#msg_782966

Reproducible: Always
Comment 1 Xiaoying Gu CLA 2012-04-24 01:24:59 EDT
reportDesign.getTitle() is not expected to return the translated value.

You should use getExternalizedValue(IModuleModel.TITLE_ID_PROP, IModuleModel.TITLE_PROP)) to get the localized report title.