java - Ubuntu/Spring 3 - Strange issue with locale -


i'm experiencing strange issue ubuntu 10.04.1 lts x86_64 seems work fine when system locale en_us. however, when system locale en_gb spring tries default resource bundle en_us rather en_us.

the exception:

06-oct-2010 23:35:12 org.springframework.context.support.resourcebundlemessagesource getresourcebundle warning: resourcebundle [messages] not found messagesource: can't find bundle base name messages, locale en_us 

system locale:

taylor@taylor-laptop:~$ locale lang=en_gb.utf8 lc_ctype="en_gb.utf8" lc_numeric="en_gb.utf8" lc_time="en_gb.utf8" lc_collate="en_gb.utf8" lc_monetary="en_gb.utf8" lc_messages="en_gb.utf8" lc_paper="en_gb.utf8" lc_name="en_gb.utf8" lc_address="en_gb.utf8" lc_telephone="en_gb.utf8" lc_measurement="en_gb.utf8" lc_identification="en_gb.utf8" lc_all= taylor@taylor-laptop:~$ 

the default spring locale setup below:

<bean id="localeresolver" class="org.springframework.web.servlet.i18n.cookielocaleresolver">     <property name="cookiename" value="user_locale" />     <property name="cookiemaxage" value="1209600" />     <property name="defaultlocale" value="en_us" /> </bean> 

i've checked out code github link above on ubuntu vm, , locale changed match yours:

matt@ubuntu-vm:~/google-app-engine-jappstart$ locale lang=en_gb.utf8 language=en_gb:en lc_ctype="en_gb.utf8" lc_numeric="en_gb.utf8" lc_time="en_gb.utf8" lc_collate="en_gb.utf8" lc_monetary="en_gb.utf8" lc_messages="en_gb.utf8" lc_paper="en_gb.utf8" lc_name="en_gb.utf8" lc_address="en_gb.utf8" lc_telephone="en_gb.utf8" lc_measurement="en_gb.utf8" lc_identification="en_gb.utf8" lc_all= 

when run mvn gae:run, i'm able open index page of webapp fine. i've verified if print out value of java.util.locale.getdefault() index.jsp, value en_gb.

are sure there no other settings have causing issue? attempting reproduce incorrectly?


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -