[ 
https://issues.apache.org/jira/browse/IMAP-82?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12708872#action_12708872
 ] 

Martin Bergljung commented on IMAP-82:
--------------------------------------

I have done an update to the AbstractMailboxProcessor.no()

was:
        if (e instanceof MailboxException) {
            MailboxException me = (MailboxException)e;
            if (StringUtils.isNotBlank(me.getMessageKey())) {
                message = new HumanReadableTextKey(me.getMessageKey(),
                        getI18nManager().getLocalizedMessage(
                                me.getMessageKey(), me.getLocale(), 
me.getMessageParameterValues()) +
                                " (errorCode=" + me.getMessageCode() + ")");
            } 
        }


now updated to the following if key exists:

        if (e instanceof MailboxException) {
            MailboxException me = (MailboxException)e;
            if (StringUtils.isNotBlank(me.getMessageKey())) {
                message = new HumanReadableTextKey(me.getMessageKey(),
                        getI18nManager().getLocalizedMessage(
                                me.getMessageKey(), me.getLocale(), 
me.getMessageParameterValues()) +
                                " (errorCode=" + me.getMessageCode() + ")");
            } else if (me.getKey() != null) {
                message = me.getKey();
            }
        }



> i18n
> ----
>
>                 Key: IMAP-82
>                 URL: https://issues.apache.org/jira/browse/IMAP-82
>             Project: JAMES Imap
>          Issue Type: Improvement
>          Components: Mailbox, Protocol
>    Affects Versions: 0.1
>            Reporter: Robert Burrell Donkin
>            Assignee: Robert Burrell Donkin
>             Fix For: 0.2
>
>         Attachments: i18n manager for Apache James IMAP.zip
>
>
> Improve support for i18n
> HumanReadableTextKey is used for all status responses, so these are - in 
> theory - i18n. However, transaction mechanisms and locale heuristics are 
> missing.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to