incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Janne Jalkanen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JSPWIKI-143) unlocalized messages
Date Fri, 25 Jan 2008 21:20:34 GMT

    [ https://issues.apache.org/jira/browse/JSPWIKI-143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12562685#action_12562685
] 

Janne Jalkanen commented on JSPWIKI-143:
----------------------------------------

This is a known issue; these guys have no access to the i18n context... I think this needs
a bigger redesign, and I'm not at all sure whether this is the proper pattern.

Might be better if we adopted a "if you throw an exception, put in the i18n key instead of
a textual description" -strategy - but then you can't construct any complicated messages.

Oh, using varargs would make life a lot easier here.

> unlocalized messages
> --------------------
>
>                 Key: JSPWIKI-143
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-143
>             Project: JSPWiki
>          Issue Type: Improvement
>          Components: Localization
>    Affects Versions: 2.6.0
>            Reporter: Florian Holeczek
>            Priority: Minor
>
> When trying to create a new user with an existing name, the page says: 'The login name
'flo' is already taken.'
> I guess it's an Exception from UserManager. It's the same problem with full name (a few
lines down).
> Maybe there are the following mesages unlocalized, too:
> JDBCUserDatabase:
> throw new DuplicateUserException( "Cannot rename: the login name '" + newName + "' is
already taken." );
> XMLUserDatabase:
> throw ( new DuplicateUserException( "Cannot rename: the login name '" + newName + "'
is already taken." ) );

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


Mime
View raw message