Skip to content

Commit e2eb6d9

Browse files
authored
Merge pull request #9571 from stevenferey/9570-untranslated-error-ingest-message
Internationalization of ingest messages
2 parents d18ee51 + ded5d12 commit e2eb6d9

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/main/java/edu/harvard/iq/dataverse/ingest/IngestMessageBean.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ public void onMessage(Message message) {
128128
IngestReport errorReport = new IngestReport();
129129
errorReport.setFailure();
130130
if (ex.getMessage() != null) {
131-
errorReport.setReport("Ingest succeeded, but failed to save the ingested tabular data in the database: " + ex.getMessage());
131+
errorReport.setReport(BundleUtil.getStringFromBundle("file.ingest.saveFailed.detail.message") + ex.getMessage());
132132
} else {
133-
errorReport.setReport("Ingest succeeded, but failed to save the ingested tabular data in the database; no further information is available");
133+
errorReport.setReport(BundleUtil.getStringFromBundle("file.ingest.saveFailed.message"));
134134
}
135135
errorReport.setDataFile(datafile);
136136
datafile.setIngestReport(errorReport);

src/main/java/propertyFiles/Bundle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1815,6 +1815,8 @@ file.spss-savEncoding.current=Current Selection:
18151815
file.spss-porExtraLabels=Variable Labels
18161816
file.spss-porExtraLabels.title=Upload an additional text file with extra variable labels.
18171817
file.spss-porExtraLabels.selectToAddBtn=Select File to Add
1818+
file.ingest.saveFailed.message=Ingest succeeded, but failed to save the ingested tabular data in the database; no further information is available
1819+
file.ingest.saveFailed.detail.message=Ingest succeeded, but failed to save the ingested tabular data in the database:
18181820
file.ingestFailed.header=File available in original format only
18191821
file.ingestFailed.message=<a href="{0}/{1}/user/dataset-management.html#tabular-data-files" title="Tabular Data Files - Dataverse User Guide" target="_blank">Tabular ingest</a> was unsuccessful.
18201822
file.downloadBtn.format.all=All File Formats + Information

0 commit comments

Comments
 (0)