From 5e96cc6d8939888db1cea5705199826d0d2a2f7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= Date: Sun, 3 Dec 2017 14:53:44 +0100 Subject: [PATCH] add carrierwave error messages --- config/locales/diaspora/en.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/config/locales/diaspora/en.yml b/config/locales/diaspora/en.yml index dd725365c..6c6c3f394 100644 --- a/config/locales/diaspora/en.yml +++ b/config/locales/diaspora/en.yml @@ -67,6 +67,21 @@ en: attributes: poll: already_participated: "You’ve already participated in this poll!" + # Carrierwave error messages + errors: + messages: + carrierwave_processing_error: failed to be processed + carrierwave_integrity_error: is not of an allowed file type + carrierwave_download_error: could not be downloaded + extension_whitelist_error: "You are not allowed to upload %{extension} files, allowed types: %{allowed_types}" + extension_blacklist_error: "You are not allowed to upload %{extension} files, prohibited types: %{prohibited_types}" + content_type_whitelist_error: "You are not allowed to upload %{content_type} files" + content_type_blacklist_error: "You are not allowed to upload %{content_type} files" + rmagick_processing_error: "Failed to manipulate with rmagick, maybe it is not an image?" + mini_magick_processing_error: "Failed to manipulate with MiniMagick, maybe it is not an image? Original Error: %{e}" + min_size_error: "File size should be greater than %{min_size}" + max_size_error: "File size should be less than %{max_size}" + error_messages: helper: correct_the_following_errors_and_try_again: "Correct the following errors and try again."