How to display a message in two different languages

Hey Guys,

Is there a way to display a warning message to the user and to have that message displaying depending on the language chosen for each user. i.e (English for Admin & Arabic for Standard user).

Hi Karim,

Please check out this section: Getting Localized Messages - CUBA Platform. Developer’s Manual

So if you have created a message pack for a screen in required languages, you can write something like this in the screen controller:


showNotification(getMessage("myCaption"), getMessage("myMessage"), NotificationType.HUMANIZED);