<p dir="auto">It's possible to open the new diary entry link with parameters to initialize the form values like this:<br>
<a href="https://www.openstreetmap.org/diary/new?diary_entry%5Btitle%5D=Subject&diary_entry%5Bbody%5D=texttexttext" rel="nofollow">https://www.openstreetmap.org/diary/new?diary_entry[title]=Subject&diary_entry[body]=texttexttext</a></p>
<p dir="auto">The only value that is not supported is entry language because it's overwritten by user preferences. But the prefences are supposed to set only the default language value judging by <code class="notranslate">diary.default_language</code> name, not to override explicitly specified values.</p>
<p dir="auto">This PR allows to use the <code class="notranslate">diary_entry[language_code]</code> parameter to specify the language of a new diary entry.</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/6012'>https://github.com/openstreetmap/openstreetmap-website/pull/6012</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6012/commits/2a4b8b5d70fb81a1fdeac611867a51175db458e6" class="commit-link">2a4b8b5</a>  Test if preferred diary entry language is selected</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6012/commits/529fffc4e6631867ee9af58979d8ed0d80e35fdd" class="commit-link">529fffc</a>  Allow new diary entry language to be specified in params</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6012/files">2 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6012/files#diff-4b73866ef57c70fca07c0f330d7a57aae939b11e4aae0514f303df3aa3762f89">app/controllers/diary_entries_controller.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6012/files#diff-10a5c4533814c8b1222f0ef0833c82edd68584d85757fc431557b39813777c19">test/controllers/diary_entries_controller_test.rb</a>
    (64)
  </li>
</ul>

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