Changeset 33278 for main


Ignore:
Timestamp:
2019-07-02T14:00:20+12:00 (5 years ago)
Author:
kjdon
Message:

added a basic getGenericText where you can specify the dictionary name. Have only implemented the most basic version so far. will do the rest as/if needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/XSLTUtil.java

    r33215 r33278  
    463463    }
    464464
     465  public static String getGenericText(String dictionary_name, String lang, String key) {
     466
     467    Dictionary dict = new Dictionary(dictionary_name, lang);
     468    String result = dict.get(key);
     469    if (result == null) {
     470      return "_"+dictionary_name+"_"+key+"_";
     471    }
     472    return result;
     473  }
    465474    public static boolean isImage(String mimetype)
    466475    {
Note: See TracChangeset for help on using the changeset viewer.