Make "Login to leave a comment" translatable.

This commit is contained in:
Tom Hughes 2009-06-05 18:11:50 +00:00
parent 52bfc5a905
commit e2cb38cd6e
2 changed files with 3 additions and 1 deletions

View file

@ -19,6 +19,6 @@
<% else %> <% 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 %> <% end %>

View file

@ -245,6 +245,8 @@ en:
title: "Users' diaries | {{user}}" title: "Users' diaries | {{user}}"
user_title: "{{user}}'s diary" user_title: "{{user}}'s diary"
leave_a_comment: "Leave a comment" leave_a_comment: "Leave a comment"
login_to_leave_a_comment: "{{login_link}} to leave a comment"
login: "Login"
save_button: "Save" save_button: "Save"
no_such_entry: no_such_entry:
heading: "No entry with the id: {{id}}" heading: "No entry with the id: {{id}}"