Fix lang and locale settings for baseEngine use
This commit is contained in:
parent
464af9de90
commit
77f8cdb9df
|
@ -493,6 +493,12 @@ public class ValidationService {
|
|||
if (hasBaseEngineForKey(cliContext.getBaseEngine())) {
|
||||
System.out.println("Getting base engine: " + cliContext.getBaseEngine());
|
||||
validator = new ValidationEngine(getBaseEngine(cliContext.getBaseEngine()));
|
||||
/* As a service, it wouldn't be efficient to have a base validation engine
|
||||
* for every language. So we just use the baseEngine and set the language
|
||||
* manually afterward.
|
||||
*/
|
||||
validator.setLanguage(cliContext.getLang());
|
||||
validator.setLocale(cliContext.getLocale());
|
||||
} else {
|
||||
System.out.println("Building new validator engine.");
|
||||
if (cliContext.getSv() == null) {
|
||||
|
|
Loading…
Reference in New Issue