Consolidate local overrides of messages and styles in "local" subdirectory. Allows customisation without creating a new thmee.
This commit is contained in:
parent
9797afe881
commit
3ad80a9cf6
7 changed files with 24 additions and 2 deletions
|
@ -143,7 +143,7 @@ public class VitroResourceBundle extends ResourceBundle {
|
||||||
if (props == null) {
|
if (props == null) {
|
||||||
throw new FileNotFoundException("Property file not found at '" + defaultsPath + "' or '" + propertiesPath + "'");
|
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;
|
return props;
|
||||||
}
|
}
|
||||||
|
|
5
installer/webapp/src/main/webapp/local/css/local.css
Normal file
5
installer/webapp/src/main/webapp/local/css/local.css
Normal 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.
|
||||||
|
*/
|
|
@ -0,0 +1,5 @@
|
||||||
|
#
|
||||||
|
# Local customisations override any provided messages
|
||||||
|
#
|
||||||
|
# Default (English)
|
||||||
|
#
|
1
installer/webapp/src/main/webapp/local/readme
Normal file
1
installer/webapp/src/main/webapp/local/readme
Normal file
|
@ -0,0 +1 @@
|
||||||
|
You can override messages and CSS by placing local rules and text in the files here.
|
5
webapp/src/main/webapp/local/css/local.css
Normal file
5
webapp/src/main/webapp/local/css/local.css
Normal 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.
|
||||||
|
*/
|
5
webapp/src/main/webapp/local/i18n/all.properties
Normal file
5
webapp/src/main/webapp/local/i18n/all.properties
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#
|
||||||
|
# Local customisations override any provided messages
|
||||||
|
#
|
||||||
|
# Default (English)
|
||||||
|
#
|
|
@ -24,3 +24,4 @@ VIVO wilma theme: screen styles
|
||||||
|
|
||||||
@import url("reset.css");
|
@import url("reset.css");
|
||||||
@import url("vitroTheme.css");
|
@import url("vitroTheme.css");
|
||||||
|
@import url("../../../local/css/local.css");
|
Loading…
Add table
Reference in a new issue