Changeset 9423
- Timestamp:
- 2005-03-15T13:49:07+13:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/ServiceRack.java
r9279 r9423 338 338 339 339 /** getTextString - retrieves a language specific text string for the given 340 key and locale, from the specified resource_bundle 340 key and locale, from the specified resource_bundle (dictionary) 341 341 */ 342 342 protected String getTextString(String key, String lang, String dictionary, String[] args) { 343 343 344 //String class_name = this.getClass().getName();345 //class_name = class_name.substring(class_name.lastIndexOf('.')+1);346 344 if (dictionary != null) { 347 345 // just try the one specified dictionary … … 354 352 } 355 353 356 // else we try class names for dictionary names 354 // If no dictionary was specified, we try collection specific one, then 355 // dictionaries based on the class names 356 357 // first we try a collection properties file 358 Dictionary dict = new Dictionary("collection", lang, new CollectionClassLoader(this.site_home, this.cluster_name)); 359 String result = dict.get(key, args); 360 if (result != null) { 361 return result; 362 } 363 364 // then we try class names for dictionary names 357 365 String class_name = this.getClass().getName(); 358 366 class_name = class_name.substring(class_name.lastIndexOf('.')+1); 359 Dictionarydict = new Dictionary(class_name, lang);360 Stringresult = dict.get(key, args);367 dict = new Dictionary(class_name, lang); 368 result = dict.get(key, args); 361 369 if (result != null) { 362 370 return result; … … 372 380 break; 373 381 } 374 dict = new Dictionary(class_name, lang );382 dict = new Dictionary(class_name, lang, new CollectionClassLoader(this.site_home, this.cluster_name)); 375 383 result = dict.get(key, args); 376 384 c = c.getSuperclass();
Note:
See TracChangeset
for help on using the changeset viewer.