]> git.openstreetmap.org Git - rails.git/commitdiff
Make "Login to leave a comment" translatable.
authorTom Hughes <tom@compton.nu>
Fri, 5 Jun 2009 18:11:50 +0000 (18:11 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 5 Jun 2009 18:11:50 +0000 (18:11 +0000)
app/views/diary_entry/view.rhtml
config/locales/en.yml

index fd266f80b8f685b8e93344af0746bb0f1744c928..7ff35b494bc9913be9dbfcb14acb64c9b9b971f4 100644 (file)
@@ -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 %>
index 2bb72c826b1ef20de1676401d3dbb57ae82d803f..3203cd975874dd6638af6cdc1c2b71c9e09c4adb 100644 (file)
@@ -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}}"