Changeset 14397 for greenstone3
- Timestamp:
- 2007-09-03T13:09:22+12:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/trunk/src/java/org/greenstone/gsdl3/util/XSLTUtil.java
r13270 r14397 3 3 import java.util.Date; 4 4 import java.util.Locale; 5 import java.util.MissingResourceException; 6 import java.io.File; 5 7 import java.text.SimpleDateFormat; 6 8 … … 94 96 } 95 97 Dictionary dict = new Dictionary("interface_"+interface_name, lang); 96 String result = dict.get(key, args); 98 String result = dict.get(key, args); 99 if (result == null) { // not found 100 //if not found, search a separate subdirectory named by the interface name 101 String sep_interface_dir = interface_name + File.separatorChar + lang + File.separatorChar + "interface"; 102 dict = new Dictionary(sep_interface_dir, lang); 103 result = dict.get(key, args); 104 if(result != null) { 105 return result; 106 } 107 } 97 108 98 109 if (result == null && !interface_name.equals("default")) { // not found, try the default interface … … 102 113 103 114 if (result == null) { // not found 104 115 return "_"+key+"_"; 105 116 } 106 117 return result;
Note:
See TracChangeset
for help on using the changeset viewer.