Changeset 6566


Ignore:
Timestamp:
2004-01-21T11:19:33+13:00 (20 years ago)
Author:
jmt12
Message:

Disable dynamic updating of interface text altogether

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/Dictionary.java

    r6531 r6566  
    8484    private ResourceBundle dictionary = null;
    8585
    86     private TreeSet key_list = null;;
     86    private TreeSet key_list = null;
    8787
    8888    /**  Constructs the Dictionary class by first checking if a Locale has been set. If not the default locale is used, and a ResourceBundle is created. Finally a single important String, Language, is made available outside the class so a more read-able version of the Locale of this Dictionary is present.
     
    118118    else {
    119119        this.locale = locale;
    120         Locale.setDefault(locale);
     120        //Locale.setDefault(locale);
    121121    }
    122122    dictionary = ResourceBundle.getBundle(Utility.DICTIONARY, this.locale);
     
    129129    public void changeDictionary(Locale locale)
    130130    {
    131     this.locale = locale;
     131    //this.locale = locale;
    132132
    133133    // Load new dictionary
    134     dictionary = ResourceBundle.getBundle(Utility.DICTIONARY, locale);
    135     language = dictionary.getString("Language");
    136     Gatherer.println("Loaded new dictionary: " + language);
     134    //dictionary = ResourceBundle.getBundle(Utility.DICTIONARY, locale);
     135    //language = dictionary.getString("Language");
     136    //Gatherer.println("Loaded new dictionary: " + language);
    137137
    138138    // Refresh all registered component
    139139    // !! TO FINISH !!
    140     Gatherer.println("Updating components...");
     140    //Gatherer.println("Updating components...");
    141141//      ArrayList temp_list = new ArrayList();
    142142//      Iterator components = keySet().iterator();
Note: See TracChangeset for help on using the changeset viewer.