diff --git a/app/views/browse/_containing_relation.html.erb b/app/views/browse/_containing_relation.html.erb
index de41d9247..1b26a89b6 100644
--- a/app/views/browse/_containing_relation.html.erb
+++ b/app/views/browse/_containing_relation.html.erb
@@ -1,8 +1,8 @@
<% way.way_nodes.each do |wn| %>
<%= link_to printable_name(wn.node), { :action => "node", :id => wn.node_id.to_s }, :class => link_class('node', wn.node), :title => link_title(wn.node), :rel => link_follow(wn.node) %>
<% related_ways = wn.node.ways.reject { |w| w.id == wn.way_id } %>
<% if related_ways.size > 0 then %>
- (<%= raw t 'browse.way.also_part_of', :count => related_ways.size, :related_ways => related_ways.map { |w| link_to(printable_name(w), { :action => "way", :id => w.id.to_s }, :class => link_class('way', w), :title => link_title(w) ) }.to_sentence %>)
+ (<%= raw t '.also_part_of', :count => related_ways.size, :related_ways => related_ways.map { |w| link_to(printable_name(w), { :action => "way", :id => w.id.to_s }, :class => link_class('way', w), :title => link_title(w) ) }.to_sentence %>)
<% end %>
<% end %>
diff --git a/app/views/browse/changeset.html.erb b/app/views/browse/changeset.html.erb
index 81e1614c1..ed1e596ee 100644
--- a/app/views/browse/changeset.html.erb
+++ b/app/views/browse/changeset.html.erb
@@ -1,8 +1,8 @@
-<% set_title(t('browse.changeset.title', :id => @changeset.id)) %>
+<% set_title(t('.title', :id => @changeset.id)) %>
- <%= t('browse.changeset.title', :id => @changeset.id) %>
+ <%= t('.title', :id => @changeset.id) %>
@@ -11,7 +11,7 @@
<%= render :partial => "tag_details", :object => @changeset.tags.except('comment') %>
-
+
<% else %>
- <%= t('browse.changeset.still_open') %>
+ <%= t('.still_open') %>
<% end %>
@@ -131,7 +131,7 @@
<% end %>
- <%= link_to(t('browse.changeset.changesetxml'), :controller => "changeset", :action => "read") %>
+ <%= link_to(t('.changesetxml'), :controller => "changeset", :action => "read") %>
·
- <%= link_to(t('browse.changeset.osmchangexml'), :controller => "changeset", :action => "download") %>
+ <%= link_to(t('.osmchangexml'), :controller => "changeset", :action => "download") %>
diff --git a/app/views/browse/not_found.html.erb b/app/views/browse/not_found.html.erb
index a8974b474..5fe22a68a 100644
--- a/app/views/browse/not_found.html.erb
+++ b/app/views/browse/not_found.html.erb
@@ -1,12 +1,12 @@
<%
browse_not_found_type = {
- 'node' => I18n.t('browse.not_found.type.node'),
- 'way' => I18n.t('browse.not_found.type.way'),
- 'relation' => I18n.t('browse.not_found.type.relation'),
- 'changeset' => I18n.t('browse.not_found.type.changeset'),
+ 'node' => I18n.t('.type.node'),
+ 'way' => I18n.t('.type.way'),
+ 'relation' => I18n.t('.type.relation'),
+ 'changeset' => I18n.t('.type.changeset'),
};
%>
- <%= t'browse.not_found.sorry', :type=> browse_not_found_type[@type] , :id => params[:id] %>
+ <%= t '.sorry', :type=> browse_not_found_type[@type] , :id => params[:id] %>
diff --git a/app/views/browse/note.html.erb b/app/views/browse/note.html.erb
index 1bacd27d6..ac0ba9a23 100644
--- a/app/views/browse/note.html.erb
+++ b/app/views/browse/note.html.erb
@@ -1,12 +1,12 @@
-<% set_title(t('browse.note.title', :id => @note.id)) %>
+<% set_title(t('.title', :id => @note.id)) %>
- <%= t "browse.note.#{@note.status}_title", :note_name => @note.id %>
+ <%= t ".#{@note.status}_title", :note_name => @note.id %>
-
<%= t('browse.note.description') %>
+
<%= t('.description') %>
<%= h(@note_comments.first.body.to_html) %>
diff --git a/app/views/browse/query.html.erb b/app/views/browse/query.html.erb
index 629d84c05..8b07adfc2 100644
--- a/app/views/browse/query.html.erb
+++ b/app/views/browse/query.html.erb
@@ -1,22 +1,22 @@
-<% set_title(t "browse.query.title") %>
+<% set_title(t ".title") %>
- <%= t "browse.query.title" %>
+ <%= t ".title" %>
-
<%= t("browse.query.introduction") %>
+
<%= t(".introduction") %>
-
<%= t("browse.query.nearby") %>
+
<%= t(".nearby") %>
<%= image_tag "searching.gif", :class => "loader" %>
-
<%= t("browse.query.enclosing") %>
+
<%= t(".enclosing") %>
<%= image_tag "searching.gif", :class => "loader" %>
diff --git a/app/views/browse/timeout.html.erb b/app/views/browse/timeout.html.erb
index a624bf0a6..de102e60f 100644
--- a/app/views/browse/timeout.html.erb
+++ b/app/views/browse/timeout.html.erb
@@ -1,12 +1,12 @@
<%
browse_timeout_type = {
- 'node' => I18n.t('browse.timeout.type.node'),
- 'way' => I18n.t('browse.timeout.type.way'),
- 'relation' => I18n.t('browse.timeout.type.relation'),
- 'changeset' => I18n.t('browse.timeout.type.changeset'),
+ 'node' => I18n.t('.type.node'),
+ 'way' => I18n.t('.type.way'),
+ 'relation' => I18n.t('.type.relation'),
+ 'changeset' => I18n.t('.type.changeset'),
};
%>
- <%= t'browse.timeout.sorry', :type=> browse_timeout_type[@type] , :id => params[:id] %>
+ <%= t '.sorry', :type=> browse_timeout_type[@type] , :id => params[:id] %>
diff --git a/app/views/changeset/list.html.erb b/app/views/changeset/list.html.erb
index c44891251..8dcc121c5 100644
--- a/app/views/changeset/list.html.erb
+++ b/app/views/changeset/list.html.erb
@@ -4,14 +4,14 @@
<% if @edits.size == 20 -%>
- <%= link_to t('changeset.list.load_more'), url_for(@params.merge(:max_id => @edits.last.id - 1)), :class => "button load_more" %>
+ <%= link_to t('.load_more'), url_for(@params.merge(:max_id => @edits.last.id - 1)), :class => "button load_more" %>
<%= image_tag "searching.gif", :class => "loader", :style => "display: none;" %>
<% end -%>
<% elsif params[:bbox] %>
-
<%= t(params[:max_id] ? 'changeset.list.no_more_area' : 'changeset.list.empty_area') %>
+
<%= t(params[:max_id] ? '.no_more_area' : '.empty_area') %>
<% elsif params[:display_name] %>
-
<%= t(params[:max_id] ? 'changeset.list.no_more_user' : 'changeset.list.empty_user') %>
+
<%= t(params[:max_id] ? '.no_more_user' : '.empty_user') %>
<% else %>
-
<%= t(params[:max_id] ? 'changeset.list.no_more' : 'changeset.list.empty') %>
+
<%= t(params[:max_id] ? '.no_more' : '.empty') %>
<% end %>
diff --git a/app/views/changeset/timeout.atom.builder b/app/views/changeset/timeout.atom.builder
index c878905e6..b5eeeed4a 100644
--- a/app/views/changeset/timeout.atom.builder
+++ b/app/views/changeset/timeout.atom.builder
@@ -6,7 +6,7 @@ atom_feed(:language => I18n.locale, :schema_date => 2009,
feed.subtitle :type => "xhtml" do |xhtml|
xhtml.p do |p|
- p << t("changeset.timeout.sorry")
+ p << t(".sorry")
end
end
end
diff --git a/app/views/changeset/timeout.html.erb b/app/views/changeset/timeout.html.erb
index 3ba59fae7..84432bc8d 100644
--- a/app/views/changeset/timeout.html.erb
+++ b/app/views/changeset/timeout.html.erb
@@ -1 +1 @@
-
<%= t'changeset.timeout.sorry' %>
\ No newline at end of file
+
<%= t '.sorry' %>
diff --git a/app/views/diary_entry/_diary_comment.html.erb b/app/views/diary_entry/_diary_comment.html.erb
index 43f8cbbc1..11998ad82 100644
--- a/app/views/diary_entry/_diary_comment.html.erb
+++ b/app/views/diary_entry/_diary_comment.html.erb
@@ -1,8 +1,8 @@
diff --git a/app/views/diary_entry/_diary_entry.html.erb b/app/views/diary_entry/_diary_entry.html.erb
index 6b585b3f3..37e70f06d 100644
--- a/app/views/diary_entry/_diary_entry.html.erb
+++ b/app/views/diary_entry/_diary_entry.html.erb
@@ -7,7 +7,7 @@
<%= link_to h(diary_entry.title), :action => 'view', :display_name => diary_entry.user.display_name, :id => diary_entry.id %>
- <%= raw(t 'diary_entry.diary_entry.posted_by', :link_user => (link_to h(diary_entry.user.display_name), user_path(diary_entry.user)), :created => l(diary_entry.created_at, :format => :blog), :language_link => (link_to h(diary_entry.language.name), :controller => 'diary_entry', :action => 'list', :display_name => nil, :language => diary_entry.language_code)) %>
+ <%= raw(t '.posted_by', :link_user => (link_to h(diary_entry.user.display_name), user_path(diary_entry.user)), :created => l(diary_entry.created_at, :format => :blog), :language_link => (link_to h(diary_entry.language.name), :controller => 'diary_entry', :action => 'list', :display_name => nil, :language => diary_entry.language_code)) %>
@@ -22,17 +22,17 @@
<% if params[:action] == 'list' %>
- <%= link_to t('diary_entry.diary_entry.comment_link'), :action => 'view', :display_name => diary_entry.user.display_name, :id => diary_entry.id, :anchor => 'newcomment' %>
- <%= link_to t('diary_entry.diary_entry.reply_link'), :controller => 'message', :action => 'new', :display_name => diary_entry.user.display_name, :message => { :title => "Re: #{diary_entry.title}" } %>
- <%= link_to t('diary_entry.diary_entry.comment_count', :count => diary_entry.visible_comments.count), :action => 'view', :display_name => diary_entry.user.display_name, :id => diary_entry.id, :anchor => 'comments' %>
+ <%= link_to t('.comment_link'), :action => 'view', :display_name => diary_entry.user.display_name, :id => diary_entry.id, :anchor => 'newcomment' %>
+ <%= link_to t('.reply_link'), :controller => 'message', :action => 'new', :display_name => diary_entry.user.display_name, :message => { :title => "Re: #{diary_entry.title}" } %>
+ <%= link_to t('.comment_count', :count => diary_entry.visible_comments.count), :action => 'view', :display_name => diary_entry.user.display_name, :id => diary_entry.id, :anchor => 'comments' %>
<% end %>
<%= if_user(diary_entry.user, :li) do %>
- <%= link_to t('diary_entry.diary_entry.edit_link'), :action => 'edit', :display_name => diary_entry.user.display_name, :id => diary_entry.id %>
+ <%= link_to t('.edit_link'), :action => 'edit', :display_name => diary_entry.user.display_name, :id => diary_entry.id %>
<% end %>
<%= if_administrator(:li) do %>
- <%= link_to t('diary_entry.diary_entry.hide_link'), hide_diary_entry_path(:display_name => diary_entry.user.display_name, :id => diary_entry.id), :method => :post, :data => { :confirm => t('diary_entry.diary_entry.confirm') } %>
+ <%= link_to t('.hide_link'), hide_diary_entry_path(:display_name => diary_entry.user.display_name, :id => diary_entry.id), :method => :post, :data => { :confirm => t('.confirm') } %>
<% end %>
diff --git a/app/views/diary_entry/_location.html.erb b/app/views/diary_entry/_location.html.erb
index a5db0cdca..6828cd4dc 100644
--- a/app/views/diary_entry/_location.html.erb
+++ b/app/views/diary_entry/_location.html.erb
@@ -1,4 +1,4 @@
-<%= t 'diary_entry.location.location' %>
+<%= t '.location' %>
">
diff --git a/app/views/diary_entry/comments.html.erb b/app/views/diary_entry/comments.html.erb
index 4e0350896..7283a8ee1 100644
--- a/app/views/diary_entry/comments.html.erb
+++ b/app/views/diary_entry/comments.html.erb
@@ -1,24 +1,24 @@
<% content_for :heading do %>
- <%= t('diary_entry.comments.has_commented_on', :display_name => @user.display_name) %>
+ <%= t('.has_commented_on', :display_name => @user.display_name) %>
<% end %>
- <%= t 'diary_entry.comments.post' %>
- <%= t 'diary_entry.comments.when' %>
- <%= t 'diary_entry.comments.comment' %>
+ <%= t '.post' %>
+ <%= t '.when' %>
+ <%= t '.comment' %>
<% @comments.each do |comment| -%>
<% cl = cycle('table0', 'table1') %>
<%= link_to comment.diary_entry.title, :action => :view, :display_name => comment.diary_entry.user.display_name, :id => comment.diary_entry.id %>
- <%= t 'diary_entry.comments.ago', :ago => time_ago_in_words(comment.created_at) %>
+ <%= t '.ago', :ago => time_ago_in_words(comment.created_at) %>
<%= comment.body.to_html %>
<% end -%>
- <%= link_to t('diary_entry.comments.older_comments') , { :page => @comment_pages.current.next} if @comment_pages.current.next %>
- <%= link_to t('diary_entry.comments.newer_comments'), { :page => @comment_pages.current.previous } if @comment_pages.current.previous %>
+ <%= link_to t('.older_comments') , { :page => @comment_pages.current.next} if @comment_pages.current.next %>
+ <%= link_to t('.newer_comments'), { :page => @comment_pages.current.previous } if @comment_pages.current.previous %>
diff --git a/app/views/diary_entry/edit.html.erb b/app/views/diary_entry/edit.html.erb
index f29dc30ff..d408938e5 100644
--- a/app/views/diary_entry/edit.html.erb
+++ b/app/views/diary_entry/edit.html.erb
@@ -12,32 +12,32 @@
- <%= t 'diary_entry.edit.subject' -%>
+ <%= t '.subject' -%>
<%= f.text_field :title, :class => "richtext_title" %>
- <%= t 'diary_entry.edit.body' -%>
+ <%= t '.body' -%>
<%= richtext_area :diary_entry, :body, :cols => 80, :rows => 20, :format => @diary_entry.body_format %>
- <%= t 'diary_entry.edit.language' -%>
+ <%= t '.language' -%>
<%= f.collection_select :language_code, Language.order(:english_name), :code, :name %>
- <%= t 'diary_entry.edit.location' -%>
+ <%= t '.location' -%>
<%= content_tag "div", "", :id => "map", :data => {:lat => @lat, :lon => @lon, :zoom => @zoom} %>
@@ -45,7 +45,7 @@
<% if action_name == 'new' %>
<%= submit_tag t('diary_entry.new.publish_button') %>
<% else %>
- <%= submit_tag t('diary_entry.edit.save_button') %>
+ <%= submit_tag t('.save_button') %>
<% end %>
<% end %>
diff --git a/app/views/diary_entry/list.html.erb b/app/views/diary_entry/list.html.erb
index e6e304ead..8dda82b19 100644
--- a/app/views/diary_entry/list.html.erb
+++ b/app/views/diary_entry/list.html.erb
@@ -12,11 +12,11 @@
<% if @user %>
<%= if_user(@user) do %>
- <%= link_to image_tag("new.png", :class => "small_icon", :border=>0) + t('diary_entry.list.new'), {:controller => 'diary_entry', :action => 'new'}, {:title => t('diary_entry.list.new_title')} %>
+ <%= link_to image_tag("new.png", :class => "small_icon", :border=>0) + t('.new'), {:controller => 'diary_entry', :action => 'new'}, {:title => t('.new_title')} %>
<% end %>
<% else %>
<%= if_logged_in do %>
- <%= link_to image_tag("new.png", :class => "small_icon", :border=>0) + t('diary_entry.list.new'), {:controller => 'diary_entry', :action => 'new'}, {:title => t('diary_entry.list.new_title')} %>
+ <%= link_to image_tag("new.png", :class => "small_icon", :border=>0) + t('.new'), {:controller => 'diary_entry', :action => 'new'}, {:title => t('.new_title')} %>
<% end %>
<% end %>
@@ -24,9 +24,9 @@
<% end %>
<% if @entries.empty? %>
- <%= t 'diary_entry.list.no_entries' %>
+ <%= t '.no_entries' %>
<% else %>
- <%= t 'diary_entry.list.recent_entries' %>
+ <%= t '.recent_entries' %>
<% if @user %>
<%= render :partial => 'diary_entry', :collection => @entries %>
@@ -36,17 +36,17 @@
<% end %>
diff --git a/app/views/diary_entry/no_such_entry.html.erb b/app/views/diary_entry/no_such_entry.html.erb
index ff9a811c7..4fb5ca49d 100644
--- a/app/views/diary_entry/no_such_entry.html.erb
+++ b/app/views/diary_entry/no_such_entry.html.erb
@@ -1,5 +1,5 @@
<% content_for :heading do %>
- <%= t 'diary_entry.no_such_entry.heading', :id => h(params[:id]) %>
+ <%= t '.heading', :id => h(params[:id]) %>
<% end %>
-<%= t 'diary_entry.no_such_entry.body', :id => h(params[:id]) %>
+<%= t '.body', :id => h(params[:id]) %>
diff --git a/app/views/diary_entry/view.html.erb b/app/views/diary_entry/view.html.erb
index 3c2264d3e..3e8fbe990 100644
--- a/app/views/diary_entry/view.html.erb
+++ b/app/views/diary_entry/view.html.erb
@@ -1,7 +1,7 @@
<% content_for :heading do %>
<% end %>
@@ -13,13 +13,13 @@
<%= render :partial => 'diary_comment', :collection => @entry.visible_comments %>
<%= if_logged_in(:div) do %>
-
+
<%= error_messages_for 'diary_comment' %>
<%= form_for :diary_comment, :url => { :action => 'comment' } do |f| %>
<%= richtext_area :diary_comment, :body, :cols => 80, :rows => 15 %>
- <%= submit_tag t('diary_entry.view.save_button') %>
+ <%= submit_tag t('.save_button') %>
<% end %>
<% if current_user and @entry.subscribers.exists?(current_user.id) %>
<%= link_to t('javascripts.changesets.show.unsubscribe'), diary_entry_unsubscribe_path(:display_name => @entry.user.display_name, :id => @entry.id), :method => :post, :class => :button %>
@@ -29,7 +29,7 @@
<% end %>
<%= if_not_logged_in(:div) do %>
-
+
<% end %>
<% content_for :auto_discovery_link_tag do -%>
diff --git a/app/views/geocoder/results.html.erb b/app/views/geocoder/results.html.erb
index d990b7f0e..052b8822e 100644
--- a/app/views/geocoder/results.html.erb
+++ b/app/views/geocoder/results.html.erb
@@ -1,5 +1,5 @@
<% if @results.empty? %>
- <%= t 'geocoder.results.no_results' %>
+ <%= t '.no_results' %>
<% else %>
<% @results.each do |result| %>
@@ -8,7 +8,7 @@
<% if @more_params %>
- <%= link_to t('geocoder.results.more_results'), url_for(@more_params), :class => "button load_more" %>
+ <%= link_to t('.more_results'), url_for(@more_params), :class => "button load_more" %>
<%= image_tag "searching.gif", :class => "loader", :style => "display: none;" %>
<% end %>
diff --git a/app/views/geocoder/search.html.erb b/app/views/geocoder/search.html.erb
index 21484d4c0..2d2a25c97 100644
--- a/app/views/geocoder/search.html.erb
+++ b/app/views/geocoder/search.html.erb
@@ -3,7 +3,7 @@
<%= t('site.sidebar.search_results') %>
<% @sources.each do |source| %>
- <%= raw(t "geocoder.search.title.#{source}") %>
+ <%= raw(t ".title.#{source}") %>
">
<%= image_tag "searching.gif", :class => "loader" %>
diff --git a/app/views/message/_message_summary.html.erb b/app/views/message/_message_summary.html.erb
index 5e1f17ef4..43a6a4bbf 100644
--- a/app/views/message/_message_summary.html.erb
+++ b/app/views/message/_message_summary.html.erb
@@ -2,7 +2,7 @@
<%= link_to h(message_summary.sender.display_name), user_path(message_summary.sender) %>
<%= link_to h(message_summary.title), :controller => 'message', :action => 'read', :message_id => message_summary.id %>
<%= l message_summary.sent_on, :format => :friendly %>
- <%= button_to t('message.message_summary.unread_button'), {:controller => 'message', :action => 'mark', :message_id => message_summary.id, :mark => 'unread'}, { :remote => true } %>
- <%= button_to t('message.message_summary.read_button'), {:controller => 'message', :action => 'mark', :message_id => message_summary.id, :mark => 'read'}, { :remote => true } %>
- <%= button_to t('message.message_summary.delete_button'), {:controller => 'message', :action => 'delete', :message_id => message_summary.id, :referer => request.fullpath}, { :remote => true } %>
+ <%= button_to t('.unread_button'), {:controller => 'message', :action => 'mark', :message_id => message_summary.id, :mark => 'unread'}, { :remote => true } %>
+ <%= button_to t('.read_button'), {:controller => 'message', :action => 'mark', :message_id => message_summary.id, :mark => 'read'}, { :remote => true } %>
+ <%= button_to t('.delete_button'), {:controller => 'message', :action => 'delete', :message_id => message_summary.id, :referer => request.fullpath}, { :remote => true } %>
diff --git a/app/views/message/_sent_message_summary.html.erb b/app/views/message/_sent_message_summary.html.erb
index 6b4637708..8b6201247 100644
--- a/app/views/message/_sent_message_summary.html.erb
+++ b/app/views/message/_sent_message_summary.html.erb
@@ -2,5 +2,5 @@
<%= link_to h(sent_message_summary.recipient.display_name), user_path(sent_message_summary.recipient) %>
<%= link_to h(sent_message_summary.title), :controller => 'message', :action => 'read', :message_id => sent_message_summary.id %>
<%= l sent_message_summary.sent_on, :format => :friendly %>
- <%= button_to t('message.sent_message_summary.delete_button'), :controller => 'message', :action => 'delete', :message_id => sent_message_summary.id, :referer => request.fullpath %>
+ <%= button_to t('.delete_button'), :controller => 'message', :action => 'delete', :message_id => sent_message_summary.id, :referer => request.fullpath %>
diff --git a/app/views/message/inbox.html.erb b/app/views/message/inbox.html.erb
index f9fc31149..56ed53c6d 100644
--- a/app/views/message/inbox.html.erb
+++ b/app/views/message/inbox.html.erb
@@ -1,5 +1,5 @@
<% content_for :heading do %>
- <%= t'message.inbox.my_inbox'%>/<%= link_to t('message.inbox.outbox'), outbox_path(current_user.display_name) %>
+ <%= t '.my_inbox'%>/<%= link_to t('.outbox'), outbox_path(current_user.display_name) %>
<% end %>
<%= render :partial => "message_count" %>
@@ -8,9 +8,9 @@
- <%= t'message.inbox.from' %>
- <%= t'message.inbox.subject' %>
- <%= t'message.inbox.date' %>
+ <%= t '.from' %>
+ <%= t '.subject' %>
+ <%= t '.date' %>
@@ -20,5 +20,5 @@
<% else %>
- <%= raw(t'message.inbox.no_messages_yet', :people_mapping_nearby_link => link_to(t('message.inbox.people_mapping_nearby'), user_path(current_user))) %>
+ <%= raw(t '.no_messages_yet', :people_mapping_nearby_link => link_to(t('.people_mapping_nearby'), user_path(current_user))) %>
<% end %>
diff --git a/app/views/message/new.html.erb b/app/views/message/new.html.erb
index 03454767a..44e919aa9 100644
--- a/app/views/message/new.html.erb
+++ b/app/views/message/new.html.erb
@@ -1,5 +1,5 @@
<% content_for :heading do %>
- <%= raw(t'message.new.send_message_to', :name => link_to(h(@message.recipient.display_name), user_path(@message.recipient))) %>
+ <%= raw(t '.send_message_to', :name => link_to(h(@message.recipient.display_name), user_path(@message.recipient))) %>
<% end %>
<%= error_messages_for 'message' %>
@@ -7,16 +7,16 @@
<%= form_for :message, :html => { :class => 'standard-form' }, :url => { :action => "new", :display_name => @message.recipient.display_name } do |f| %>
- <%= t'message.new.subject' %>
+ <%= t '.subject' %>
<%= f.text_field :title, :size => 60, :class => "richtext_title" %>
- <%= t'message.new.body' %>
+ <%= t '.body' %>
<%= richtext_area :message, :body, :cols => 80, :rows => 20 %>
- <%= submit_tag t('message.new.send_button') %>
- <%= link_to t('message.new.back_to_inbox'), { :controller => 'message', :action => 'inbox', :display_name => current_user.display_name }, :class => 'deemphasize button' %>
+ <%= submit_tag t('.send_button') %>
+ <%= link_to t('.back_to_inbox'), { :controller => 'message', :action => 'inbox', :display_name => current_user.display_name }, :class => 'deemphasize button' %>
<% end %>
diff --git a/app/views/message/no_such_message.html.erb b/app/views/message/no_such_message.html.erb
index 9bf6ddbea..fd3b9075b 100644
--- a/app/views/message/no_such_message.html.erb
+++ b/app/views/message/no_such_message.html.erb
@@ -1,5 +1,5 @@
<% content_for :heading do %>
- <%= t'message.no_such_message.heading' %>
+ <%= t '.heading' %>
<% end %>
-<%= t'message.no_such_message.body' %>
+<%= t '.body' %>
diff --git a/app/views/message/outbox.html.erb b/app/views/message/outbox.html.erb
index a3a0dbbdf..38639cd99 100644
--- a/app/views/message/outbox.html.erb
+++ b/app/views/message/outbox.html.erb
@@ -1,16 +1,16 @@
<% content_for :heading do %>
- <%= raw(t'message.outbox.my_inbox', :inbox_link => link_to(t('message.outbox.inbox'), inbox_path(current_user.display_name))) %>/<%= t'message.outbox.outbox' %>
+ <%= raw(t '.my_inbox', :inbox_link => link_to(t('.inbox'), inbox_path(current_user.display_name))) %>/<%= t'.outbox' %>
<% end %>
-<%= t'message.outbox.messages', :count => current_user.sent_messages.size %>
+<%= t '.messages', :count => current_user.sent_messages.size %>
<% if current_user.sent_messages.size > 0 %>
- <%= t'message.outbox.to' %>
- <%= t'message.outbox.subject' %>
- <%= t'message.outbox.date' %>
+ <%= t '.to' %>
+ <%= t '.subject' %>
+ <%= t '.date' %>
@@ -19,5 +19,5 @@
<% else %>
- <%= raw(t'message.outbox.no_sent_messages', :people_mapping_nearby_link => link_to(t('message.outbox.people_mapping_nearby'), user_path(current_user))) %>
+ <%= raw(t '.no_sent_messages', :people_mapping_nearby_link => link_to(t('.people_mapping_nearby'), user_path(current_user))) %>
<% end %>
diff --git a/app/views/message/read.html.erb b/app/views/message/read.html.erb
index c23eabe95..668094d33 100644
--- a/app/views/message/read.html.erb
+++ b/app/views/message/read.html.erb
@@ -14,9 +14,9 @@
<%= @message.body.to_html %>
- <%= button_to t('message.read.reply_button'), {:controller => 'message', :action => 'reply', :message_id => @message.id}, :class => 'reply-button' %>
- <%= button_to t('message.read.unread_button'), {:controller => 'message', :action => 'mark', :message_id => @message.id, :mark => 'unread'}, :class => 'mark-unread-button' %>
- <%= button_to t('message.read.delete_button'), {:controller => 'message', :action => 'delete', :message_id => @message.id}, :class => 'delete-button' %>
+ <%= button_to t('.reply_button'), {:controller => 'message', :action => 'reply', :message_id => @message.id}, :class => 'reply-button' %>
+ <%= button_to t('.unread_button'), {:controller => 'message', :action => 'mark', :message_id => @message.id, :mark => 'unread'}, :class => 'mark-unread-button' %>
+ <%= button_to t('.delete_button'), {:controller => 'message', :action => 'delete', :message_id => @message.id}, :class => 'delete-button' %>
<% else %>
@@ -36,5 +36,5 @@
<% end %>
- <%= link_to t('message.read.back'), {:controller => 'message', :action => 'outbox', :display_name => current_user.display_name }, :class => "button deemphasize" %>
+ <%= link_to t('.back'), {:controller => 'message', :action => 'outbox', :display_name => current_user.display_name }, :class => "button deemphasize" %>
diff --git a/app/views/notifier/changeset_comment_notification.html.erb b/app/views/notifier/changeset_comment_notification.html.erb
index 80f9d8aa1..04bafb0d4 100644
--- a/app/views/notifier/changeset_comment_notification.html.erb
+++ b/app/views/notifier/changeset_comment_notification.html.erb
@@ -1,16 +1,16 @@
- <%= t 'notifier.changeset_comment_notification.hi', :to_user => @to_user %>
+ <%= t '.hi', :to_user => @to_user %>
<% if @owner %>
- <%= raw t "notifier.changeset_comment_notification.commented.your_changeset", :commenter => link_to_user(@commenter), :time => @time %>
+ <%= raw t ".commented.your_changeset", :commenter => link_to_user(@commenter), :time => @time %>
<% else %>
- <%= raw t "notifier.changeset_comment_notification.commented.commented_changeset", :commenter => link_to_user(@commenter), :time => @time, :changeset_author => @changeset_author %>
+ <%= raw t ".commented.commented_changeset", :commenter => link_to_user(@commenter), :time => @time, :changeset_author => @changeset_author %>
<% end %>
<% if @changeset_comment %>
- <%= raw t "notifier.changeset_comment_notification.commented.partial_changeset_with_comment", :changeset_comment => content_tag("em", @changeset_comment) %>
+ <%= raw t ".commented.partial_changeset_with_comment", :changeset_comment => content_tag("em", @changeset_comment) %>
<% else %>
- <%= t "notifier.changeset_comment_notification.commented.partial_changeset_without_comment" %>
+ <%= t ".commented.partial_changeset_without_comment" %>
<% end %>
@@ -19,11 +19,11 @@
<% end %>
- <%= raw t 'notifier.changeset_comment_notification.details', :url => link_to(@changeset_url, @changeset_url) %>
+ <%= raw t '.details', :url => link_to(@changeset_url, @changeset_url) %>
<% content_for :footer do %>
- <%= raw t 'notifier.changeset_comment_notification.unsubscribe', :url => link_to(@changeset_url, @changeset_url, :style => "color: #222") %>
+ <%= raw t '.unsubscribe', :url => link_to(@changeset_url, @changeset_url, :style => "color: #222") %>
<% end %>
diff --git a/app/views/notifier/changeset_comment_notification.text.erb b/app/views/notifier/changeset_comment_notification.text.erb
index 9919f2103..ce9c0099a 100644
--- a/app/views/notifier/changeset_comment_notification.text.erb
+++ b/app/views/notifier/changeset_comment_notification.text.erb
@@ -1,20 +1,20 @@
-<%= t 'notifier.changeset_comment_notification.hi', :to_user => @to_user %>
+<%= t '.hi', :to_user => @to_user %>
<% if @owner %>
-<%= t "notifier.changeset_comment_notification.commented.your_changeset", :commenter => @commenter, :time => @time %>
+<%= t ".commented.your_changeset", :commenter => @commenter, :time => @time %>
<% else %>
-<%= t "notifier.changeset_comment_notification.commented.commented_changeset", :commenter => @commenter, :time => @time, :changeset_author => @changeset_author %>
+<%= t ".commented.commented_changeset", :commenter => @commenter, :time => @time, :changeset_author => @changeset_author %>
<% end %>
<% if @changeset_comment %>
-<%= t "notifier.changeset_comment_notification.commented.partial_changeset_with_comment", :changeset_comment => @changeset_comment %>
+<%= t ".commented.partial_changeset_with_comment", :changeset_comment => @changeset_comment %>
<% else %>
-<%= t "notifier.changeset_comment_notification.commented.partial_changeset_without_comment" %>
+<%= t ".commented.partial_changeset_without_comment" %>
<% end %>
==
<%= @comment.to_text %>
==
-<%= t 'notifier.changeset_comment_notification.details', :url => @changeset_url %>
+<%= t '.details', :url => @changeset_url %>
-<%= t 'notifier.changeset_comment_notification.unsubscribe', :url => @changeset_url %>
+<%= t '.unsubscribe', :url => @changeset_url %>
diff --git a/app/views/notifier/diary_comment_notification.html.erb b/app/views/notifier/diary_comment_notification.html.erb
index 73bfe9a33..163223b44 100644
--- a/app/views/notifier/diary_comment_notification.html.erb
+++ b/app/views/notifier/diary_comment_notification.html.erb
@@ -1,8 +1,8 @@
- <%= t'notifier.diary_comment_notification.hi', :to_user => @to_user %>
+ <%= t '.hi', :to_user => @to_user %>
- <%= raw t'notifier.diary_comment_notification.header', :from_user => link_to_user(@from_user), :subject => content_tag("em", @title) %>
+ <%= raw t '.header', :from_user => link_to_user(@from_user), :subject => content_tag("em", @title) %>
<%= message_body do %>
@@ -10,7 +10,7 @@
<% end %>
<% content_for :footer do %>
- <%= raw t'notifier.diary_comment_notification.footer',
+
<%= raw t '.footer',
:readurl => link_to(@readurl, @readurl) + tag(:br),
:commenturl => link_to(@commenturl, @commenturl) + tag(:br),
:replyurl => link_to(@replyurl, @replyurl)
diff --git a/app/views/notifier/diary_comment_notification.text.erb b/app/views/notifier/diary_comment_notification.text.erb
index 7d112a42b..b86c303ae 100644
--- a/app/views/notifier/diary_comment_notification.text.erb
+++ b/app/views/notifier/diary_comment_notification.text.erb
@@ -1,9 +1,9 @@
-<%= t'notifier.diary_comment_notification.hi', :to_user => @to_user %>
+<%= t '.hi', :to_user => @to_user %>
-<%= t'notifier.diary_comment_notification.header', :from_user => @from_user, :subject => @title %>
+<%= t '.header', :from_user => @from_user, :subject => @title %>
==
<%= raw @text.to_text %>
==
-<%= t'notifier.diary_comment_notification.footer', :readurl => @readurl, :commenturl => @commenturl, :replyurl => @replyurl %>
+<%= t '.footer', :readurl => @readurl, :commenturl => @commenturl, :replyurl => @replyurl %>
diff --git a/app/views/notifier/friend_notification.html.erb b/app/views/notifier/friend_notification.html.erb
index cfea97195..f6774f2dc 100644
--- a/app/views/notifier/friend_notification.html.erb
+++ b/app/views/notifier/friend_notification.html.erb
@@ -1,9 +1,9 @@
-
<%= t 'notifier.friend_notification.had_added_you', :user => @friend.befriender.display_name %>
+<%= t '.had_added_you', :user => @friend.befriender.display_name %>
<%= message_body do %>
- <%= raw t 'notifier.friend_notification.see_their_profile', :userurl => link_to(@viewurl, @viewurl) %>
+ <%= raw t '.see_their_profile', :userurl => link_to(@viewurl, @viewurl) %>
<% unless @friend.befriendee.is_friends_with?(@friend.befriender) -%>
- <%= raw t 'notifier.friend_notification.befriend_them', :befriendurl => link_to(@friendurl, @friendurl) %>
+ <%= raw t '.befriend_them', :befriendurl => link_to(@friendurl, @friendurl) %>
<% end -%>
<% end %>
diff --git a/app/views/notifier/friend_notification.text.erb b/app/views/notifier/friend_notification.text.erb
index ae89a4136..e1db966ab 100644
--- a/app/views/notifier/friend_notification.text.erb
+++ b/app/views/notifier/friend_notification.text.erb
@@ -1,7 +1,7 @@
-<%= t 'notifier.friend_notification.had_added_you', :user => @friend.befriender.display_name %>
+<%= t '.had_added_you', :user => @friend.befriender.display_name %>
-<%= t 'notifier.friend_notification.see_their_profile', :userurl => @viewurl %>
+<%= t '.see_their_profile', :userurl => @viewurl %>
<% unless @friend.befriendee.is_friends_with?(@friend.befriender) -%>
-<%= t 'notifier.friend_notification.befriend_them', :befriendurl => @friendurl %>
+<%= t '.befriend_them', :befriendurl => @friendurl %>
<% end -%>
diff --git a/app/views/notifier/message_notification.html.erb b/app/views/notifier/message_notification.html.erb
index 97a352a49..4e4b2ea9a 100644
--- a/app/views/notifier/message_notification.html.erb
+++ b/app/views/notifier/message_notification.html.erb
@@ -1,8 +1,8 @@
- <%= t'notifier.message_notification.hi', :to_user => @to_user %>
+ <%= t '.hi', :to_user => @to_user %>
- <%= raw t'notifier.message_notification.header',
+ <%= raw t '.header',
:from_user => link_to_user(@from_user),
:subject => content_tag("em", @title)
%>
@@ -14,7 +14,7 @@
<% content_for :footer do %>
- <%= t'notifier.message_notification.footer_html',
+ <%= t '.footer_html',
:readurl => link_to(@readurl, @readurl) + tag(:br),
:replyurl => link_to(@replyurl, @replyurl)
%>
diff --git a/app/views/notifier/message_notification.text.erb b/app/views/notifier/message_notification.text.erb
index c006941d9..b3a74bb88 100644
--- a/app/views/notifier/message_notification.text.erb
+++ b/app/views/notifier/message_notification.text.erb
@@ -1,9 +1,9 @@
-<%= raw t'notifier.message_notification.hi', :to_user => @to_user %>
+<%= raw t '.hi', :to_user => @to_user %>
-<%= raw t'notifier.message_notification.header', :from_user => @from_user, :subject => @title %>
+<%= raw t '.header', :from_user => @from_user, :subject => @title %>
==
<%= raw @text.to_text %>
==
-<%= word_wrap(t'notifier.message_notification.footer_html', :readurl => @readurl, :replyurl => @replyurl) %>
+<%= word_wrap(t '.footer_html', :readurl => @readurl, :replyurl => @replyurl) %>
diff --git a/app/views/notifier/note_comment_notification.html.erb b/app/views/notifier/note_comment_notification.html.erb
index 909bffaa6..835168583 100644
--- a/app/views/notifier/note_comment_notification.html.erb
+++ b/app/views/notifier/note_comment_notification.html.erb
@@ -1,9 +1,9 @@
-
<%= t 'notifier.note_comment_notification.greeting' %>
+<%= t '.greeting' %>
<% if @owner %>
- <%= raw t "notifier.note_comment_notification.#{@event}.your_note", :commenter => link_to_user(@commenter), :place => @place %>
+ <%= raw t ".#{@event}.your_note", :commenter => link_to_user(@commenter), :place => @place %>
<% else %>
- <%= raw t "notifier.note_comment_notification.#{@event}.commented_note", :commenter => link_to_user(@commenter), :place => @place %>
+ <%= raw t ".#{@event}.commented_note", :commenter => link_to_user(@commenter), :place => @place %>
<% end %>
<% unless @comment.empty? %>
@@ -12,4 +12,4 @@
<% end %>
<% end %>
-<%= raw t 'notifier.note_comment_notification.details', :url => link_to(@noteurl, @noteurl) %>
+<%= raw t '.details', :url => link_to(@noteurl, @noteurl) %>
diff --git a/app/views/notifier/note_comment_notification.text.erb b/app/views/notifier/note_comment_notification.text.erb
index 5924c8a9d..7014a5057 100644
--- a/app/views/notifier/note_comment_notification.text.erb
+++ b/app/views/notifier/note_comment_notification.text.erb
@@ -1,9 +1,9 @@
-<%= t 'notifier.note_comment_notification.greeting' %>
+<%= t '.greeting' %>
<% if @owner %>
-<%= t "notifier.note_comment_notification.#{@event}.your_note", :commenter => @commenter, :place => @place %>
+<%= t ".#{@event}.your_note", :commenter => @commenter, :place => @place %>
<% else %>
-<%= t "notifier.note_comment_notification.#{@event}.commented_note", :commenter => @commenter, :place => @place %>
+<%= t ".#{@event}.commented_note", :commenter => @commenter, :place => @place %>
<% end %>
<% unless @comment.empty? %>
@@ -12,4 +12,4 @@
==
<% end %>
-<%= t 'notifier.note_comment_notification.details', :url => @noteurl %>
+<%= t '.details', :url => @noteurl %>
diff --git a/app/views/notifier/signup_confirm.html.erb b/app/views/notifier/signup_confirm.html.erb
index 814deee91..a0e0079fc 100644
--- a/app/views/notifier/signup_confirm.html.erb
+++ b/app/views/notifier/signup_confirm.html.erb
@@ -1,9 +1,9 @@
-<%= t("notifier.signup_confirm.greeting") %>
+<%= t(".greeting") %>
-<%= t("notifier.signup_confirm.created", :site_url => SERVER_URL) %>
+<%= t(".created", :site_url => SERVER_URL) %>
-<%= t("notifier.signup_confirm.confirm") %>
+<%= t(".confirm") %>
<%= link_to @url, @url %>
-<%= t("notifier.signup_confirm.welcome") %>
+<%= t(".welcome") %>
diff --git a/app/views/notifier/signup_confirm.text.erb b/app/views/notifier/signup_confirm.text.erb
index aee44782d..e17056468 100644
--- a/app/views/notifier/signup_confirm.text.erb
+++ b/app/views/notifier/signup_confirm.text.erb
@@ -1,9 +1,9 @@
-<%= fp(t("notifier.signup_confirm.greeting")) %>
+<%= fp(t(".greeting")) %>
-<%= fp(t("notifier.signup_confirm.created", :site_url => SERVER_URL)) %>
+<%= fp(t(".created", :site_url => SERVER_URL)) %>
-<%= fp(t("notifier.signup_confirm.confirm")) %>
+<%= fp(t(".confirm")) %>
<%= @url %>
-<%= fp(t("notifier.signup_confirm.welcome")) %>
+<%= fp(t(".welcome")) %>
diff --git a/app/views/oauth_clients/_form.html.erb b/app/views/oauth_clients/_form.html.erb
index 96ab68ad7..bb0506671 100644
--- a/app/views/oauth_clients/_form.html.erb
+++ b/app/views/oauth_clients/_form.html.erb
@@ -1,29 +1,29 @@
\ No newline at end of file
+
diff --git a/app/views/oauth_clients/edit.html.erb b/app/views/oauth_clients/edit.html.erb
index 397849c44..2a5f99381 100644
--- a/app/views/oauth_clients/edit.html.erb
+++ b/app/views/oauth_clients/edit.html.erb
@@ -1,8 +1,8 @@
<% content_for :heading do %>
- <%= t'oauth_clients.edit.title' %>
+ <%= t '.title' %>
<% end %>
<%= form_for @client_application, :url => oauth_client_path(@client_application.user.display_name, @client_application), :html => { :method => :put } do |f| %>
<%= render :partial => "form", :locals => { :f => f } %>
- <%= submit_tag t'oauth_clients.edit.submit' %>
+ <%= submit_tag t '.submit' %>
<% end %>
diff --git a/app/views/oauth_clients/index.html.erb b/app/views/oauth_clients/index.html.erb
index f88d9316c..64a316718 100644
--- a/app/views/oauth_clients/index.html.erb
+++ b/app/views/oauth_clients/index.html.erb
@@ -1,13 +1,13 @@
<% content_for :heading do %>
- <%= t'oauth_clients.index.title' %>
+ <%= t '.title' %>
<% end %>
<% unless @tokens.empty? %>
-<%= t'oauth_clients.index.my_tokens' %>
-<%= t'oauth_clients.index.list_tokens' %>
+<%= t '.my_tokens' %>
+<%= t '.list_tokens' %>
- <%= t'oauth_clients.index.application' %>
- <%= t'oauth_clients.index.issued_at' %>
+ <%= t '.application' %>
+ <%= t '.issued_at' %>
<% @tokens.each do |token|%>
<%= content_tag_for :tr, token do %>
<%= link_to token.client_application.name, token.client_application.url %>
@@ -15,22 +15,22 @@
<%= form_tag :controller => 'oauth', :action => 'revoke' do %>
<%= hidden_field_tag 'token', token.token %>
- <%= submit_tag t('oauth_clients.index.revoke') %>
+ <%= submit_tag t('.revoke') %>
<% end %>
<% end %>
<% end %>
<% end %>
-<%= t'oauth_clients.index.my_apps' %>
+<%= t '.my_apps' %>
<% if @client_applications.empty? %>
-<%= raw(t('oauth_clients.index.no_apps', :oauth => "OAuth ")) %>
+<%= raw(t('.no_apps', :oauth => "OAuth ")) %>
<% else %>
-<%= t'oauth_clients.index.registered_apps' %>
+<%= t '.registered_apps' %>
<% @client_applications.each do |client|%>
<%= div_for client do %>
<%= link_to client.name, :action => :show, :id => client.id %>
<% end %>
<% end %>
<% end %>
-<%= link_to t('oauth_clients.index.register_new'), :action => :new %>
+<%= link_to t('.register_new'), :action => :new %>
diff --git a/app/views/oauth_clients/new.html.erb b/app/views/oauth_clients/new.html.erb
index 7542d77b5..b5767e6ca 100644
--- a/app/views/oauth_clients/new.html.erb
+++ b/app/views/oauth_clients/new.html.erb
@@ -1,10 +1,10 @@
<% content_for :heading do %>
- <%= t'oauth_clients.new.title' %>
+ <%= t '.title' %>
<% end %>
<%= form_for :client_application, :url => { :action => :create } do |f| %>
<%= render :partial => "form", :locals => { :f => f } %>
- <%= submit_tag t('oauth_clients.new.submit') %>
+ <%= submit_tag t('.submit') %>
<% end %>
diff --git a/app/views/oauth_clients/not_found.erb b/app/views/oauth_clients/not_found.erb
index d5c6ca755..fda9ab06d 100644
--- a/app/views/oauth_clients/not_found.erb
+++ b/app/views/oauth_clients/not_found.erb
@@ -1 +1 @@
-<%= t('oauth_clients.not_found.sorry', :type => @type) %>
+<%= t('.sorry', :type => @type) %>
diff --git a/app/views/oauth_clients/show.html.erb b/app/views/oauth_clients/show.html.erb
index a23ce082d..200fbc7be 100644
--- a/app/views/oauth_clients/show.html.erb
+++ b/app/views/oauth_clients/show.html.erb
@@ -1,33 +1,33 @@
<% content_for :heading do %>
- <%= t('oauth_clients.show.title', :app_name => @client_application.name) %>
+ <%= t('.title', :app_name => @client_application.name) %>
<% end %>
- <%= t'oauth_clients.show.key' %> <%=@client_application.key %>
+ <%= t '.key' %> <%=@client_application.key %>
- <%= t'oauth_clients.show.secret' %> <%=@client_application.secret %>
+ <%= t '.secret' %> <%=@client_application.secret %>
- <%= t'oauth_clients.show.url' %> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.request_token_path %>
+ <%= t '.url' %> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.request_token_path %>
- <%= t'oauth_clients.show.access_url' %> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.access_token_path %>
+ <%= t '.access_url' %> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.access_token_path %>
- <%= t'oauth_clients.show.authorize_url' %> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.authorize_path %>
+ <%= t '.authorize_url' %> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.authorize_path %>
-
<%= t'oauth_clients.show.requests' %>
+
<%= t '.requests' %>
-
<%= t'oauth_clients.show.support_notice' %>
+
<%= t '.support_notice' %>
- <%= button_to t('oauth_clients.show.edit'), edit_oauth_client_path(@client_application.user.display_name, @client_application), :method => :get, :class=> "oauth-edit" %>
- <%= button_to t('oauth_clients.show.delete'), oauth_client_path(@client_application.user.display_name, @client_application), :method => :delete, :data => { :confirm => t('oauth_clients.show.confirm') }, :class=> "oauth-delete deemphasize" %>
+ <%= button_to t('.edit'), edit_oauth_client_path(@client_application.user.display_name, @client_application), :method => :get, :class=> "oauth-edit" %>
+ <%= button_to t('.delete'), oauth_client_path(@client_application.user.display_name, @client_application), :method => :delete, :data => { :confirm => t('.confirm') }, :class=> "oauth-delete deemphasize" %>
diff --git a/app/views/trace/_description.html.erb b/app/views/trace/_description.html.erb
index 9b81283b2..30abbaba6 100644
--- a/app/views/trace/_description.html.erb
+++ b/app/views/trace/_description.html.erb
@@ -1,6 +1,6 @@
<%= image_tag(url_for(:controller => :trace, :action => :icon, :id => description.id, :display_name => description.user.display_name)) %>
<% if description.size -%>
-<%= t "trace.description.description_with_count", :count => description.size, :user => description.user.display_name %>
+<%= t ".description_with_count", :count => description.size, :user => description.user.display_name %>
<% else -%>
-<%= t "trace.description.description_without_count", :user => description.user.display_name %>
+<%= t ".description_without_count", :user => description.user.display_name %>
<% end -%>
diff --git a/app/views/trace/_trace.html.erb b/app/views/trace/_trace.html.erb
index ecadacc64..0847ddaf1 100644
--- a/app/views/trace/_trace.html.erb
+++ b/app/views/trace/_trace.html.erb
@@ -5,25 +5,25 @@
<% if trace.inserted %>
<% else %>
- <%= t'trace.trace.pending' %>
+ <%= t '.pending' %>
<% end %>
<% end %>
<%= link_to trace.name, {:controller => 'trace', :action => 'view', :display_name => trace.user.display_name, :id => trace.id} %>
...
<% if trace.inserted %>
- (<%= t'trace.trace.count_points', :count => trace.size.to_s.gsub(/(\d)(?=(\d{3})+$)/,'\1,') %>)
+ (<%= t '.count_points', :count => trace.size.to_s.gsub(/(\d)(?=(\d{3})+$)/,'\1,') %>)
<% end %>
- ... <%= t'trace.trace.ago', :time_in_words_ago => time_ago_in_words(trace.timestamp) %>
- <%= link_to_if trace.inserted?, t('trace.trace.map'), {:controller => 'site', :action => 'index', :mlat => trace.latitude, :mlon => trace.longitude, :anchor => "map=14/#{trace.latitude}/#{trace.longitude}"}, {:title => t('trace.trace.view_map')} %> /
- <%= link_to t('trace.trace.edit'), {:controller => 'site', :action => 'edit', :gpx => trace.id }, {:title => t('trace.trace.edit_map')} %>
- <%= t('trace.trace.' + trace.visibility) %>
+ ... <%= t '.ago', :time_in_words_ago => time_ago_in_words(trace.timestamp) %>
+ <%= link_to_if trace.inserted?, t('.map'), {:controller => 'site', :action => 'index', :mlat => trace.latitude, :mlon => trace.longitude, :anchor => "map=14/#{trace.latitude}/#{trace.longitude}"}, {:title => t('.view_map')} %> /
+ <%= link_to t('.edit'), {:controller => 'site', :action => 'edit', :gpx => trace.id }, {:title => t('.edit_map')} %>
+ <%= t('.' + trace.visibility) %>
<%= trace.description %>
- <%= t'trace.trace.by' %> <%=link_to h(trace.user.display_name), user_path(trace.user) %>
+ <%= t '.by' %> <%=link_to h(trace.user.display_name), user_path(trace.user) %>
<% if !trace.tags.empty? %>
- <%= t'trace.trace.in' %>
+ <%= t '.in' %>
<%= raw(trace.tags.collect { |tag| link_to_tag tag.tag }.join(", ")) %>
<% end %>
diff --git a/app/views/trace/_trace_optionals.html.erb b/app/views/trace/_trace_optionals.html.erb
index a20091c07..6f0c2130b 100644
--- a/app/views/trace/_trace_optionals.html.erb
+++ b/app/views/trace/_trace_optionals.html.erb
@@ -1,6 +1,6 @@
<% content_for :optionals do %>
-
<%= t'trace.trace_optionals.tags' %>
+
<%= t '.tags' %>
<% if @all_tags %>
<% @all_tags.each do |tag| %>
<%= link_to_tag tag %>
diff --git a/app/views/trace/_trace_paging_nav.html.erb b/app/views/trace/_trace_paging_nav.html.erb
index 10a563fb4..4f4b83701 100644
--- a/app/views/trace/_trace_paging_nav.html.erb
+++ b/app/views/trace/_trace_paging_nav.html.erb
@@ -2,17 +2,17 @@
<% if @traces.size > 1 %>
<% if @page > 1 %>
-<%= link_to t('trace.trace_paging_nav.newer'), @params.merge({ :page => @page - 1 }) %>
+<%= link_to t('.newer'), @params.merge({ :page => @page - 1 }) %>
<% else %>
-<%= t('trace.trace_paging_nav.newer') %>
+<%= t('.newer') %>
<% end %>
-| <%= t('trace.trace_paging_nav.showing_page', :page => @page) %> |
+| <%= t('.showing_page', :page => @page) %> |
<% if @traces.size < @page_size %>
-<%= t('trace.trace_paging_nav.older') %>
+<%= t('.older') %>
<% else %>
-<%= link_to t('trace.trace_paging_nav.older'), @params.merge({ :page => @page + 1 }) %>
+<%= link_to t('.older'), @params.merge({ :page => @page + 1 }) %>
<% end %>
<% end %>
diff --git a/app/views/trace/create.html.erb b/app/views/trace/create.html.erb
index 43d4eff37..0bc1bcde1 100644
--- a/app/views/trace/create.html.erb
+++ b/app/views/trace/create.html.erb
@@ -1,5 +1,5 @@
<% content_for :heading do %>
-
<%= t'trace.create.upload_trace' %>
+
<%= t '.upload_trace' %>
<% end %>
<%= error_messages_for 'trace' %>
diff --git a/app/views/trace/edit.html.erb b/app/views/trace/edit.html.erb
index b2254afdd..e890745ae 100644
--- a/app/views/trace/edit.html.erb
+++ b/app/views/trace/edit.html.erb
@@ -1,5 +1,5 @@
<% content_for :heading do %>
-
<%= t 'trace.edit.heading', :name => h(@trace.name) %>
+
<%= t '.heading', :name => h(@trace.name) %>
<% end %>
@@ -9,47 +9,47 @@
-<%= submit_tag t'trace.edit.save_button' %>
+<%= submit_tag t '.save_button' %>
<% end %>
diff --git a/app/views/trace/georss.rss.builder b/app/views/trace/georss.rss.builder
index 8470e85cb..984284174 100644
--- a/app/views/trace/georss.rss.builder
+++ b/app/views/trace/georss.rss.builder
@@ -5,8 +5,8 @@ xml.rss("version" => "2.0",
"xmlns:geo" => "http://www.w3.org/2003/01/geo/wgs84_pos#",
"xmlns:georss" => "http://www.georss.org/georss") do
xml.channel do
- xml.title t("trace.georss.title")
- xml.description t("trace.georss.title")
+ xml.title t(".title")
+ xml.description t(".title")
xml.link url_for(:controller => :trace, :action => :list, :only_path => false)
xml.image do
diff --git a/app/views/trace/list.html.erb b/app/views/trace/list.html.erb
index 7dcfacb80..376fc5511 100644
--- a/app/views/trace/list.html.erb
+++ b/app/views/trace/list.html.erb
@@ -1,7 +1,7 @@
<% content_for :heading do %>
<%= h(@title) %>
- <%= t('trace.list.description') %>
+ <%= t('.description') %>
<%= rss_link_to :action => 'georss', :display_name => @display_name, :tag => @tag %>
<%= link_to t('trace.trace_header.upload_trace'), :action => 'create' %>
<% if @tag %>
@@ -39,7 +39,7 @@
<%= render :partial => 'trace_paging_nav' %>
<% else %>
- <%= t 'trace.list.empty_html', :upload_link => trace_create_path %>
+ <%= t '.empty_html', :upload_link => trace_create_path %>
<% end %>
<%= render :partial => 'trace_optionals' %>
diff --git a/app/views/trace/offline.html.erb b/app/views/trace/offline.html.erb
index ed6c1c58d..5959d0ec3 100644
--- a/app/views/trace/offline.html.erb
+++ b/app/views/trace/offline.html.erb
@@ -1,5 +1,5 @@
<% content_for :heading do %>
-<%= t 'trace.offline.heading' %>
+<%= t '.heading' %>
<% end %>
-<%= t 'trace.offline.message' %>
+<%= t '.message' %>
diff --git a/app/views/trace/view.html.erb b/app/views/trace/view.html.erb
index 8fc17a1f2..2330edddf 100644
--- a/app/views/trace/view.html.erb
+++ b/app/views/trace/view.html.erb
@@ -1,54 +1,54 @@
<% content_for :heading do %>
- <%= t 'trace.view.heading', :name => h(@trace.name) %>
+ <%= t '.heading', :name => h(@trace.name) %>
<% end %>
<% if STATUS != :gpx_offline %>
<% if @trace.inserted %>
<% else %>
- <%= t'trace.view.pending' %>
+ <%= t '.pending' %>
<% end %>
<% end %>
- <%= t'trace.view.filename' %>
- <%= @trace.name %> (<%= link_to t('trace.view.download'), trace_data_path(@trace) %>)
+ <%= t '.filename' %>
+ <%= @trace.name %> (<%= link_to t('.download'), trace_data_path(@trace) %>)
- <%= t'trace.view.uploaded' %>
+ <%= t '.uploaded' %>
<%= l @trace.timestamp, :format => :friendly %>
<% if @trace.inserted? %>
- <%= t'trace.view.points' %>
+ <%= t '.points' %>
<%= @trace.size.to_s.gsub(/(\d)(?=(\d{3})+$)/,'\1,') %>
- <%= t'trace.view.start_coordinates' %>
- <%= @trace.latitude %> ; <%= @trace.longitude %>
(<%=link_to t('trace.view.map'), :controller => 'site', :action => 'index', :mlat => @trace.latitude, :mlon => @trace.longitude, :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %> / <%=link_to t('trace.view.edit'), :controller => 'site', :action => 'edit', :gpx=> @trace.id, :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %>)
+ <%= t '.start_coordinates' %>
+ <%= @trace.latitude %> ; <%= @trace.longitude %>
(<%=link_to t('.map'), :controller => 'site', :action => 'index', :mlat => @trace.latitude, :mlon => @trace.longitude, :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %> / <%=link_to t('.edit'), :controller => 'site', :action => 'edit', :gpx=> @trace.id, :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %>)
<% end %>
- <%= t'trace.view.owner' %>
+ <%= t '.owner' %>
<%= link_to h(@trace.user.display_name), user_path(@trace.user) %>
- <%= t'trace.view.description' %>
+ <%= t '.description' %>
<%= h(@trace.description) %>
- <%= t'trace.view.tags' %>
+ <%= t '.tags' %>
<% unless @trace.tags.empty? %>
<%= raw(@trace.tags.collect { |tag| link_to tag.tag, { :controller => 'trace', :action => 'list', :tag => tag.tag, :id => nil } }.join(", ")) %>
<% else %>
- <%= t'trace.view.none' %>
+ <%= t '.none' %>
<% end %>
- <%= t'trace.view.visibility' %>
- <%= t"trace.visibility.#{@trace.visibility}" %>
+ <%= t '.visibility' %>
+ <%= t "trace.visibility.#{@trace.visibility}" %>
@@ -57,8 +57,8 @@
<% if current_user && (current_user==@trace.user || current_user.administrator? || current_user.moderator?)%>
<%= if_user(@trace.user) do %>
- <%= button_to t('trace.view.edit_track'), trace_edit_path(@trace) %>
+ <%= button_to t('.edit_track'), trace_edit_path(@trace) %>
<% end %>
- <%= button_to t('trace.view.delete_track'), { :controller => 'trace', :action => 'delete', :id => @trace.id }, :data => { :confirm => t('trace.view.confirm_delete') } %>
+ <%= button_to t('.delete_track'), { :controller => 'trace', :action => 'delete', :id => @trace.id }, :data => { :confirm => t('.confirm_delete') } %>
<% end %>
diff --git a/app/views/user/_auth_association.html.erb b/app/views/user/_auth_association.html.erb
index abddf19d3..8932b7fef 100644
--- a/app/views/user/_auth_association.html.erb
+++ b/app/views/user/_auth_association.html.erb
@@ -1,3 +1,3 @@
-<%= t "user.auth_association.heading" %>
-<%= t "user.auth_association.option_1" %>
-<%= t "user.auth_association.option_2" %>
+<%= t ".heading" %>
+<%= t ".option_1" %>
+<%= t ".option_2" %>
diff --git a/app/views/user/_popup.html.erb b/app/views/user/_popup.html.erb
index 80446b7a9..957664b3b 100644
--- a/app/views/user/_popup.html.erb
+++ b/app/views/user/_popup.html.erb
@@ -1,5 +1,5 @@
diff --git a/app/views/user/account.html.erb b/app/views/user/account.html.erb
index a493ade68..16fbc46ca 100644
--- a/app/views/user/account.html.erb
+++ b/app/views/user/account.html.erb
@@ -3,9 +3,9 @@
<% end %>
<% content_for :heading do %>
- <%= t 'user.account.my settings' %>
+ <%= t '.my settings' %>
- <%= link_to t('user.account.return to profile'), user_path(current_user) %>
+ <%= link_to t('.return to profile'), user_path(current_user) %>
<%= link_to t('user.view.oauth settings'), :controller => 'oauth_clients', :action => 'index' %>
<% end %>
@@ -21,15 +21,15 @@
- <%= t 'user.account.current email address' %>
+ <%= t '.current email address' %>
- <%= t 'user.account.email never displayed publicly' %>
+ <%= t '.email never displayed publicly' %>
- <%= t 'user.account.new email address' %>
+ <%= t '.new email address' %>
<%= f.email_field :new_email, :autocomplete => :off %>
- <%= t 'user.account.email never displayed publicly' %>
+ <%= t '.email never displayed publicly' %>
@@ -47,81 +47,81 @@
- <%= t 'user.account.preferred editor' %>
+ <%= t '.preferred editor' %>
<%= f.select :preferred_editor, [[t("editor.default", :name => t("editor.#{DEFAULT_EDITOR}.name")), 'default']] + Editors::ALL_EDITORS.collect { |e| [t("editor.#{e}.description"), e] } %>
- <%= t 'user.account.profile description' %>
+ <%= t '.profile description' %>
<%= richtext_area :user, :description, :object => current_user, :cols => 80, :rows => 20 %>
- <%= t 'user.account.preferred languages' %>
+ <%= t '.preferred languages' %>
<%= f.text_field :languages %>
<%= raw(t('diary_entry.diary_comment.comment_from', :link_user => (link_to h(diary_comment.user.display_name), user_path(diary_comment.user)), :comment_created_at => link_to(l(diary_comment.created_at, :format => :friendly), :anchor => "comment#{diary_comment.id}"))) %>
+<%= raw(t('.comment_from', :link_user => (link_to h(diary_comment.user.display_name), user_path(diary_comment.user)), :comment_created_at => link_to(l(diary_comment.created_at, :format => :friendly), :anchor => "comment#{diary_comment.id}"))) %>