Merge "Use interpolate in JS to allow translators to control word order"

This commit is contained in:
Jenkins 2016-02-12 21:56:00 +00:00 committed by Gerrit Code Review
commit fab5990aa5

View File

@ -201,7 +201,8 @@
var promise = apiService.delete('/api/glance/images/' + imageId + '/');
return suppressError ? promise : promise.error(function() {
toastService.add('error', gettext('Unable to delete the image with id: ') + imageId);
var msg = gettext('Unable to delete the image with id: %(id)s');
toastService.add('error', interpolate(msg, { id: imageId }, true));
});
}