struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Łukasz Lenart <lukasz.len...@gmail.com>
Subject Re: Framework provided text key resolving issue
Date Tue, 10 Sep 2013 06:32:43 GMT
2013/9/9 Christoph Nenning <Christoph.Nenning@lex-com.net>:
> In this case the following happens:
> - struts2's algorithm is performed (search packages hierarchically)
> - for global resources the JVM tries the file
> "struts-messages_en.properties" which is not present
> - then the JVM tries the language from system property "user.language"
> which is "de" in my case
> - a file for that locale is present and hence I get the german text
> instead of the requested english one

This is strange, struts-messages bundle should be investigate fully -
first _en then default one. Which JVM version do you use?

> We provide our application texts for english in 2 files (of course
> scripted):
> - bundle.properties
> - bundle_en.properties
>
> I propose as workaround that english framework texts are provided the same
> way in 2 files.

Can you register issue for that?


Regards
-- 
Łukasz
mobile +48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/

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


Mime
View raw message