i18n and StrutsClientConnector
Raoul Pierre <[email protected]>
| Newsgroups | gmane.comp.java.keel.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I'm going on with i18n.
In StrutsClientConnector, I found this:
/* Note that the string we put in the message itself is
*not* the translated
* error message, but the original. If there's a "$" in
front of it, we chop it
* off. This means the <html:errors/> on your JSP must
specify the correct
* bundle for translation if these error messages are in the
application-specific
* message bundle. E.g. for poll, you probably want
<html:errors bundle="poll"/>
*/
I don't understand why we need to do like this. In handleErrors function
the messages are translated to be put in fatal messages list, so the job
is done. Why don't send the translated messages to the "normal" pages?
It would avoid quite a lot of trouble to deal with the right bundle there.
Pierre
http://keelframework.org/documentation.shtml
Keelgroup mailing list
[email protected]
http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com