X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bb905aa28538cb2906fa2edceb81478ec0820ea5..ea93ad2f077de1be04a9087c7d20547395fdef9e:/app/views/diary_entry/view.rhtml diff --git a/app/views/diary_entry/view.rhtml b/app/views/diary_entry/view.rhtml index ca678c50b..7ff35b494 100644 --- a/app/views/diary_entry/view.rhtml +++ b/app/views/diary_entry/view.rhtml @@ -1,4 +1,4 @@ -

<%= @entry.user.display_name %>'s diary

+

<%= t 'diary_entry.view.user_title', :user => h(@entry.user.display_name) %>

<%= render :partial => 'diary_entry', :object => @entry %> @@ -8,17 +8,17 @@ <% if @user %> -

Leave a comment

+

<%= t 'diary_entry.view.leave_a_comment' %>

<%= error_messages_for 'diary_comment' %> <% form_for :diary_comment, @diary_comment, :url => { :action => 'comment' } do |f| %> <%= f.text_area :body, :cols => 80, :rows => 5 %>

-<%= submit_tag 'Save' %> +<%= submit_tag t('diary_entry.view.save_button') %> <% end %> <% else %> -

<%= link_to "Login", :controller => 'user', :action => 'login', :referer => request.request_uri %> to leave a comment

+

<%= 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)) %>

<% end %>