diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-09-27 15:03:49 +0200 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2018-06-05 16:20:20 +0200 |
commit | 85a8e6f26a8fa0ea9f430f0094fb14706bfd2991 (patch) | |
tree | 4afb34773410769406e292b19ba21892a45fd001 /config/locales | |
parent | 822023c64ccab23cfdacb42e191dcec4f812adfd (diff) | |
download | gitlab-ce-85a8e6f26a8fa0ea9f430f0094fb14706bfd2991.tar.gz |
whitelist allowed file types for custom favicons
Diffstat (limited to 'config/locales')
-rw-r--r-- | config/locales/carrierwave.en.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/config/locales/carrierwave.en.yml b/config/locales/carrierwave.en.yml new file mode 100644 index 00000000000..12619226460 --- /dev/null +++ b/config/locales/carrierwave.en.yml @@ -0,0 +1,14 @@ +en: + 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}" |