compile fixes

This commit is contained in:
Grahame Grieve 2024-05-19 10:45:04 -05:00
parent 21e7e70a99
commit bf4b029b4b
3 changed files with 13 additions and 2 deletions

View File

@ -730,7 +730,7 @@ public class ElementDefinition30_50 {
Extension tgt = new Extension();
ConversionContext30_50.INSTANCE.getVersionConvertor_30_50().copyElement(src, tgt);
if (src.hasPurpose()) {
tgt.addExtension(new Extension("purpose", new CodeType(src.getPurposeElement().primitiveValue())));
tgt.addExtension(new Extension("purpose", new org.hl7.fhir.dstu3.model.CodeType(src.getPurposeElement().primitiveValue())));
}
if (src.hasValueSet()) {
tgt.addExtension(new Extension("valueSet", Uri30_50.convertCanonical(src.getValueSetElement())));

View File

@ -66,7 +66,7 @@ public abstract class I18nBase {
if (!messageKeyExistsForLocale(message)) {
if (!message.contains(" ")) {
if (warnAboutMissingMessages && (hasArgs || !message.contains(" "))) {
System.out.println("Attempting to localize message " + message + ", but no such equivalent message exists for" +
System.out.println("Attempting to localize "+typeOfString()+" " + message + ", but no such equivalent message exists for" +
" the locale " + getLocale());
}
}
@ -74,6 +74,10 @@ public abstract class I18nBase {
return messageKeyExistsForLocale(message);
}
protected String typeOfString() {
return "message";
}
protected boolean messageKeyExistsForLocale(String message) {
return messages.containsKey(message);
}

View File

@ -1065,4 +1065,11 @@ public class RenderingI18nContext extends I18nBase {
protected String getMessagesSourceFileName() {
return "rendering-phrases";
}
@Override
protected String typeOfString() {
return "phrase";
}
}