Skip to main content



      Home
Home » Archived » BIRT » i18n string in a label
i18n string in a label [message #68566] Fri, 19 August 2005 17:51 Go to next message
Eclipse UserFriend
Hello group members,

Can someone give a tip on how to display a i18n string in a label?. The
i18n string to show depends on the value of a report parameter. For
example, if the parameter "datatype" is "M" I want to show the string
"Measured" or "Medido" depending on the current selected localization, if
its "R" it should show "Reconciled" or "Reconciliado".

Thanks in advance,
Javier
Re: i18n string in a label [message #68603 is a reply to message #68566] Sat, 20 August 2005 02:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: g.ewald.arcor.de

Hi Javier,

for the use of language specific ressources please have a look at the
class java.util.RessourceBundle.

With this class you can specify message ressoucefiles in a
key-value-pair-style and load it specificly for a locale.

Best regards

Gregor

Javier Pedrido schrieb am 19.08.2005 23:51 folgendes:
> Hello group members,
>
> Can someone give a tip on how to display a i18n string in a label?. The
> i18n string to show depends on the value of a report parameter. For
> example, if the parameter "datatype" is "M" I want to show the string
> "Measured" or "Medido" depending on the current selected localization,
> if its "R" it should show "Reconciled" or "Reconciliado".
>
> Thanks in advance,
> Javier
>
Re: i18n string in a label [message #68617 is a reply to message #68603] Sat, 20 August 2005 13:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: javierpedrido.hotmail.com

Hi George,

Thanks for your help. I already knew about the ResourceBlunde class. I was
looking for a method to do the i18n without having to instantiate this
class. For example, it might be usefull to have a getMessage method in the
report class in order to access strings included in its i18n resource
files. Having the ability to show i18n text when displaying parameters
values in a combo box and when mapping values, would be great also. I
guess these i18n "problems" will be addressed in future versions.

Best regards,
Javier
Re: i18n string in a label [message #68715 is a reply to message #68617] Sat, 20 August 2005 13:41 Go to previous message
Eclipse UserFriend
Javier Pedrido wrote:
> Hi George,

Sorry about the misspelled name Gregor ;)
Thanks for helping,
Javier
Previous Topic:engine API example
Next Topic:how to set a background image on the whole report or body?
Goto Forum:
  


Current Time: Wed Apr 30 08:48:21 EDT 2025

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

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

Back to the top