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: https://doc.cuba-platform.com/manual-6.3/getting_messages.html

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);