<span style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;">
<blockquote>
<ul dir="auto">
<li>"yesterday" instead of "%{count} day ago"</li>
</ul>
</blockquote>
<p dir="auto">Those are incorrect, and they should be converted to be "1 day ago" (or "one day ago" at least). The <code class="notranslate">x_days</code> key is used with <code class="notranslate">:count => 1</code> <a href="https://github.com/rails/rails/blob/3235827585d87661942c91bc81f64f56d710f0b2/actionview/lib/action_view/helpers/date_helper.rb#L126C1-L127C72">for 24...42 hours ago</a>. When a changeset was closed 36 or 41 hours ago, that might not have been "yesterday".</p>
<p dir="auto">It makes our site look bad (and it makes us developers look like we can't do maths, or that we suck at i18n) if it's April 3rd and a changeset was closed on April 1st but the site displays "wczoraj".</p>
<blockquote>
<ul dir="auto">
<li>"1" instead of "%{count}"</li>
<li>"one" instead of "%{count}"<br>
Example: <code class="notranslate">{{PLURAL|one=vor einem Tag|vor %{count} Tagen}}</code></li>
</ul>
</blockquote>
<p dir="auto">In theory these are fine, so long as it's a language where <code class="notranslate">:one</code> == <code class="notranslate">:1</code> (like German, French etc). But if we allow this, we'll need to maintain a list of languages where this is not correct (Polish, Russian, etc). Perhaps we can extract this information from CLDR?</p>
<p dir="auto">Note that we can't do "1" or "one" in <code class="notranslate">en.yml</code>, otherwise translatewiki won't allow <code class="notranslate">:count</code> as a placeholder for the <code class="notranslate">:one</code> key in other languages. So in <code class="notranslate">en.yml</code> we must use <code class="notranslate">%{count}</code> for all values.</p>
<blockquote>
<ul dir="auto">
<li>nothing instead of "%{count}", probably in languages without indefinite article</li>
</ul>
</blockquote>
<p dir="auto">That's interesting, do you have examples? I wonder if these languages just have a choice between saying "day ago" vs "1 day ago" or whether they strictly can't use the number. I understand that "day ago" instead of "a day ago" is common, but I haven't found if there are languages where you can't use a number 1 with a noun.</p><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/issues/5878#issuecomment-2775907242">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLK5R4SU44WKZDROWG32XU5YBAVCNFSM6AAAAAB2JVIPBCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONZVHEYDOMRUGI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMFUG24QCG5MEEO5NT2XU5YBA5CNFSM6AAAAAB2JVIPBCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTVFOT52U.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/issues/5878/2775907242</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
</span>
<div style="display: flex; flex-wrap: wrap; white-space: pre-wrap; align-items: center; "><img alt="gravitystorm" height="20" width="20" style="border-radius:50%; margin-right: 4px;" decoding="async" src="https://avatars.githubusercontent.com/u/360803?s=20&v=4" /><strong>gravitystorm</strong> left a comment <a href="https://github.com/openstreetmap/openstreetmap-website/issues/5878#issuecomment-2775907242">(openstreetmap/openstreetmap-website#5878)</a></div>
<blockquote>
<ul dir="auto">
<li>"yesterday" instead of "%{count} day ago"</li>
</ul>
</blockquote>
<p dir="auto">Those are incorrect, and they should be converted to be "1 day ago" (or "one day ago" at least). The <code class="notranslate">x_days</code> key is used with <code class="notranslate">:count => 1</code> <a href="https://github.com/rails/rails/blob/3235827585d87661942c91bc81f64f56d710f0b2/actionview/lib/action_view/helpers/date_helper.rb#L126C1-L127C72">for 24...42 hours ago</a>. When a changeset was closed 36 or 41 hours ago, that might not have been "yesterday".</p>
<p dir="auto">It makes our site look bad (and it makes us developers look like we can't do maths, or that we suck at i18n) if it's April 3rd and a changeset was closed on April 1st but the site displays "wczoraj".</p>
<blockquote>
<ul dir="auto">
<li>"1" instead of "%{count}"</li>
<li>"one" instead of "%{count}"<br>
Example: <code class="notranslate">{{PLURAL|one=vor einem Tag|vor %{count} Tagen}}</code></li>
</ul>
</blockquote>
<p dir="auto">In theory these are fine, so long as it's a language where <code class="notranslate">:one</code> == <code class="notranslate">:1</code> (like German, French etc). But if we allow this, we'll need to maintain a list of languages where this is not correct (Polish, Russian, etc). Perhaps we can extract this information from CLDR?</p>
<p dir="auto">Note that we can't do "1" or "one" in <code class="notranslate">en.yml</code>, otherwise translatewiki won't allow <code class="notranslate">:count</code> as a placeholder for the <code class="notranslate">:one</code> key in other languages. So in <code class="notranslate">en.yml</code> we must use <code class="notranslate">%{count}</code> for all values.</p>
<blockquote>
<ul dir="auto">
<li>nothing instead of "%{count}", probably in languages without indefinite article</li>
</ul>
</blockquote>
<p dir="auto">That's interesting, do you have examples? I wonder if these languages just have a choice between saying "day ago" vs "1 day ago" or whether they strictly can't use the number. I understand that "day ago" instead of "a day ago" is common, but I haven't found if there are languages where you can't use a number 1 with a noun.</p>
<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/issues/5878#issuecomment-2775907242">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLK5R4SU44WKZDROWG32XU5YBAVCNFSM6AAAAAB2JVIPBCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONZVHEYDOMRUGI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMFUG24QCG5MEEO5NT2XU5YBA5CNFSM6AAAAAB2JVIPBCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTVFOT52U.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/issues/5878/2775907242</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/issues/5878#issuecomment-2775907242",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/5878#issuecomment-2775907242",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>