Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Don't put example code into en.yml

Oliver Güntheref15c65aa89b
diff --git a/app/views/admin/settings/general_settings/show.html.erb b/app/views/admin/settings/general_settings/show.html.erb
index 241424d98a6..ed36df515ca 100644
--- a/app/views/admin/settings/general_settings/show.html.erb
+++ b/app/views/admin/settings/general_settings/show.html.erb
@@ -63,7 +63,13 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%= setting_text_area :allowed_link_protocols, rows: 5, container_class: "-wide" %>
<div class="form--field-instructions">
- <%= t(:setting_allowed_link_protocols_text_html) %>
+ <%= t(:setting_allowed_link_protocols_text_html,
+ tel_code: content_tag(:code, "tel"),
+ element_code: content_tag(:code, "element"),
+ http_code: content_tag(:code, "http"),
+ https_code: content_tag(:code, "https"),
+ mailto_code: content_tag(:code, "mailto"),
+ ) %>
</div>
</div>
<div class="form--field"><%= setting_check_box :feeds_enabled, size: 6 %></div>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 175b5755fbc..744ab8ba733 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -3697,9 +3697,9 @@ en:
setting_allowed_link_protocols: "Allowed link protocols"
setting_allowed_link_protocols_text_html: >-
Allow these protocols to be rendered as links in work package descriptions, long text fields and comments.
- For example, <code>tel</code> or <code>element</code>.
+ For example, %{tel_code} or %{element_code}. Enter one protocol per line.
<br/>
- Protocols <code>http</code>, <code>https</code>, and <code>mailto</code> are always allowed.
+ Protocols %{http_code}, %{https_code}, and %{mailto_code} are always allowed.
setting_after_first_login_redirect_url: "First login redirect"
setting_after_first_login_redirect_url_text_html: >
Set a path to redirect users after their first login. If empty, redirects to the home page for the onboarding tour.