[openstreetmap/openstreetmap-website] Avoid using raw html in translations for links. (#3291)
Andy Allan
notifications at github.com
Thu Aug 12 15:40:53 UTC 2021
This is a followup to 26698d6 which introduced the html. It's better to use interpolation for links, since this avoids the translations introducing any html syntax errors.
I had to change the translation key, since changing the interpolation variables alone would lead to breakages.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/3291
-- Commit Summary --
* Avoid using raw html in translations for links.
-- File Changes --
M app/views/users/show.html.erb (2)
M config/locales/en.yml (3)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/3291.patch
https://github.com/openstreetmap/openstreetmap-website/pull/3291.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3291
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20210812/81597402/attachment.htm>
More information about the rails-dev
mailing list