Make "Login to leave a comment" translatable.
This commit is contained in:
parent
52bfc5a905
commit
e2cb38cd6e
2 changed files with 3 additions and 1 deletions
|
@ -19,6 +19,6 @@
|
|||
|
||||
<% else %>
|
||||
|
||||
<h4 id="newcomment"><%= link_to "Login", :controller => 'user', :action => 'login', :referer => request.request_uri %> to leave a comment</h4>
|
||||
<h4 id="newcomment"><%= t("diary_entry.view.login_to_leave_a_comment", :login_link => link_to(t("diary_entry.view.login"), :controller => 'user', :action => 'login', :referer => request.request_uri)) %></h4>
|
||||
|
||||
<% end %>
|
||||
|
|
|
@ -245,6 +245,8 @@ en:
|
|||
title: "Users' diaries | {{user}}"
|
||||
user_title: "{{user}}'s diary"
|
||||
leave_a_comment: "Leave a comment"
|
||||
login_to_leave_a_comment: "{{login_link}} to leave a comment"
|
||||
login: "Login"
|
||||
save_button: "Save"
|
||||
no_such_entry:
|
||||
heading: "No entry with the id: {{id}}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue