Reorder translations and add missing prefixes
- files should be prefixed with code_ocean/ - the markdown editor is part of the application (helper)
This commit is contained in:

committed by
Sebastian Serth

parent
1589c9472b
commit
e551c8a699
@ -66,7 +66,7 @@ module CodeOcean
|
||||
else
|
||||
filename = "#{@object.path || ''}/#{@object.name || ''}#{@object.file_type.try(:file_extension) || ''}"
|
||||
format.html do
|
||||
flash[:danger] = t('files.error.filename', name: filename)
|
||||
flash[:danger] = t('code_ocean/files.error.filename', name: filename)
|
||||
redirect_to(options[:path])
|
||||
end
|
||||
format.json { render(json: @object.errors, status: :unprocessable_entity) }
|
||||
|
Reference in New Issue
Block a user