<p></p>
<p dir="auto">These changes are really difficult for translators because they are create patchwork messages. Especially without accompanying message documentation.</p>
<p dir="auto">More docs:</p>
<ul dir="auto">
<li><a href="https://translatewiki.net/wiki/Translating:Localisation_for_developers#Message_documentation" rel="nofollow">https://translatewiki.net/wiki/Translating:Localisation_for_developers#Message_documentation</a></li>
<li><a href="https://www.mediawiki.org/wiki/Help:System_message#Avoid_fragmented_or_'patchwork'_messages" rel="nofollow">https://www.mediawiki.org/wiki/Help:System_message#Avoid_fragmented_or_'patchwork'_messages</a></li>
</ul>
<p dir="auto">To be fair, we have the same issue in MediaWiki. Often it can be addressed by using wikitext, but some cases that is not possible. Best would be inline syntax that handles context-dependent escaping. For example:</p>
<pre class="notranslate"><code class="notranslate">messages:
signup_message: Please ${elem|sign up}

code using fake PHP syntax as I am not familiar with Ruby:

t( 'signup_message', function ( $label ) { return makeButton( 'someurl', htmlspecialchars( $label ) ); } );
</code></pre>
<p dir="auto">But in the meantime, I hope message doc can be added cross-linking the translatable messages to each other.</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/commit/c7e9888bb6587649109d0c8d9e00c771da867cf9#commitcomment-101769123">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLIJOO4AP7YJOSZZ3DDWY4Y45ANCNFSM6AAAAAAVFNKX64">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLLOYKF6ZDVAT3ZETRDWY4Y45A5CNFSM6AAAAAAVFNKX66WGG33NNVSW45C7OR4XAZNNINXW23LJORBW63LNMVXHJKTDN5WW2ZLOORPWSZGOAYIN7IY.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/commit/c7e9888bb6587649109d0c8d9e00c771da867cf9/101769123</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/commit/c7e9888bb6587649109d0c8d9e00c771da867cf9#commitcomment-101769123",
"url": "https://github.com/openstreetmap/openstreetmap-website/commit/c7e9888bb6587649109d0c8d9e00c771da867cf9#commitcomment-101769123",
"name": "View Commit"
},
"description": "View this Commit on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>