<p dir="auto">This sends the user's preferred languages to Nominatim instead of sending the browser languages - it will still fallback to the browser languages that were being sent before if we have no other source for preferred languages.</p>
<p dir="auto">I also did (in a separate commit) some refactoring to improve how we build the URL for nominatim.</p>
<p dir="auto"><span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #6420.">Fixes</span> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3461462093" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/6420" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/6420/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/6420">#6420</a>.</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/6421'>https://github.com/openstreetmap/openstreetmap-website/pull/6421</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6421/commits/2acbe6c726df070957220474bd29fe8605a6e0f9" class="commit-link">2acbe6c</a>  Lock changesets during a diff upload</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6421/commits/18a553b4226bc85f130d24b3c6db92b71eef8c6f" class="commit-link">18a553b</a>  Refactor construction of Nominatim URLs</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6421/commits/aa9dc83665fcb4bbd605a1fe6a31bac9b805080c" class="commit-link">aa9dc83</a>  Send the user's preferred languages to Nominatim</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6421/files">3 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6421/files#diff-825c845680d997c93f815c71d78ab9b50774598b0dbed385d0051f887278e7e8">app/controllers/api/changesets/uploads_controller.rb</a>
    (8)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6421/files#diff-aa536e139b3e6adc9cf65c55fffec124e07c1d23e2186083fa4190c219551740">app/controllers/concerns/nominatim_methods.rb</a>
    (33)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6421/files#diff-f6fe2132aae5ac6c27fa66034cfc7a48d8a6d04e0084c4b147053396123e988c">test/controllers/api/changesets/uploads_controller_test.rb</a>
    (29)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6421.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/6421.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6421.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/6421.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/6421">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLORRT2ADEF6PNCEY2D3U66ULAVCNFSM6AAAAACHWTTPMSVHI2DSMVQWIX3LMV43ASLTON2WKOZTGQ3DCNRRGU4DIMY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLNXSL6OQHLOCDQ6BY33U66ULA5CNFSM6AAAAACHWTTPMSWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHM4VAQ4M.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/6421</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/6421",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6421",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>