From 415b8ef868c53542454fad3e953cd10e11680396 Mon Sep 17 00:00:00 2001 From: Mauricio Fierro Date: Wed, 19 Jun 2024 08:34:17 -0500 Subject: [PATCH] Localize section views --- app/views/sections/_form.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/sections/_form.html.erb b/app/views/sections/_form.html.erb index f6868ff..9ac486d 100644 --- a/app/views/sections/_form.html.erb +++ b/app/views/sections/_form.html.erb @@ -16,7 +16,7 @@ <%= form.label :name %> - <%= form.text_field :name, minlength: 5, maxlength: 25, placeholder: "Name" %> + <%= form.text_field :name, minlength: 5, maxlength: 25, placeholder: Section.human_attribute_name("name") %> <%= form.label :playback_speed %> <%= form.text_field :playback_speed, min: 0.5, max: 2, type: :number, step: 0.5 %> @@ -29,6 +29,6 @@
<%= form.submit %> - <%= link_to "Cancel", lesson_path(@lesson) %> + <%= link_to t(:cancel), lesson_path(@lesson) %>
<% end %>