Skip to content
Keyhan Hadjari edited this page Sep 3, 2016 · 2 revisions

LOCALE

  • ListResourceBundleList is a abstract subclass of ResourceBundleList. Its getContents() method must be implemented like following:
public class MyResources extends ListResourceBundle {
     protected Object[][] getContents() {
         return new Object[][] {
         // LOCALIZE THIS
             {"s1", "The disk \"{1}\" contains {0}."},  // MessageFormat pattern
             .
             .
             .
         };
     }
 }

 public class MyResources_fr extends ListResourceBundle {
     protected Object[][] getContents() {
         return new Object[][] = {
         // LOCALIZE THIS
             {"s1", "Le disque \"{1}\" {0}."},          // MessageFormat pattern
             .
             .
             .
         };
     }
 }

Calendar

Calendar is an abstract class, its static getInstance(xxx) methods could be used to instantiate it.

Clone this wiki locally