Hi Gaurav,

Here the ConfirmationAction tries to resolve a translation key and passes it on 
to MessageFormat#format. If no such key can be found, it will resolve to 
'null', and passing null to MessageFormat throws the NPE. Arguably, we don't 
have any default translation when none is provided, and we could probably be 
more lenient there.

The translation keys should be defined in your 
mgnl-18n/<your-app>_en.properties, with for example the following format 
(typically depends on the I18nKeyGenerator):
actions.<action-name>.confirmationHeader=e.g. Confirm what to do with 
{0,choice,1#this item|1<these {0} items}?
actions.<action-name>.confirmationMessage=... (confirmation 
description/consequences)
We pass the selection count as param to MessageFormat, so you may pluralize as 
above.

Cheers,
Mika

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=3964c815-e9e0-4a08-a0ee-61113eb5ed10


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to