<% if @user %>
-<h4 id="newcomment">Leave a comment</h4>
+<h4 id="newcomment"><%= t 'diary_entry.view.leave_a_comment' %></h4>
<%= error_messages_for 'diary_comment' %>
<% form_for :diary_comment, @diary_comment, :url => { :action => 'comment' } do |f| %>
<%= f.text_area :body, :cols => 80, :rows => 5 %>
<br />
<br />
-<%= submit_tag 'Save' %>
+<%= submit_tag t('diary_entry.view.save_button') %>
<% end %>
<% else %>
<% content_for :greeting do %>
<% if @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
-<%= link_to_function 'home', "setPosition(#{@user.home_lat}, #{@user.home_lon}, 10)" %> |
+<%= link_to_function t('site.index.home'), "setPosition(#{@user.home_lat}, #{@user.home_lon}, 10)" %> |
<% end %>
<% end %>
marker_text: Diary entry location
view:
title: "Users' diaries | {{user}}"
+ leave_a_comment: "Leave a comment"
+ save_button: "Save"
no_such_entry:
heading: "No entry with the id: {{id}}"
body: "Sorry, there is no diary entry or comment with the id {{id}}. Please check your spelling, or maybe the link you clicked is wrong."
back_to_outbox: "Back to outbox"
site:
index:
+ home: "home"
js_1: "You are either using a browser that doesn't support javascript, or you have disabled javascript."
js_2: "OpenStreetMap uses javascript for its slippy map."
js_3: 'You may want to try the <a href="http://tah.openstreetmap.org/Browse/">Tiles@Home static tile browser</a> if you are unable to enable javascript.'