From 3ec391f4be9d14134aa6a66ed31d903cfaef1546 Mon Sep 17 00:00:00 2001 From: Pikse Date: Wed, 30 Jul 2025 21:12:04 +0300 Subject: [PATCH] Fix message reuse on account terms page --- app/views/accounts/terms/show.html.erb | 2 +- config/locales/en.yml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/accounts/terms/show.html.erb b/app/views/accounts/terms/show.html.erb index fd0573540..29860535b 100644 --- a/app/views/accounts/terms/show.html.erb +++ b/app/views/accounts/terms/show.html.erb @@ -55,7 +55,7 @@

<%= t "layouts.tou" %>

-

<%= t ".tou_explain_html", :tou_link => link_to(t("layouts.tou"), "https://wiki.osmfoundation.org/wiki/Terms_of_Use", :target => :new) %>

+

<%= t ".tou_explain.html", :tou_link => link_to(t(".tou_explain.tou"), "https://wiki.osmfoundation.org/wiki/Terms_of_Use", :target => :new) %>

diff --git a/config/locales/en.yml b/config/locales/en.yml index 47284c88c..5bcb9358f 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -316,7 +316,9 @@ en: read and accept with tou: "Please read the contributor agreement and the terms of use, check both checkboxes when done and then press the continue button." contributor_terms_explain: "This agreement governs the terms for your existing and future contributions." read_ct: "I have read and agree to the above contributor terms" - tou_explain_html: "These %{tou_link} govern the use of the website and other infrastructure provided by the OSMF. Please click on the link, read and agree to the text." + tou_explain: + html: "These %{tou_link} govern the use of the website and other infrastructure provided by the OSMF. Please click on the link, read and agree to the text." + tou: "Terms of Use" read_tou: "I have read and agree to the Terms of Use" guidance_info_html: "Information to help understand these terms: a %{readable_summary_link} and some %{informal_translations_link}" readable_summary: human readable summary -- 2.39.5