Skip to content

Commit

Permalink
Merge pull request #815 from darkv/validation_localization_patch
Browse files Browse the repository at this point in the history
additional template schema for validation exceptions
  • Loading branch information
paulhoadley authored Feb 8, 2017
2 parents cea44a1 + 09fac30 commit 5acc32f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,9 @@ protected String templateForEntityPropertyType(String entityName,
// 2nd try everything minus the type.
if (template == null)
template = templateForKeyPath(entityName + "." + property, targetLanguage);
// 2.5th try entity plus type
if (template == null)
template = templateForKeyPath(entityName + "." + type, targetLanguage);
// 3rd try property plus type
if (template == null)
template = templateForKeyPath(property + "." + type, targetLanguage);
Expand Down

0 comments on commit 5acc32f

Please sign in to comment.