<p dir="auto">See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2512507702" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5174" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5174/hovercard?comment_id=2338001493&comment_type=issue_comment" href="https://github.com/openstreetmap/openstreetmap-website/pull/5174#issuecomment-2338001493">#5174 (comment)</a></p>
<ul dir="auto">
<li>"Older/Newer" strings are moved to the <code class="notranslate">shared.pagination</code> scope.</li>
<li><code class="notranslate">shared.pagination</code> is ignored by <code class="notranslate">i18n-tasks</code>.</li>
<li>Instead of receiving (multiple, currently two but possibly more in the future) translation keys, the <code class="notranslate">shared/pagination</code> template receives one translation scope.</li>
<li>Actually it's not necessary to pass this scope in most of the cases because it can be guessed from the controller name.</li>
</ul>

<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/5179'>https://github.com/openstreetmap/openstreetmap-website/pull/5179</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5179/commits/7633657ecb93d45fef823f7707d91e1576c18a1f" class="commit-link">7633657</a>  Pass translation scope instead of keys to shared pagination</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5179/commits/38085fed827bf9fa1cd4d505d6789d171df1c99f" class="commit-link">38085fe</a>  Make i18n-tasks ignore shared pagination scope</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5179/commits/cb65cd9adc7240330922a7c11fd57c55521f3074" class="commit-link">cb65cd9</a>  Guess translation scope from controller name if not provided</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5179/files">10 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5179/files#diff-2479587a3b432070e3d95d96bf5b0a7f5f88896d62f0092d4f0346485ee29244">app/views/diary_comments/_page.html.erb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5179/files#diff-2fb9f160e757fc434d16f8e8cd9aa573eedd02f6d356408963e10bca184dd1a2">app/views/diary_entries/_page.html.erb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5179/files#diff-9fc81c6fc723d81e4892b27e574ab0b2e36138253e56d3a20ef35045bfcd3605">app/views/issues/_page.html.erb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5179/files#diff-2a43f1a5b4e2bda5df6ec18928f70304b3e1e3bcb084c26cc00d3ed34dab9062">app/views/shared/_pagination.html.erb</a>
    (5)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5179/files#diff-8e0d2926ac2ebfe8582d2769b69be92e0cf99539bf9e1dc1ff39d0741debf667">app/views/traces/_page.html.erb</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5179/files#diff-c168d2324bc74e9bd639f796e23def66db563d9457b7d4a2c05b109552804a4c">app/views/user_blocks/_blocks.html.erb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5179/files#diff-8a713fbc67e1fc4b373fee264bd91767b9fd2f7574304e022566864afebbf430">app/views/users/_page.html.erb</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5179/files#diff-c1ded81b69dea6a1b03b09ed3a03e8b5a56a9fe604eff2febb6099931ffa6009">config/i18n-tasks.yml</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5179/files#diff-44438ce218f5287c58d0017f965d888715635d94280669896f75841fbd7b4cd7">config/locales/en.yml</a>
    (32)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5179/files#diff-1937855845d794c2ab6ec4812a8b4e3230c470b69ff763285bdd810915042839">test/system/issues_test.rb</a>
    (4)
  </li>
</ul>

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

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5179">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPSMZTRT4GOYD3M4VDZV2RZDAVCNFSM6AAAAABN6E7ZN6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGUYTKNZQHE2DCNI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMEMUVVBGX2D7YG2TLZV2RZDA5CNFSM6AAAAABN6E7ZN6WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHJL4VN44.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5179</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5179",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5179",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>