]> git.openstreetmap.org Git - rails.git/commitdiff
Rework shared kramdown instructions to avoid html in translations
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 8 Mar 2023 15:42:15 +0000 (15:42 +0000)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 8 Mar 2023 16:09:27 +0000 (16:09 +0000)
app/views/shared/_markdown_help.html.erb
config/locales/en.yml

index 5bd8c4955deb47b2af277a304e1dc8189631d151..9097c9d9174c162b55cfddea5f37bc95e2fb6bf7 100644 (file)
@@ -1,4 +1,6 @@
-<h5><%= t ".title_html" %></h5>
+<h5>
+  <%= t ".heading_html", :kramdown_link => link_to(t(".kramdown"), t(".kramdown_url")) %>
+</h5>
 <dl>
   <dt><%= t ".headings" %></dt>
   <dd># <%= t ".heading" %><br>
index f1ce573f0d47aecf1413cfa7db26f495a911807f..9df536c33354c6b650acc73ae6b2f8ff2e25b3da 100644 (file)
@@ -1823,7 +1823,9 @@ en:
       support: support
   shared:
     markdown_help:
-      title_html: Parsed with <a href="https://kramdown.gettalong.org/quickref.html">kramdown</a>
+      heading_html: Parsed with %{kramdown_link}
+      kramdown_url: https://kramdown.gettalong.org/quickref.html
+      kramdown: kramdown
       headings: Headings
       heading: Heading
       subheading: Subheading