Consolidate local overrides of messages and styles in "local" subdirectory. Allows customisation without creating a new thmee.

This commit is contained in:
Graham Triggs 2017-10-02 18:23:49 +01:00
parent 9797afe881
commit 3ad80a9cf6
7 changed files with 24 additions and 2 deletions

View file

@ -143,7 +143,7 @@ public class VitroResourceBundle extends ResourceBundle {
if (props == null) {
throw new FileNotFoundException("Property file not found at '" + defaultsPath + "' or '" + propertiesPath + "'");
}
props = loadProperties(props, locateFile(joinPath(appI18nPath, "local_" + resourceName)));
props = loadProperties(props, locateFile(joinPath("/local/i18n/", resourceName)));
return props;
}