<p>This represents step 3 in the plan at <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="455177100" data-permission-text="Issue title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/2255" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/2255/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/2255">#2255</a>. I've marked it as WIP since we need to wait for <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="458079012" data-permission-text="Issue title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/2270" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/2270/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/2270">#2270</a> to be merged, and give the translators some time to make their updates, but it's actually a finished PR. I thought it would be useful to have here now for review since I've done the work to make sure it's all going to work out as intended, even if it's not for immediate merging.</p>
<p>This PR updates our use of <code>distance_of_time_in_words_to_now</code> and <code>time_ago_in_words</code> rails helpers to use a translation scope. It also introduces a <code>friendly_date_ago</code> helper which should be used in place of the <code>friendly_date</code> helper for these 'ago' translations.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/2271'>https://github.com/openstreetmap/openstreetmap-website/pull/2271</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Add translations for distance_in_time_ago</li>
  <li>Use the distance_in_words_ago scope for trace display</li>
  <li>Use the distance_in_words_ago scope for diary comments pages</li>
  <li>Use distance_in_words_ago scope for issues display</li>
  <li>Use scope for time_ago when viewing users</li>
  <li>Use scope for common details and changeset display in browse pages</li>
  <li>Use distance_in_words_ago scope for user blocks</li>
  <li>Add a friendly_date_ago helper</li>
  <li>Use friendy_date_ago helper for notes</li>
  <li>Use friendly_date_ago helper for user_blocks</li>
  <li>Use friendly_date_ago helper for chnagesets</li>
  <li>Use friendly_date_ago helper for changeset comments</li>
  <li>Use friendly_date_ago for user blocks</li>
  <li>Use friendly_date_ago for notes display</li>
  <li>Update note comments to use friendly_date_ago helper</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2271/files#diff-0">app/helpers/application_helper.rb</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2271/files#diff-1">app/helpers/changesets_helper.rb</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2271/files#diff-2">app/helpers/note_helper.rb</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2271/files#diff-3">app/helpers/user_blocks_helper.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2271/files#diff-4">app/views/api/notes/_comment.html.erb</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2271/files#diff-5">app/views/browse/_common_details.html.erb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2271/files#diff-6">app/views/browse/changeset.html.erb</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2271/files#diff-7">app/views/changeset_comments/_comment.html.erb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2271/files#diff-8">app/views/diary_entries/comments.html.erb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2271/files#diff-9">app/views/issues/index.html.erb</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2271/files#diff-10">app/views/notes/mine.html.erb</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2271/files#diff-11">app/views/traces/_trace.html.erb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2271/files#diff-12">app/views/user_blocks/revoke.html.erb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2271/files#diff-13">app/views/user_blocks/show.html.erb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2271/files#diff-14">app/views/users/_contact.html.erb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2271/files#diff-15">config/locales/en.yml</a>
    (109)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2271/files#diff-16">test/helpers/note_helper_test.rb</a>
    (4)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/2271.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/2271.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/2271.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/2271.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2271?email_source=notifications&email_token=AAK2OLOELQENJRDB3CHXEALP3JGMTA5CNFSM4HZK3KG2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G2NZF6A">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJ6O53U6GTWMLYEFO3P3JGMTANCNFSM4HZK3KGQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAK2OLNB2QT335FV2VZICD3P3JGMTA5CNFSM4HZK3KG2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G2NZF6A.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/2271?email_source=notifications\u0026email_token=AAK2OLOELQENJRDB3CHXEALP3JGMTA5CNFSM4HZK3KG2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G2NZF6A",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2271?email_source=notifications\u0026email_token=AAK2OLOELQENJRDB3CHXEALP3JGMTA5CNFSM4HZK3KG2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G2NZF6A",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>