Commit 9f1c187d authored by Fatih Acet's avatar Fatih Acet

Merge branch 'winh-i18n-scoped-label-help-text' into 'master'

Make scoped label help text translatable

See merge request gitlab-org/gitlab-ee!10771
parents 9886230b aefe31b3
- if @label.subject.feature_available?(:scoped_labels)
- docs_link = help_page_path('user/project/labels.md', anchor: 'scoped-labels')
- docs_url = help_page_path('user/project/labels.md', anchor: 'scoped-labels')
- docs_link_start = "<a href='#{docs_url}' target='_blank' rel='noreferrer noopener'>".html_safe
- docs_link_end = '</a>'.html_safe
- docs_link_placeholders = { link_start: docs_link_start,
link_end: docs_link_end,
code_start: "<code>".html_safe,
code_end: "</code>".html_safe }
.col-sm-10.offset-sm-2.form-text.text-muted.js-has-scoped-labels.hidden
Using
%code ::
denotes a
%a{ href: docs_link, target: '_blank', rel: 'noopener noreferrer' } scoped label set
.col-sm-10.offset-sm-2.form-text.text-muted.js-use-scoped-labels
Use
%code ::
to create a
%a{ href: docs_link, target: '_blank', rel: 'noopener noreferrer' } scoped label set
(eg.
%code priority::1
)
.col-sm-10.offset-sm-2.form-text.text-muted
.js-has-scoped-labels.hidden
= _('Using %{code_start}::%{code_end} denotes a %{link_start}scoped label set%{link_end}').html_safe % docs_link_placeholders
.js-use-scoped-labels
= _('Use %{code_start}::%{code_end} to create a %{link_start}scoped label set%{link_end} (eg. %{code_start}priority::1%{code_end})').html_safe % docs_link_placeholders
......@@ -12103,6 +12103,9 @@ msgstr ""
msgid "Usage statistics"
msgstr ""
msgid "Use %{code_start}::%{code_end} to create a %{link_start}scoped label set%{link_end} (eg. %{code_start}priority::1%{code_end})"
msgstr ""
msgid "Use <code>%{native_redirect_uri}</code> for local tests"
msgstr ""
......@@ -12271,6 +12274,9 @@ msgstr ""
msgid "Users with a Guest role or those who don't belong to any projects or groups don't count towards seats in use."
msgstr ""
msgid "Using %{code_start}::%{code_end} denotes a %{link_start}scoped label set%{link_end}"
msgstr ""
msgid "Validate"
msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment