• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A Localization question

 
Zhixiong Pan
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Please help with below question regarding the localization. Thanks.

A sample program ships with 2 properties files - Base.properties, Base_fr.properties. If the current Locale, Locale.ENGLISH has no matching properties file, what will happen when the ResourceBundle.getBundle method is called with 'Base' and Locale. English as parameters?



A Since a matching properties file is not found, an exception is thrown

B This would not pose a problem because when a matching properties file is not found, the default properties file is used instead.
 
Luciano A. Pozzo
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"B" is correct. If the matching properties file is not found, the default is used instead.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic