Changeset 37545


Ignore:
Timestamp:
2023-03-20T13:25:26+13:00 (13 months ago)
Author:
kjdon
Message:

can't have {0} etc in javascript - lets replace these with ... as we don't have the actual args at this time.

File:
1 edited

Legend:

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

    r36903 r37545  
    912912                    // get the language dependent value for the key. This will return the english if no value found for the given lang
    913913                    String value = getInterfaceText(interfaceName, dictName, lang, key, null);
     914                                        if (value.contains("{")) {
     915                                            value = value.replaceAll("\\{.*\\}", "...");
     916                                        }
    914917                    outputStr.append(prependToPrefix + "." + key + "=\"" + value + "\";\n");
    915918                }
Note: See TracChangeset for help on using the changeset viewer.