add carrierwave error messages

This commit is contained in:
Jonne Haß 2017-12-03 14:53:44 +01:00 committed by Benjamin Neff
parent 53b733f0cd
commit 5e96cc6d89
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -67,6 +67,21 @@ en:
attributes:
poll:
already_participated: "Youve 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."