- Timestamp:
- 2004-01-21T11:19:33+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/Dictionary.java
r6531 r6566 84 84 private ResourceBundle dictionary = null; 85 85 86 private TreeSet key_list = null; ;86 private TreeSet key_list = null; 87 87 88 88 /** 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. … … 118 118 else { 119 119 this.locale = locale; 120 Locale.setDefault(locale);120 //Locale.setDefault(locale); 121 121 } 122 122 dictionary = ResourceBundle.getBundle(Utility.DICTIONARY, this.locale); … … 129 129 public void changeDictionary(Locale locale) 130 130 { 131 this.locale = locale;131 //this.locale = locale; 132 132 133 133 // 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); 137 137 138 138 // Refresh all registered component 139 139 // !! TO FINISH !! 140 Gatherer.println("Updating components...");140 //Gatherer.println("Updating components..."); 141 141 // ArrayList temp_list = new ArrayList(); 142 142 // Iterator components = keySet().iterator();
Note:
See TracChangeset
for help on using the changeset viewer.