[Opensource] i18n issues with errormessage not being displaye
d based on locale
Mike Traum
mtraum at cirnetwork.org
Mon Mar 31 09:49:12 PST 2003
I do this. I do the getString() before I do the addError(), so I'm not using
ErrorMessageBundle (just using <expresso:ErrorMessages />) and cannot verify
that it is functional.
Messages does have public static String getString(String schemaClass, Locale
l, String stringCode, Object[] args), where args are the replacement args.
But, if you're looking to display messages based on the current user's
locale, State.getString() or ControllerRespose.getString() is a better way
to go - it already knows what locale your user is in.
Our site is currently running in 3 languages, so if you have any more
questions feel free to ask...
mike
-----Original Message-----
From: Thompson, Kris [mailto:kris.thompson at seurat.com]
Sent: Friday, March 28, 2003 4:02 PM
To: opensource at jcorporate.com
Subject: [Opensource] i18n issues with errormessage not being displayed
based on locale
Is anyone able to have a multi locale site that displays error messages in
the locale of the user? I don't see how that would be possible.
I have been told that the Message class does not have a method like this
public static String getString(String schemaClass, Locale l, String
stringCode)
And that the ErrorMessageBundle.java did not pass in a locale at all to the
getMessage method.
I have made the changes and am ready to commit but I am surprised that this
bug (as I see it) exist, is there a work around that we know of?
Kris Thompson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.jcorporate.com/pipermail/opensource/attachments/20030331/1a8ff945/attachment-0002.htm
More information about the Opensource
mailing list