Commit f23b5d323c9d4725cac3de20f3eb0fca31d853c4
1 parent
945f6e4e
Exists in
colab
and in
4 other branches
Reading translation
Showing
5 changed files
with
46 additions
and
10 deletions
Show diff stats
app/views/readings/_form.html.erb
| ... | ... | @@ -10,10 +10,10 @@ |
| 10 | 10 | </div> |
| 11 | 11 | <div class="help-container"> |
| 12 | 12 | <p> |
| 13 | - It is a verbal concise form of highlighting the content of an interpretation. | |
| 13 | + <%= t('activemodel.hints.reading.label') %> | |
| 14 | 14 | </p> |
| 15 | 15 | <p> |
| 16 | - Example values: terrible, bad, regular, good, great etc. | |
| 16 | + <%= t('activemodel.hints.reading.label_example') %> | |
| 17 | 17 | </p> |
| 18 | 18 | </div> |
| 19 | 19 | </div> |
| ... | ... | @@ -30,10 +30,10 @@ |
| 30 | 30 | </div> |
| 31 | 31 | <div class="help-container"> |
| 32 | 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 | 34 | </p> |
| 35 | 35 | <p> |
| 36 | - Example values: 000000, 00ff00 etc | |
| 36 | + <%= t('activemodel.hints.reading.color_example') %> | |
| 37 | 37 | </p> |
| 38 | 38 | </div> |
| 39 | 39 | </div> |
| ... | ... | @@ -45,7 +45,7 @@ |
| 45 | 45 | </div> |
| 46 | 46 | <div class="help-container"> |
| 47 | 47 | <p> |
| 48 | - A number to classify this reading. | |
| 48 | + <%= t('activemodel.hints.reading.grade') %> | |
| 49 | 49 | </p> |
| 50 | 50 | </div> |
| 51 | 51 | </div> |
| ... | ... | @@ -53,13 +53,13 @@ |
| 53 | 53 | </div> |
| 54 | 54 | |
| 55 | 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 | 57 | <% if @reading.persisted? %> |
| 58 | 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 | 60 | <% else %> |
| 61 | 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 | 63 | <% end %> |
| 64 | 64 | </div> |
| 65 | 65 | ... | ... |
app/views/readings/edit.html.erb
app/views/readings/new.html.erb
| ... | ... | @@ -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." | ... | ... |
| ... | ... | @@ -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 | 19 | \ No newline at end of file | ... | ... |