]> git.openstreetmap.org Git - rails.git/commitdiff
Use scope for time_ago when viewing users
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 19 Jun 2019 09:34:29 +0000 (11:34 +0200)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 19 Jun 2019 16:04:08 +0000 (18:04 +0200)
Refs #2255.

Also removes unused translation referencing ago, that was unneeded
after cbf71f04c244440f82d86e12758a2e443f68c0f8

app/views/users/_contact.html.erb
config/locales/en.yml

index 9950da0f8f7600479590bc325ef1ae914cc00611..1479a1e4fbbd652e4f64021efed01a1f1bf963b4 100644 (file)
@@ -21,7 +21,7 @@
     <p>
       <% changeset = contact.changesets.first %>
       <% if changeset %>
-        <%= t("users.show.latest edit", :ago => t("users.show.ago", :time_in_words_ago => time_ago_in_words(changeset.created_at))) %>
+        <%= t("users.show.latest edit", :ago => time_ago_in_words(changeset.created_at, :scope => :'datetime.distance_in_words_ago')) %>
         <% comment = changeset.tags["comment"].to_s != "" ? changeset.tags["comment"] : t("browse.no_comment") %>
         "<%= link_to(comment,
                      { :controller => "browse", :action => "changeset", :id => changeset.id },
index ff74c785f90021700ba7ea7286ed17da2949157e..b714e96cdc3bd1a30aab03a48a2b80d67b44b96b 100644 (file)
@@ -2128,12 +2128,10 @@ en:
       remove as friend: Unfriend
       add as friend: Add Friend
       mapper since: "Mapper since:"
-      ago: "(%{time_in_words_ago} ago)"
       ct status: "Contributor terms:"
       ct undecided: Undecided
       ct declined: Declined
-      ct accepted: Accepted %{ago} ago
-      latest edit: "Latest edit %{ago}:"
+      latest edit: "Latest edit (%{ago}):"
       email address: "Email address:"
       created from: "Created from:"
       status: "Status:"