Merge pull request #1098 from hapifhir/do-fix-fhirpathengine-plurals
Fix for #1091
This commit is contained in:
commit
4a5985fe59
|
@ -299,6 +299,8 @@ public interface IWorkerContext {
|
|||
|
||||
String formatMessage(String theMessage, Object... theMessageArguments);
|
||||
|
||||
String formatMessagePlural(Integer pl, String theMessage, Object... theMessageArguments);
|
||||
|
||||
void setValidationMessageLanguage(Locale locale);
|
||||
|
||||
public class ValidationResult {
|
||||
|
|
|
@ -575,7 +575,7 @@ public class FHIRPathEngine {
|
|||
}
|
||||
|
||||
private FHIRException makeExceptionPlural(Integer num, ExpressionNode holder, String constName, Object... args) {
|
||||
String fmt = worker.formatMessage(constName, args);
|
||||
String fmt = worker.formatMessagePlural(num, constName, args);
|
||||
if (location != null) {
|
||||
fmt = fmt + " "+worker.formatMessage(I18nConstants.FHIRPATH_LOCATION, location);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue