struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Li Ying <liying.cn.2...@gmail.com>
Subject Re: Missing message for key "welcome.title" in bundle "(default bundle)" for locale es
Date Wed, 10 Nov 2010 03:36:56 GMT
> try <message-resources
> parameter="com/myapp/struts/MessageResources"/>

This is right.
The name of a resource bundle, should not include the locale suffix.
Actually, a resource bundle, contains several resource files which
have the same base name and different suffix for  each locale.
For more information, see:
http://download.oracle.com/javase/6/docs/api/java/util/ResourceBundle.html



> and make sure your locale is "es_ES" and not just "es" (not sure if it
> matters, but just to be on the save side)

It matters.

When user locale is [es_ES],
the resource locale can be used should be (in the priority order):
(1)es_ES
or
(2)es
or
(3)NONE

When user locale is [es],
the resource locale can be used should be (in the priority order):
(1)es
or
(2)NONE

Which means, resource locale [es_ES] can not be used for user locale [es]

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message