Changeset 35394


Ignore:
Timestamp:
2021-09-14T14:29:43+12:00 (3 years ago)
Author:
kjdon
Message:

need to do the class loader trick for the javascript version of getting insterface strings

File:
1 edited

Legend:

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

    r35392 r35394  
    831831    public static String getInterfaceStringsAsJavascript(String interface_name, String lang, String prefix, String prependToPrefix)
    832832    {
     833          // now we allow looking for files in the interface's resources folder
     834          CustomClassLoader my_loader = new CustomClassLoader(XSLTUtil.class.getClassLoader(), GSFile.interfaceResourceDir(GlobalProperties.getGSDL3Home(), interface_name));
    833835      String prefixwithdot = prefix+".";
    834836        // 1. Generating Javascript of the form:
     
    848850        {
    849851          // get all the keys from the english dictionary as this is a complete set
    850             Dictionary dict = new Dictionary(dictName, "en");
     852                  Dictionary dict = new Dictionary(dictName, "en", my_loader);
    851853            Enumeration keys = dict.getKeys();
    852854            if (keys == null)
Note: See TracChangeset for help on using the changeset viewer.