Commit f23b5d323c9d4725cac3de20f3eb0fca31d853c4

Authored by Rafael Manzo
1 parent 945f6e4e

Reading translation

app/views/readings/_form.html.erb
@@ -10,10 +10,10 @@ @@ -10,10 +10,10 @@
10 </div> 10 </div>
11 <div class="help-container"> 11 <div class="help-container">
12 <p> 12 <p>
13 - It is a verbal concise form of highlighting the content of an interpretation. 13 + <%= t('activemodel.hints.reading.label') %>
14 </p> 14 </p>
15 <p> 15 <p>
16 - Example values: terrible, bad, regular, good, great etc. 16 + <%= t('activemodel.hints.reading.label_example') %>
17 </p> 17 </p>
18 </div> 18 </div>
19 </div> 19 </div>
@@ -30,10 +30,10 @@ @@ -30,10 +30,10 @@
30 </div> 30 </div>
31 <div class="help-container"> 31 <div class="help-container">
32 <p> 32 <p>
33 - It is a visual form of highlighting an interpretation. You can choose one by typing its hexadecimal value or by using the color picker. 33 + <%= t('activemodel.hints.reading.color') %>
34 </p> 34 </p>
35 <p> 35 <p>
36 - Example values: 000000, 00ff00 etc 36 + <%= t('activemodel.hints.reading.color_example') %>
37 </p> 37 </p>
38 </div> 38 </div>
39 </div> 39 </div>
@@ -45,7 +45,7 @@ @@ -45,7 +45,7 @@
45 </div> 45 </div>
46 <div class="help-container"> 46 <div class="help-container">
47 <p> 47 <p>
48 - A number to classify this reading. 48 + <%= t('activemodel.hints.reading.grade') %>
49 </p> 49 </p>
50 </div> 50 </div>
51 </div> 51 </div>
@@ -53,13 +53,13 @@ @@ -53,13 +53,13 @@
53 </div> 53 </div>
54 54
55 <div class="row margin-left-none" style="margin-top: 20px"> 55 <div class="row margin-left-none" style="margin-top: 20px">
56 - <%= f.submit 'Save', class: 'btn btn-primary' %> 56 + <%= f.submit t('save'), class: 'btn btn-primary' %>
57 <% if @reading.persisted? %> 57 <% if @reading.persisted? %>
58 <%= f.hidden_field(:reading_group_id, value: @reading.reading_group_id) %> 58 <%= f.hidden_field(:reading_group_id, value: @reading.reading_group_id) %>
59 - <%= link_to 'Back', reading_group_path(@reading.reading_group_id), class: 'btn btn-default' %> 59 + <%= link_to t('back'), reading_group_path(@reading.reading_group_id), class: 'btn btn-default' %>
60 <% else %> 60 <% else %>
61 <%= f.hidden_field(:reading_group_id, value: @reading_group_id) %> 61 <%= f.hidden_field(:reading_group_id, value: @reading_group_id) %>
62 - <%= link_to 'Back', reading_group_path(@reading_group_id), class: 'btn btn-default' %> 62 + <%= link_to t('back'), reading_group_path(@reading_group_id), class: 'btn btn-default' %>
63 <% end %> 63 <% end %>
64 </div> 64 </div>
65 65
app/views/readings/edit.html.erb
1 <div class="page-header"> 1 <div class="page-header">
2 - <h1>Editing Reading</h1> 2 + <h1><%= t('edit', model: Reading.model_name.human) %></h1>
3 </div> 3 </div>
4 4
5 <%= form_for(@reading, :url => reading_group_reading_update_path(@reading.reading_group_id, @reading.id), method: :put) do |f| %> 5 <%= form_for(@reading, :url => reading_group_reading_update_path(@reading.reading_group_id, @reading.id), method: :put) do |f| %>
app/views/readings/new.html.erb
1 <div class="page-header"> 1 <div class="page-header">
2 - <h1>New Reading</h1> 2 + <h1><%= "#{t('new.female')} #{Reading.model_name.human}" %></h1>
3 </div> 3 </div>
4 4
5 <%= form_for(@reading, :url => reading_group_readings_path(@reading_group_id)) do |f| %> 5 <%= form_for(@reading, :url => reading_group_readings_path(@reading_group_id)) do |f| %>
config/locales/views/reading/en.yml 0 → 100644
@@ -0,0 +1,18 @@ @@ -0,0 +1,18 @@
  1 +en:
  2 + activemodel:
  3 + models:
  4 + reading:
  5 + one: Reading
  6 + other: Readings
  7 + attributes:
  8 + reading:
  9 + label: 'Label'
  10 + color: 'Color'
  11 + grade: 'Grade'
  12 + hints:
  13 + reading:
  14 + label: 'It is a verbal concise form of highlighting the content of an interpretation.'
  15 + label_example: 'Example values: terrible, bad, regular, good, great etc.'
  16 + 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."
  17 + color_example: "Example values: 000000, 00ff00 etc."
  18 + grade: "A number to classify this reading."
config/locales/views/reading/pt.yml 0 → 100644
@@ -0,0 +1,18 @@ @@ -0,0 +1,18 @@
  1 +pt:
  2 + activemodel:
  3 + models:
  4 + reading:
  5 + one: Leitura
  6 + other: Leituras
  7 + attributes:
  8 + reading:
  9 + label: 'Rótulo'
  10 + color: 'Cor'
  11 + grade: 'Nota'
  12 + hints:
  13 + reading:
  14 + label: 'É uma forma concisa de descrever o conteúdo de uma avaliação.'
  15 + label_example: 'Valores de exemplo: terrível, ruim, regular, bom, ótimo etc.'
  16 + color: "É uma forma visual de destacar uma interpretação. Você pode escolher seu valor hexadecimal ou pela caixa de seleção."
  17 + color_example: "Valores de exemplo: 000000, 00ff00 etc."
  18 + grade: "Um número para classificar esta leitura."
0 \ No newline at end of file 19 \ No newline at end of file