Skip to content

Commit

Permalink
added translated string in Questions:_questions_shadow.html.erb
Browse files Browse the repository at this point in the history
  • Loading branch information
17sushmita committed Mar 3, 2021
1 parent 30a6a38 commit a2277ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/questions/_questions_shadow.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
<div>
<div class="answer">
<% if params[:controller] == 'questions' %>
<a class="peopleResponse" href="<%= node.path(:question) %>#answers" title="Answers"><%= node.answers.length %> people responded</a>
<a class="peopleResponse" href="<%= node.path(:question) %>#answers" title="Answers"><%= node.answers.length %> <%=translation('questions._questions_shadow.people_responded')%></a>
<% end %>
</div>
</div>
<a class="btn btn-outline-secondary" href="/q/<%= node.id %>" >Read More</a>
<a class="btn btn-outline-secondary" href="/q/<%= node.id %>" ><%=translation('questions._questions_shadow.read_more')%></a>
</div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,9 @@ en:
most_liked_questions: Most liked questions
_comment:
promotion: "Promote this comment to an answer"
_questions_shadow:
people_responded: "people responded"
read_more: "Read More"
user_sessions:
new:
log_in: "Log in"
Expand Down

0 comments on commit a2277ad

Please sign in to comment.