summaryrefslogtreecommitdiff
path: root/app/workers/object_storage/migrate_uploads_worker.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/object_storage/migrate_uploads_worker.rb')
-rw-r--r--app/workers/object_storage/migrate_uploads_worker.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/workers/object_storage/migrate_uploads_worker.rb b/app/workers/object_storage/migrate_uploads_worker.rb
index fe5d27b087d..337563265cf 100644
--- a/app/workers/object_storage/migrate_uploads_worker.rb
+++ b/app/workers/object_storage/migrate_uploads_worker.rb
@@ -20,7 +20,7 @@ module ObjectStorage
end
def to_s
- success? ? "Migration successful." : "Error while migrating #{upload.id}: #{error.message}"
+ success? ? _("Migration successful.") : "Error while migrating #{upload.id}: #{error.message}"
end
end
@@ -110,9 +110,9 @@ module ObjectStorage
return if args.count == 4
case args.count
- when 3 then raise SanityCheckError, "Job is missing the `model_type` argument."
+ when 3 then raise SanityCheckError, _("Job is missing the `model_type` argument.")
else
- raise SanityCheckError, "Job has wrong arguments format."
+ raise SanityCheckError, _("Job has wrong arguments format.")
end
end