Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Localization of general Report Properties(Title, Description, Comments)
Localization of general Report Properties(Title, Description, Comments) [message #771558] Tue, 27 December 2011 16:07 Go to next message
Alessio Pollero is currently offline Alessio PolleroFriend
Messages: 74
Registered: August 2011
Member
I have developed some reports and i have localized each part of the report, the only properties that i can't find how to localize is the general report properties like for example :


  • Title
  • Description
  • Comments


http://img717.imageshack.us/img717/2585/translateo.png


Is there a way to localize/translate these properties ? How ?
Re: Localization of general Report Properties(Title, Description, Comments) [message #771589 is a reply to message #771558] Tue, 27 December 2011 17:38 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Select the properties view for the report and under advanced you can set
the Description key and Title key. I do not believe you can do this for
comments.


Jason

On 12/27/2011 11:07 AM, Alessio Pollero wrote:
> I have developed some reports and i have localized each part of the
> report, the only properties that i can't find how to localize is the
> general report properties like for example :
>
>
> Title
> Description
> Comments
>
>
>
>
>
> Is there a way to localize/translate these properties ? How ?
Re: Localization of general Report Properties(Title, Description, Comments) [message #782966 is a reply to message #771589] Tue, 24 January 2012 20:50 Go to previous messageGo to next message
Alessio Pollero is currently offline Alessio PolleroFriend
Messages: 74
Registered: August 2011
Member
I have tried doing as you said but it doesn't work, i mean when i get the value from the API the returned value is the default not the translated key ....

reportDesign.getTitle();


return the default value between the tags and not the value in the key :

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



Is it a Bug ?
Re: Localization of general Report Properties(Title, Description, Comments) [message #783031 is a reply to message #782966] Tue, 24 January 2012 23:22 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

That is correct you may have to do the lookup yourself. For example I
could put in a onCreate script on a label that looks like:

this.text =
reportContext.getMessage(reportContext.getDesignHandle().titleKey)

Jason

On 1/24/2012 3:50 PM, Alessio Pollero wrote:
> I have tried doing as you said but it doesn't work, i mean when i get
> the value from the API the returned value is the default not the
> translated key ....
> reportDesign.getTitle();
>
>
> return the default value between the tags and not the value in the key :
> <text-property name="title" key="ReportTitle">Title Alessio</text-property>
>
>
> Is it a Bug ?
Previous Topic:Birt Excel Report
Next Topic:BIRT 3.7 Report with Multiple Columns
Goto Forum:
  


Current Time: Thu Sep 19 00:59:56 GMT 2024

Powered by FUDForum. Page generated in 0.05179 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top