Changeset 10941 for trunk/gsdl3


Ignore:
Timestamp:
2005-11-24T17:09:04+13:00 (18 years ago)
Author:
kjdon
Message:

added a constructor which takes a Locale instead of String lang

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/util/Dictionary.java

    r9874 r10941  
    4444        this.locale = Locale.getDefault();
    4545    }
     46    try {
     47        this.raw = ResourceBundle.getBundle(this.resource, this.locale);
     48    } catch (Exception e) {
     49        //System.err.println("Dictionary: couldn't locate a resource bundle for "+resource);
     50    }
     51    }
     52
     53    public Dictionary(String resource, Locale locale) {
     54    this.locale = locale;
     55    this.resource = resource;
    4656    try {
    4757        this.raw = ResourceBundle.getBundle(this.resource, this.locale);
Note: See TracChangeset for help on using the changeset viewer.