]> git.openstreetmap.org Git - rails.git/commitdiff
Use relative translations for changeset comments
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 7 Nov 2018 10:07:29 +0000 (11:07 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 7 Nov 2018 10:07:29 +0000 (11:07 +0100)
app/views/changeset_comments/_comment.html.erb
app/views/changeset_comments/_comments.rss.builder
app/views/changeset_comments/index.rss.builder
config/locales/en.yml

index 34b15ff8898aa02f907b58e25e0302942477ec7d..32a4b9229de1c4e2e039c36c0f75ead908067c39 100644 (file)
@@ -1,6 +1,6 @@
-<h2><%= t "changeset.rss.comment", :author => comment.author.display_name,
+<h2><%= t ".comment", :author => comment.author.display_name,
   :changeset_id => comment.changeset.id.to_s %></h2>
 <div class="changeset-comment" style="margin-top: 5px">
-  <div class="changeset-comment-description" style="font-size: smaller; color: #999999"><%= t "changeset.rss.commented_at_by_html", :when => friendly_date(comment.created_at), :user => comment.author.display_name %></div>
+  <div class="changeset-comment-description" style="font-size: smaller; color: #999999"><%= t ".commented_at_by_html", :when => friendly_date(comment.created_at), :user => comment.author.display_name %></div>
   <div class="changeset-comment-text"><%= comment.body %></div>
 </div>
index 5c683c86d8ec224fe42ddd6d1bd5d5dc16e019ed..8848b9a80ddc8328de356936fe8bd9936cea441f 100644 (file)
@@ -1,6 +1,6 @@
 comments.each do |comment|
   xml.item do
-    xml.title t("changeset.rss.comment", :author => comment.author.display_name, :changeset_id => comment.changeset.id.to_s)
+    xml.title t(".comment", :author => comment.author.display_name, :changeset_id => comment.changeset.id.to_s)
 
     xml.link url_for(:controller => "browse", :action => "changeset", :id => comment.changeset.id, :anchor => "c#{comment.id}", :only_path => false)
     xml.guid url_for(:controller => "browse", :action => "changeset", :id => comment.changeset.id, :anchor => "c#{comment.id}", :only_path => false)
index f6d304a4cbd9bf8c6a4da50d1dba7341cbd23650..acaa54727279e21a7a6816c5f8d39fad26b5bce8 100644 (file)
@@ -2,9 +2,9 @@ xml.rss("version" => "2.0",
         "xmlns:dc" => "http://purl.org/dc/elements/1.1/") do
   xml.channel do
     if @changeset
-      xml.title t("changeset.rss.title_particular", :changeset_id => @changeset.id)
+      xml.title t(".title_particular", :changeset_id => @changeset.id)
     else
-      xml.title t("changeset.rss.title_all")
+      xml.title t(".title_all")
     end
     xml.link url_for(:controller => "site", :action => "index", :only_path => false)
 
index a9370018aabba1ad6ddecff6fdd0f786c208f044..6a496be1a106fc34501037235f49f65db5c23346 100644 (file)
@@ -242,13 +242,17 @@ en:
       load_more: "Load more"
     timeout:
       sorry: "Sorry, the list of changesets you requested took too long to retrieve."
-    rss:
-      title_all: OpenStreetMap changeset discussion
-      title_particular: "OpenStreetMap changeset #%{changeset_id} discussion"
+  changeset_comments:
+    comment:
       comment: "New comment on changeset #%{changeset_id} by %{author}"
-      commented_at_html: "Updated %{when} ago"
       commented_at_by_html: "Updated %{when} ago by %{user}"
-      full: Full discussion
+    comments:
+      comment: "New comment on changeset #%{changeset_id} by %{author}"
+    index:
+      title_all: OpenStreetMap changeset discussion
+      title_particular: "OpenStreetMap changeset #%{changeset_id} discussion"
+    timeout:
+      sorry: "Sorry, the list of changeset comments you requested took too long to retrieve."
   diary_entry:
     new:
       title: New Diary Entry