diff --git a/app/views/kalibro_ranges/_form.html.erb b/app/views/kalibro_ranges/_form.html.erb
index 7ac59be..6f98274 100644
--- a/app/views/kalibro_ranges/_form.html.erb
+++ b/app/views/kalibro_ranges/_form.html.erb
@@ -8,12 +8,16 @@
<%= render partial: 'no_readings' %>
<% else %>
- <%= f.label :reading_id, 'Reading', class: 'control-label' %>
+ <%= f.label :reading_id, t('reading'), class: 'control-label' %>
<%= f.select( :reading_id, readings_options(@readings), {class: 'form-control'} ) %>
- The <%= link_to 'Reading', tutorials_path('keywords', anchor: 'reading')%> associated with this <%= link_to 'Range', tutorials_path('keywords', anchor: 'range')%>.
+ <%= t('activemodel.hints.kalibro_range.reading',
+ reading_href: link_to(t('reading'), tutorials_path('keywords', anchor: 'reading')),
+ range_href: link_to(KalibroRange.model_name.human, tutorials_path('keywords', anchor: 'range'))
+ ).html_safe
+ %>
<% end %>
@@ -32,7 +36,7 @@
- This Range's lower limit.
+ <%= t('activemodel.hints.kalibro_range.beginning') %>
@@ -49,7 +53,7 @@
- This Range's upper limit.
+ <%= t('activemodel.hints.kalibro_range.end') %>
@@ -61,7 +65,7 @@
- An explanation of why you chose this interval, with that reading for this <%= link_to 'Metric', tutorials_path('keywords', anchor: 'metric')%>.
+ <%= t('activemodel.hints.kalibro_range.comments', metric_href: link_to(t('metric'), tutorials_path('keywords', anchor: 'metric'))).html_safe %>
@@ -69,6 +73,6 @@
- <%= f.submit 'Save', class: 'btn btn-primary' %>
- <%= link_to 'Back', kalibro_configuration_metric_configuration_path(@kalibro_configuration_id, @metric_configuration_id), class: 'btn btn-default' %>
+ <%= f.submit t('save'), class: 'btn btn-primary' %>
+ <%= link_to t('back'), kalibro_configuration_metric_configuration_path(@kalibro_configuration_id, @metric_configuration_id), class: 'btn btn-default' %>
diff --git a/app/views/kalibro_ranges/new.html.erb b/app/views/kalibro_ranges/new.html.erb
index 774353f..107edbc 100644
--- a/app/views/kalibro_ranges/new.html.erb
+++ b/app/views/kalibro_ranges/new.html.erb
@@ -1,4 +1,4 @@
-New Range
+<%= "#{t('new.male')} #{KalibroRange.model_name.human}" %>
<%= form_for(@kalibro_range, :url => kalibro_configuration_metric_configuration_kalibro_ranges_path(
@kalibro_configuration_id, @metric_configuration_id)) do |f| %>
diff --git a/config/locales/views/kalibro_range/en.yml b/config/locales/views/kalibro_range/en.yml
new file mode 100644
index 0000000..a4b2b21
--- /dev/null
+++ b/config/locales/views/kalibro_range/en.yml
@@ -0,0 +1,18 @@
+en:
+ activemodel:
+ models:
+ kalibro_range:
+ one: Range
+ other: Ranges
+ attributes:
+ kalibro_range:
+ reading: 'Reading'
+ beginning: 'Beginning'
+ end: 'End'
+ comments: 'Comments'
+ hints:
+ kalibro_range:
+ reading: 'The %{reading_href} associated with this %{range_href}.'
+ beginning: "This Range's lower limit."
+ end: "This Range's upper limit."
+ comments: 'An explanation of why you chose this interval, with that reading for this %{metric_href}.'
\ No newline at end of file
diff --git a/config/locales/views/kalibro_range/pt.yml b/config/locales/views/kalibro_range/pt.yml
new file mode 100644
index 0000000..4605ed6
--- /dev/null
+++ b/config/locales/views/kalibro_range/pt.yml
@@ -0,0 +1,18 @@
+pt:
+ activemodel:
+ models:
+ kalibro_range:
+ one: Intervalo
+ other: Intervalos
+ attributes:
+ kalibro_range:
+ reading: 'Leitura'
+ beginning: 'Início'
+ end: 'Fim'
+ comments: 'Comentários'
+ hints:
+ kalibro_range:
+ reading: 'A %{reading_href} associada a este %{range_href}.'
+ beginning: "Limite inferior de um Intervalo."
+ end: "Limite superior de um Intervalo."
+ comments: 'Uma explicação do porquê você escolheu este Intervalo, com esta Leitura para esta %{metric_href}.'
\ No newline at end of file
--
libgit2 0.21.2