[openstreetmap/openstreetmap-website] Refactor public editing note to avoid raw html in the translations (c7e9888)
Niklas Laxström
notifications at github.com
Thu Feb 23 10:05:02 UTC 2023
These changes are really difficult for translators because they are create patchwork messages. Especially without accompanying message documentation.
More docs:
* https://translatewiki.net/wiki/Translating:Localisation_for_developers#Message_documentation
* https://www.mediawiki.org/wiki/Help:System_message#Avoid_fragmented_or_'patchwork'_messages
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:
```
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 ) ); } );
```
But in the meantime, I hope message doc can be added cross-linking the translatable messages to each other.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/commit/c7e9888bb6587649109d0c8d9e00c771da867cf9#commitcomment-101769123
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/commit/c7e9888bb6587649109d0c8d9e00c771da867cf9/101769123 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20230223/62f4bbf1/attachment.htm>
More information about the rails-dev
mailing list