Commit 361c2edb authored by Josianne Hyson's avatar Josianne Hyson

Remove HTML in translations on project members page

Replace usage of HTML in these translations with variables so that they
can be removed from the todolist and translated again.

Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/228846
parent 50588860
.card.project-members-groups .card.project-members-groups
.card-header .card-header
= _("Groups with access to <strong>%{project_name}</strong>").html_safe % { project_name: sanitize(@project.name, tags: []) } = html_escape(_("Groups with access to %{strong_open}%{project_name}%{strong_close}")) % { project_name: sanitize(@project.name, tags: []), strong_open: '<strong>'.html_safe, strong_close: '</strong>'.html_safe }
%span.badge.badge-pill= group_links.size %span.badge.badge-pill= group_links.size
%ul.content-list.members-list %ul.content-list.members-list
- can_admin_member = can?(current_user, :admin_project_member, @project) - can_admin_member = can?(current_user, :admin_project_member, @project)
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
.card .card
.card-header.flex-project-members-panel .card-header.flex-project-members-panel
%span.flex-project-title %span.flex-project-title
= _("Members of <strong>%{project_name}</strong>").html_safe % { project_name: sanitize(project.name, tags: []) } = html_escape(_("Members of %{strong_open}%{project_name}%{strong_close}")) % { project_name: sanitize(project.name, tags: []), strong_open: '<strong>'.html_safe, strong_close: '</strong>'.html_safe }
%span.badge.badge-pill= members.total_count %span.badge.badge-pill= members.total_count
= form_tag project_project_members_path(project), method: :get, class: 'form-inline user-search-form flex-users-form' do = form_tag project_project_members_path(project), method: :get, class: 'form-inline user-search-form flex-users-form' do
.form-group .form-group
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
%p= share_project_description(@project) %p= share_project_description(@project)
- else - else
%p %p
= _("Members can be added by project <i>Maintainers</i> or <i>Owners</i>").html_safe = html_escape(_("Members can be added by project %{i_open}Maintainers%{i_close} or %{i_open}Owners%{i_close}")) % { i_open: '<i>'.html_safe, i_close: '</i>'.html_safe }
.light .light
- if can_admin_project_members && project_can_be_shared? - if can_admin_project_members && project_can_be_shared?
......
...@@ -274,14 +274,6 @@ ...@@ -274,14 +274,6 @@
"Go to <strong>Issues</strong> > <strong>Boards</strong> to access your personalized learning issue board.": "Go to <strong>Issues</strong> > <strong>Boards</strong> to access your personalized learning issue board.":
plural_id: plural_id:
translations: translations:
"Groups with access to <strong>%{project_name}</strong>":
plural_id:
translations:
- "Grupos com acesso a <strong>%{project_name}</strong>"
- "<strong>%{project_name}</strong>へのアクセス権を持つグループ"
- "可以访问 <strong>%{project_name}</strong>"
- "Групи з доступом до <strong>%{project_name}</strong>"
- "Los grupos con acceso a <strong>%{project_name}</strong>"
"In order to personalize your experience with GitLab<br>we would like to know a bit more about you.": "In order to personalize your experience with GitLab<br>we would like to know a bit more about you.":
plural_id: plural_id:
translations: translations:
...@@ -1053,3 +1045,11 @@ ...@@ -1053,3 +1045,11 @@
- "在<code>.githab-ci.yml</code>的 deploy 阶段中定义 environment 来跟踪部署。" - "在<code>.githab-ci.yml</code>的 deploy 阶段中定义 environment 来跟踪部署。"
- "Визначте середовища на стадії розгортання у <code>.gitlab-ci.yml</code> щоб відстежувати розгортання тут." - "Визначте середовища на стадії розгортання у <code>.gitlab-ci.yml</code> щоб відстежувати розгортання тут."
- "Defina entornos en las distintas etapas de despliegue en el fichero <code>.gitlab-ci.yml</code> para llevar un registro de las implementaciones desde aquí." - "Defina entornos en las distintas etapas de despliegue en el fichero <code>.gitlab-ci.yml</code> para llevar un registro de las implementaciones desde aquí."
"Groups with access to <strong>%{project_name}</strong>":
plural_id:
translations:
- "Grupos com acesso a <strong>%{project_name}</strong>"
- "<strong>%{project_name}</strong>へのアクセス権を持つグループ"
- "可以访问 <strong>%{project_name}</strong>"
- "Групи з доступом до <strong>%{project_name}</strong>"
- "Los grupos con acceso a <strong>%{project_name}</strong>"
...@@ -12073,10 +12073,10 @@ msgstr "" ...@@ -12073,10 +12073,10 @@ msgstr ""
msgid "Groups to synchronize" msgid "Groups to synchronize"
msgstr "" msgstr ""
msgid "Groups with access to %{strong_start}%{group_name}%{strong_end}" msgid "Groups with access to %{strong_open}%{project_name}%{strong_close}"
msgstr "" msgstr ""
msgid "Groups with access to <strong>%{project_name}</strong>" msgid "Groups with access to %{strong_start}%{group_name}%{strong_end}"
msgstr "" msgstr ""
msgid "GroupsDropdown|Frequently visited" msgid "GroupsDropdown|Frequently visited"
...@@ -14654,10 +14654,10 @@ msgstr "" ...@@ -14654,10 +14654,10 @@ msgstr ""
msgid "Members" msgid "Members"
msgstr "" msgstr ""
msgid "Members can be added by project <i>Maintainers</i> or <i>Owners</i>" msgid "Members can be added by project %{i_open}Maintainers%{i_close} or %{i_open}Owners%{i_close}"
msgstr "" msgstr ""
msgid "Members of <strong>%{project_name}</strong>" msgid "Members of %{strong_open}%{project_name}%{strong_close}"
msgstr "" msgstr ""
msgid "Members of a group may only view projects they have permission to access" msgid "Members of a group may only view projects they have permission to access"
......
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