diff --git a/app/views/questions/_preview_question.html.erb b/app/views/questions/_preview_question.html.erb index a7424e4..dc51641 100644 --- a/app/views/questions/_preview_question.html.erb +++ b/app/views/questions/_preview_question.html.erb @@ -7,11 +7,11 @@
- <% if q_format.title == t("helpers.checkbox") || q_format.title == t("helpers.multi_select_box") || q_format.title == t("helpers.radio_buttons") || q_format.title == t("helpers.dropdown") %> + <% if q_format.title == _('Check box') || q_format.title == _('Multi select box') || q_format.title == _('Radio buttons') || q_format.title == _('Dropdown') %> <% options = question.question_options.order("number") %> - <% if q_format.title == t("helpers.checkbox") %> + <% if q_format.title == _('Check box') %> <%if !options.nil? %>
@@ -23,7 +23,7 @@
<% end %> - <% elsif q_format.title == t("helpers.multi_select_box") %> + <% elsif q_format.title == _('Multi select box') %> <% if !options.nil? %> <% end %> - <% elsif q_format.title == t("helpers.radio_buttons") %> + <% elsif q_format.title == _('Radio buttons') %> <% if !options.nil? %>
@@ -45,7 +45,7 @@
<% end %> - <% elsif q_format.title == t("helpers.dropdown") %> + <% elsif q_format.title == _('Dropdown') %> <% if !options.nil? %> <% else %> @@ -85,9 +85,9 @@
<% if suggested_answer.is_example? %> - <%= t("org_admin.questions.example_answer_label")%> + <%= _('Example of answer')%> <% else %> - <%= t("org_admin.questions.suggested_answer_label")%> + <%= _('Suggested answer')%> <% end %>
@@ -103,17 +103,17 @@ - <% if q_format.title == t("helpers.text_field") %> + <% if q_format.title == _('Text field') %> - <%elsif q_format.title == t("helpers.text_area") %> + <%elsif q_format.title == _('Text area') %> <%end%>
- <%= link_to t("helpers.save"), "#", class: "btn btn-primary", onclick: "event.preventDefault();" %> + <%= link_to _('Save'), "#", class: "btn btn-primary", onclick: "event.preventDefault();" %> - <%= t("helpers.notanswered") %> + <%= _('Not answered yet') %>
diff --git a/app/views/questions/_show_question.html.erb b/app/views/questions/_show_question.html.erb index c35b492..1a0ce91 100644 --- a/app/views/questions/_show_question.html.erb +++ b/app/views/questions/_show_question.html.erb @@ -9,18 +9,18 @@ - + - + - <% if q_format.title == t("helpers.text_field") || q_format.title == t("helpers.text_area") %> + <% if q_format.title == _('Text field') || q_format.title == _('Text area') %> <% if !question.default_value.nil? %> - + <% end %> <% end %> - + @@ -80,7 +80,7 @@ <% if !question.guidance.nil? %> - + <% end %> @@ -88,7 +88,7 @@ <% themes_q = question.themes %> <% if !themes_q.nil? %> - +
<%= t('org_admin.questions.question_number_label')%><%= _('Question number')%> <%= question.number %>
<%= t('org_admin.questions.question_text_label')%><%= _('Question text')%> <%= raw question.text %>
<% q_format = question.question_format %> - <% if q_format.title == t("helpers.checkbox") || q_format.title == t("helpers.multi_select_box") || q_format.title == t("helpers.radio_buttons") || q_format.title == t("helpers.dropdown") %> + <% if q_format.title == _('Check box') || q_format.title == _('Multi select box') || q_format.title == _('Radio buttons') || q_format.title == _('Dropdown') %>
    <% if question.question_options.is_a? QuestionOption %>
  • - <%= question.question_options.text %>
  • @@ -37,24 +37,24 @@
<%= t('org_admin.questions.default_value_label')%><%= _('Default value')%> <%= raw question.default_value %>
<%= t('org_admin.questions.answer_format_label')%><%= _('Answer format')%> <%= q_format.title %>
- <% if q_format.title == t("helpers.checkbox") || q_format.title == t("helpers.multi_select_box") || q_format.title == t("helpers.radio_buttons") || q_format.title == t("helpers.dropdown") %> + <% if q_format.title == _('Check box') || q_format.title == _('Multi select box') || q_format.title == _('Radio buttons') || q_format.title == _('Dropdown') %> <% if question.option_comment_display == true %> - <%= t("org_admin.questions.option_comment_display")%> + <%= _('Additional comment area will be displayed.')%> <% else %> - <%= t("org_admin.questions.option_comment_hide")%> + <%= _('No additional comment area will be displayed.')%> <% end %> <% end %>
@@ -68,9 +68,9 @@
<% if suggested_answer.is_example? %> - <%= t('org_admin.questions.example_answer_label')%> + <%= _('Example of answer')%> <% else %> - <%= t('org_admin.questions.suggested_answer_label')%> + <%= _('Suggested answer')%> <% end %> <%= raw suggested_answer.text %>
<%= t('org_admin.questions.guidance_label')%><%= _('Guidance')%> <%= raw question.guidance %>
<%= t('org_admin.questions.themes_label')%><%= _('Themes')%> <% i = 1%> <% themes_q.each do |t|%> <%= t.title %> @@ -123,10 +123,10 @@ <% if (@edit && question.section.modifiable) || question.section.phase.template.customization_of.present? %>
<%= hidden_field_tag :question_id, question.id, class: "question_id" %> - <%= link_to t("org_admin.questions.question_edit_button"), '# ', class: "btn btn-primary edit_question_button"%> + <%= link_to _('Edit question'), '# ', class: "btn btn-primary edit_question_button"%> <% if !question.section.published? %> - <%= link_to t("org_admin.questions.question_delete_button"), admin_destroy_question_path(question_id: question.id), - confirm: t("org_admin.questions.delete_message", question_text: question.text ), method: :delete, class: "btn btn-primary"%> + <%= link_to _('Delete question'), admin_destroy_question_path(question_id: question.id), + confirm: _('You are about to delete '%{question_text}'. Are you sure?') % { :question_text => question.text }, method: :delete, class: "btn btn-primary"%> <% end %>
<% elsif !@edit && question.modifiable %> @@ -135,7 +135,7 @@
<%= hidden_field_tag :question_id, question.id, class: "question_id" %> - <%= link_to t("org_admin.questions.suggested_or_example_answer_button"), '# ', class: "btn btn-primary add_suggested_answer_button"%> + <%= link_to _('Add suggested answer/ example'), '# ', class: "btn btn-primary add_suggested_answer_button"%>
<% end %>