<div style="display: flex; flex-wrap: wrap; white-space: pre-wrap; align-items: center; "><img height="20" width="20" style="border-radius:50%; margin-right: 4px;" decoding="async" src="https://avatars.githubusercontent.com/u/1231218?s=20&v=4" /><strong>1ec5</strong> created an issue <a href="https://github.com/openstreetmap/openstreetmap-website/issues/6341">(openstreetmap/openstreetmap-website#6341)</a></div>
<p dir="auto">I just went through Translatewiki.net fixing a number of <a href="https://github.com/openstreetmap/openstreetmap-website/blob/4eaf4404ad5629f0f5341433720cabd63518035a/config/locales/ja.yml#L2485-L2486">syntax errors</a> from <a href="https://github.com/openstreetmap/openstreetmap-website/blob/4eaf4404ad5629f0f5341433720cabd63518035a/config/locales/fi.yml#L3029-L3030">missing braces</a> in the <code class="notranslate">{{PLURAL|…}}</code> syntax that were probably introduced by translators accepting machine translation suggestions without reading them closely.</p>
<p dir="auto">Along the way, I noticed that some translators have gotten the idea that OSM messages there support full MediaWiki wikitext syntax, since <a href="https://translatewiki.net/wiki/Plural#Plural_in_CLDR" rel="nofollow">the <code class="notranslate">{{PLURAL|…}}</code> syntax for CLDR-based projects</a> looks a lot like the <code class="notranslate">{{PLURAL:…}}</code> magic word in wikitext. In particular, they’re adding <a href="https://translatewiki.net/wiki/Gender" rel="nofollow"><code class="notranslate">{{GENDER:…}}</code></a> to switch between grammatical genders where the language apparently makes a distinction.</p>
<p dir="auto"><a href="https://github.com/openstreetmap/openstreetmap-website/blob/4eaf4404ad5629f0f5341433720cabd63518035a/config/locales/hsb.yml#L1488-L1489">https://github.com/openstreetmap/openstreetmap-website/blob/4eaf4404ad5629f0f5341433720cabd63518035a/config/locales/hsb.yml#L1488-L1489</a> <a href="https://github.com/openstreetmap/openstreetmap-website/blob/4eaf4404ad5629f0f5341433720cabd63518035a/config/locales/sq.yml#L1142">https://github.com/openstreetmap/openstreetmap-website/blob/4eaf4404ad5629f0f5341433720cabd63518035a/config/locales/sq.yml#L1142</a></p>
<p dir="auto">The Greek localization also used this keyword in e-mail subject lines until <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/openstreetmap/openstreetmap-website/commit/b45eb03a6c026ec0f19415100c7bb14c4c53e6cb/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/commit/b45eb03a6c026ec0f19415100c7bb14c4c53e6cb"><tt>b45eb03</tt></a>.</p>
<p dir="auto">In theory, we could support varying interface messages by grammatical gender by adding a user preference. That’s how MediaWiki supports the <code class="notranslate">{{GENDER:…}}</code> magic word throughout its interface. But storing this information would raise privacy concerns, especially if a user can get e-mail notifications that address another user by their choice of grammatical gender. A preference seems like overkill. It seems like we have a relatively small number of potentially gender-specific messages, though it’s hard to tell if some languages are just working around the problem.</p>
<p dir="auto">Unless anyone feels strongly otherwise, I’m thinking we could just replace the <code class="notranslate">{{GENDER:…}}</code> syntax with a more literal “foo/bar” format, similar to the workaround that the Greek translators are using.</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/6341">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKTAEZEHN2H5YWBCGL3OX2Z3AVCNFSM6AAAAACEPJKWAWVHI2DSMVQWIX3LMV43ASLTON2WKOZTGM2DENJQG43TOMA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLORFX3TZ3XRJOUPRKT3OX2Z3A5CNFSM6AAAAACEPJKWAWWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHMOOU67I.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/6341</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/6341",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/6341",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>