Label translation

You maybe use, in a report, a label in a method display ?

But when you print the message, the message still in the laguage of the user !

For change this, you can have two way :

element.design().lookupLabel(literalStr("@SYS1"), [Language_id]);

The language_id is the language of the report, but if you want, you can force a language.

Or the second, maybe more general :

SysLabel::labelId2String(literalstr('@SYS1'), 'fr');  
Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s