Changeset 4989 for trunk/gsdl3
- Timestamp:
- 2003-07-21T09:35:31+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/core/TransformingReceptionist.java
r4860 r4989 72 72 ac.setMessageRouter(this.mr); 73 73 ac.configure(); 74 ac.getActionParameters(this.params); 74 75 this.action_map.put(action_name, ac); 75 76 … … 180 181 return stylesheet; 181 182 } 182 /** returns an xml element containing all the text strings183 * needed for an interface184 * currently only uses the current interface - should add in185 * needed ones from the default interface if current != default */186 protected Element getDisplayElement(String lang) {187 188 Element display = this.doc.createElement(GSXML.DISPLAY_ELEM);189 // looks for properties files based on interface name190 String resource_name = "interface_"+ (String)this.config_params.get(GSConstants.INTERFACE_NAME);191 192 Dictionary dict = new Dictionary(resource_name, lang);193 Enumeration enum = dict.getKeys();194 while (enum.hasMoreElements()) {195 String key = (String)enum.nextElement();196 String value = dict.get(key);197 Element e = GSXML.createTextElement(this.doc, key, value);198 display.appendChild(e);199 }200 return display;201 }202 183 203 184 }
Note:
See TracChangeset
for help on using the changeset viewer.