Hi all, I am trying to make en_US as the default locale, and when user requests a language that is not supported, ResourceBundle will default back to en_US.
After some Googling, I found the following tutorial from Sun that covers my need: http://java.sun.com/docs/books/tutorial/i18n/resbundle/control.html Currently, Google AppEngine doesn't support Control. (Maybe for good reasons?) Here's my workaround now - Adding a try-catch block around it: try { return ResourceBundle.getBundle(TRANSLATION_RESOURCE_NAME, CurrentRegisteredUser.getLocale()); } catch (NullPointerException npe) { return ResourceBundle.getBundle(TRANSLATION_RESOURCE_NAME, DEFAULT_LOCALE); } Is there a better way to handle this? Thanks, Kenny
-- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
