mirror of
https://0xacab.org/sutty/sutty
synced 2024-07-05 12:25:45 +00:00
informar cuando no se pudo cargar el archivo
This commit is contained in:
parent
3de1228c26
commit
873f2c7bcb
|
@ -19,6 +19,7 @@ class MetadataFile < MetadataTemplate
|
||||||
errors << I18n.t("metadata.#{type}.site_invalid") if site.invalid?
|
errors << I18n.t("metadata.#{type}.site_invalid") if site.invalid?
|
||||||
errors << I18n.t("metadata.#{type}.path_required") if path_missing?
|
errors << I18n.t("metadata.#{type}.path_required") if path_missing?
|
||||||
errors << I18n.t("metadata.#{type}.no_file_for_description") if no_file_for_description?
|
errors << I18n.t("metadata.#{type}.no_file_for_description") if no_file_for_description?
|
||||||
|
errors << I18n.t("metadata.#{type}.attachment_missing") unless static_file
|
||||||
|
|
||||||
errors.compact!
|
errors.compact!
|
||||||
errors.empty?
|
errors.empty?
|
||||||
|
|
|
@ -41,10 +41,12 @@ en:
|
||||||
not_an_image: 'Not an image'
|
not_an_image: 'Not an image'
|
||||||
path_required: 'Missing image for upload'
|
path_required: 'Missing image for upload'
|
||||||
no_file_for_description: "Description with no associated image"
|
no_file_for_description: "Description with no associated image"
|
||||||
|
attachment_missing: "I couldn't save the image :("
|
||||||
file:
|
file:
|
||||||
site_invalid: 'The file cannot be stored if the site configuration is not valid'
|
site_invalid: 'The file cannot be stored if the site configuration is not valid'
|
||||||
path_required: "Missing file for upload"
|
path_required: "Missing file for upload"
|
||||||
no_file_for_description: "Description with no associated file"
|
no_file_for_description: "Description with no associated file"
|
||||||
|
attachment_missing: "I couldn't save the file :("
|
||||||
event:
|
event:
|
||||||
zone_missing: 'Inexistent timezone'
|
zone_missing: 'Inexistent timezone'
|
||||||
date_missing: 'Event date is required'
|
date_missing: 'Event date is required'
|
||||||
|
|
|
@ -41,10 +41,12 @@ es:
|
||||||
not_an_image: 'No es una imagen'
|
not_an_image: 'No es una imagen'
|
||||||
path_required: 'Se necesita una imagen'
|
path_required: 'Se necesita una imagen'
|
||||||
no_file_for_description: 'Se envió una descripción sin imagen asociada'
|
no_file_for_description: 'Se envió una descripción sin imagen asociada'
|
||||||
|
attachment_missing: 'no pude guardar el archivo :('
|
||||||
file:
|
file:
|
||||||
site_invalid: 'El archivo no se puede almacenar si la configuración del sitio no es válida'
|
site_invalid: 'El archivo no se puede almacenar si la configuración del sitio no es válida'
|
||||||
path_required: 'Se necesita un archivo'
|
path_required: 'Se necesita un archivo'
|
||||||
no_file_for_description: 'se envió una descripción sin archivo asociado'
|
no_file_for_description: 'se envió una descripción sin archivo asociado'
|
||||||
|
attachment_missing: 'no pude guardar el archivo :('
|
||||||
event:
|
event:
|
||||||
zone_missing: 'El huso horario no es correcto'
|
zone_missing: 'El huso horario no es correcto'
|
||||||
date_missing: 'La fecha es obligatoria'
|
date_missing: 'La fecha es obligatoria'
|
||||||
|
|
Loading…
Reference in a new issue