Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369597 - reportDesign.getTitle() get the default value and not the translated key
Summary: reportDesign.getTitle() get the default value and not the translated key
Status: RESOLVED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 4.2.0   Edit
Assignee: Birt-ReportEngine-inbox@eclipse.org CLA
QA Contact: Xiaoying Gu CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-24 15:56 EST by Alessio Pollero CLA
Modified: 2012-04-24 01:24 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.