Commit 44ed5a70 authored by marcheing's avatar marcheing

Add translation for form error message on send content

Signed-off-by: Diego de Araújo Martinez Camarinha's avatarDiego Araújo <diegoamc@protonmail.ch>
parent 77b02f8b
Pipeline #3628488 passed with stage
in 9 minutes and 10 seconds
......@@ -5,7 +5,7 @@
<%= form_for(content, id: 'content-upload-form', 'data-abide' => true, novalidate: true, html: { multipart: true } ) do |f| %>
<% if content.errors.any? %>
<div id="error_explanation" data-abide-error class="alert callout">
<h2 class="fa fa-exclamation-circle"><%= pluralize(content.errors.count, "error") %> prohibited this content from being saved:</h2>
<h2 class="fa fa-exclamation-circle"><%= pluralize(content.errors.count, "error") %> <%= t('content_save_error_nessage') %></h2>
<ul>
<% content.errors.full_messages.each do |message| %>
<li><%= message %></li>
......
en:
successfully_created_video: Successfully created video
content_save_error_message: "prohibited this content from being saved:"
send_content: Send content
author: Author
terms_of_service_html: "I've read and agreed with the <a href=\"#\">Terms of Service</a>"
......
pt-BR:
successfully_created_video: Video criado com sucesso
content_save_error_message: "proibiram este conteúdo de ser salvo:"
send_content: Envio de Conteúdo
author: Autor(a)
terms_of_service_html: Li e concordo com o <a href="#">Regulamento e Termos de Uso</a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment