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;
}

View file

@ -0,0 +1,5 @@
/*
Override theme CSS styles by placing them in this file
Note - all themes must include <../../..>/local/css/local.css as the last import.
*/

View file

@ -0,0 +1,5 @@
#
# Local customisations override any provided messages
#
# Default (English)
#

View file

@ -0,0 +1 @@
You can override messages and CSS by placing local rules and text in the files here.

View file

@ -0,0 +1,5 @@
/*
Override theme CSS styles by placing them in this file
Note - all themes must include <../../..>/local/css/local.css as the last import.
*/

View file

@ -0,0 +1,5 @@
#
# Local customisations override any provided messages
#
# Default (English)
#

View file

@ -24,3 +24,4 @@ VIVO wilma theme: screen styles
@import url("reset.css");
@import url("vitroTheme.css");
@import url("../../../local/css/local.css");