From: Tom Hughes Date: Tue, 2 Jun 2009 12:02:21 +0000 (+0000) Subject: Add a few missing translations. Closes #1903. X-Git-Tag: live~7251 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/6254853c5c6a76417aed186798a0292c07d30ff4 Add a few missing translations. Closes #1903. --- diff --git a/app/views/diary_entry/view.rhtml b/app/views/diary_entry/view.rhtml index 6e1f75a32..85fe71ae4 100644 --- a/app/views/diary_entry/view.rhtml +++ b/app/views/diary_entry/view.rhtml @@ -8,13 +8,13 @@ <% 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 %> diff --git a/app/views/site/index.rhtml b/app/views/site/index.rhtml index 37004e25b..855f3f495 100644 --- a/app/views/site/index.rhtml +++ b/app/views/site/index.rhtml @@ -1,6 +1,6 @@ <% 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 %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 0ac74429d..75a10defd 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -241,6 +241,8 @@ en: 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." @@ -401,6 +403,7 @@ en: 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 Tiles@Home static tile browser if you are unable to enable javascript.'