Skip to content

Commit

Permalink
#6524 update bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
sekmiller committed Feb 3, 2020
1 parent dcc857d commit fef91a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/edu/harvard/iq/dataverse/api/Datasets.java
Original file line number Diff line number Diff line change
Expand Up @@ -1805,7 +1805,7 @@ public Response getMakeDataCountMetricCurrentMonth(@PathParam("id") String idSup
public Response getStorageSize(@PathParam("identifier") String dvIdtf, @QueryParam("includeCached") boolean includeCached,
@Context UriInfo uriInfo, @Context HttpHeaders headers) throws WrappedResponse {

return response(req -> ok(MessageFormat.format(BundleUtil.getStringFromBundle("datasets.api.datasize"),
return response(req -> ok(MessageFormat.format(BundleUtil.getStringFromBundle("datasets.api.datasize.storage"),
execCommand(new GetDatasetStorageSizeCommand(req, findDatasetOrDie(dvIdtf), includeCached, "storage", null)))));
}

Expand All @@ -1814,7 +1814,7 @@ public Response getStorageSize(@PathParam("identifier") String dvIdtf, @QueryPa
public Response getDownloadSize(@PathParam("identifier") String dvIdtf, @PathParam("versionId") String version,
@Context UriInfo uriInfo, @Context HttpHeaders headers) throws WrappedResponse {

return response(req -> ok(MessageFormat.format(BundleUtil.getStringFromBundle("datasets.api.datasize"),
return response(req -> ok(MessageFormat.format(BundleUtil.getStringFromBundle("datasets.api.datasize.download"),
execCommand(new GetDatasetStorageSizeCommand(req, findDatasetOrDie(dvIdtf), false, "download", getDatasetVersionOrDie(req, version , findDatasetOrDie(dvIdtf), uriInfo, headers))))));
}

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/propertyFiles/Bundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2226,7 +2226,8 @@ datasets.api.moveDataset.error.targetDataverseNotFound=Target dataverse not foun
datasets.api.moveDataset.error.suggestForce=Use the query parameter forceMove=true to complete the move.
datasets.api.moveDataset.success=Dataset moved successfully.
datasets.api.listing.error=Fatal error trying to list the contents of the dataset. Please report this error to the Dataverse administrator.
datasets.api.datasize=Total size of the files stored in this dataset: {0} bytes
datasets.api.datasize.storage=Total size of the files stored in this dataset: {0} bytes
datasets.api.datasize.download=Total size of the files available for download in this version of the dataset: {0} bytes
datasets.api.datasize.ioerror=Fatal IO error while trying to determine the total size of the files stored in the dataset. Please report this error to the Dataverse administrator.


Expand Down

0 comments on commit fef91a8

Please sign in to comment.