diff --git a/app/views/readings/_form.html.erb b/app/views/readings/_form.html.erb
index b899a8d..46f127d 100644
--- a/app/views/readings/_form.html.erb
+++ b/app/views/readings/_form.html.erb
@@ -10,10 +10,10 @@
- It is a verbal concise form of highlighting the content of an interpretation.
+ <%= t('activemodel.hints.reading.label') %>
- Example values: terrible, bad, regular, good, great etc.
+ <%= t('activemodel.hints.reading.label_example') %>
@@ -30,10 +30,10 @@
- It is a visual form of highlighting an interpretation. You can choose one by typing its hexadecimal value or by using the color picker.
+ <%= t('activemodel.hints.reading.color') %>
- Example values: 000000, 00ff00 etc
+ <%= t('activemodel.hints.reading.color_example') %>
@@ -45,7 +45,7 @@
- A number to classify this reading.
+ <%= t('activemodel.hints.reading.grade') %>
@@ -53,13 +53,13 @@
- <%= f.submit 'Save', class: 'btn btn-primary' %>
+ <%= f.submit t('save'), class: 'btn btn-primary' %>
<% if @reading.persisted? %>
<%= f.hidden_field(:reading_group_id, value: @reading.reading_group_id) %>
- <%= link_to 'Back', reading_group_path(@reading.reading_group_id), class: 'btn btn-default' %>
+ <%= link_to t('back'), reading_group_path(@reading.reading_group_id), class: 'btn btn-default' %>
<% else %>
<%= f.hidden_field(:reading_group_id, value: @reading_group_id) %>
- <%= link_to 'Back', reading_group_path(@reading_group_id), class: 'btn btn-default' %>
+ <%= link_to t('back'), reading_group_path(@reading_group_id), class: 'btn btn-default' %>
<% end %>
diff --git a/app/views/readings/edit.html.erb b/app/views/readings/edit.html.erb
index 84e6bf1..843b273 100644
--- a/app/views/readings/edit.html.erb
+++ b/app/views/readings/edit.html.erb
@@ -1,5 +1,5 @@
<%= form_for(@reading, :url => reading_group_reading_update_path(@reading.reading_group_id, @reading.id), method: :put) do |f| %>
diff --git a/app/views/readings/new.html.erb b/app/views/readings/new.html.erb
index 32bce5b..2d4a5aa 100644
--- a/app/views/readings/new.html.erb
+++ b/app/views/readings/new.html.erb
@@ -1,5 +1,5 @@
<%= form_for(@reading, :url => reading_group_readings_path(@reading_group_id)) do |f| %>
diff --git a/config/locales/views/reading/en.yml b/config/locales/views/reading/en.yml
new file mode 100644
index 0000000..a187ad2
--- /dev/null
+++ b/config/locales/views/reading/en.yml
@@ -0,0 +1,18 @@
+en:
+ activemodel:
+ models:
+ reading:
+ one: Reading
+ other: Readings
+ attributes:
+ reading:
+ label: 'Label'
+ color: 'Color'
+ grade: 'Grade'
+ hints:
+ reading:
+ label: 'It is a verbal concise form of highlighting the content of an interpretation.'
+ label_example: 'Example values: terrible, bad, regular, good, great etc.'
+ color: "It is a visual form of highlighting an interpretation. You can choose one by typing its hexadecimal value or by using the color picker."
+ color_example: "Example values: 000000, 00ff00 etc."
+ grade: "A number to classify this reading."
diff --git a/config/locales/views/reading/pt.yml b/config/locales/views/reading/pt.yml
new file mode 100644
index 0000000..40cb7eb
--- /dev/null
+++ b/config/locales/views/reading/pt.yml
@@ -0,0 +1,18 @@
+pt:
+ activemodel:
+ models:
+ reading:
+ one: Leitura
+ other: Leituras
+ attributes:
+ reading:
+ label: 'Rótulo'
+ color: 'Cor'
+ grade: 'Nota'
+ hints:
+ reading:
+ label: 'É uma forma concisa de descrever o conteúdo de uma avaliação.'
+ label_example: 'Valores de exemplo: terrível, ruim, regular, bom, ótimo etc.'
+ color: "É uma forma visual de destacar uma interpretação. Você pode escolher seu valor hexadecimal ou pela caixa de seleção."
+ color_example: "Valores de exemplo: 000000, 00ff00 etc."
+ grade: "Um número para classificar esta leitura."
\ No newline at end of file
--
libgit2 0.21.2