Commit 03437b49 authored by Tao Wang's avatar Tao Wang

i18n: externalize strings from 'app/views/admin/groups'

Signed-off-by: default avatarTao Wang <twang2218@gmail.com>
parent d5e53119
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
= render_if_exists 'admin/namespace_plan', f: f = render_if_exists 'admin/namespace_plan', f: f
.form-group.row.group-description-holder .form-group.row.group-description-holder
= f.label :avatar, "Group avatar", class: 'col-form-label col-sm-2' = f.label :avatar, _("Group avatar"), class: 'col-form-label col-sm-2'
.col-sm-10 .col-sm-10
= render 'shared/choose_group_avatar_button', f: f = render 'shared/choose_group_avatar_button', f: f
...@@ -26,12 +26,12 @@ ...@@ -26,12 +26,12 @@
.alert.alert-info .alert.alert-info
= render 'shared/group_tips' = render 'shared/group_tips'
.form-actions .form-actions
= f.submit 'Create group', class: "btn btn-create" = f.submit _('Create group'), class: "btn btn-create"
= link_to 'Cancel', admin_groups_path, class: "btn btn-cancel" = link_to _('Cancel'), admin_groups_path, class: "btn btn-cancel"
- else - else
.form-actions .form-actions
= f.submit 'Save changes', class: "btn btn-save" = f.submit _('Save changes'), class: "btn btn-save"
= link_to 'Cancel', admin_group_path(@group), class: "btn btn-cancel" = link_to _('Cancel'), admin_group_path(@group), class: "btn btn-cancel"
= render_if_exists 'ldap_group_links/ldap_syncrhonizations', group: @group = render_if_exists 'ldap_group_links/ldap_syncrhonizations', group: @group
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
%li.group-row{ class: css_class } %li.group-row{ class: css_class }
.controls .controls
= link_to 'Edit', admin_group_edit_path(group), id: "edit_#{dom_id(group)}", class: 'btn' = link_to _('Edit'), admin_group_edit_path(group), id: "edit_#{dom_id(group)}", class: 'btn'
= link_to 'Delete', [:admin, group], data: { confirm: "Are you sure you want to remove #{group.name}?" }, method: :delete, class: 'btn btn-remove' = link_to _('Delete'), [:admin, group], data: { confirm: _("Are you sure you want to remove %{group_name}?") % { group_name: group.name } }, method: :delete, class: 'btn btn-remove'
.stats .stats
%span.badge.badge-pill %span.badge.badge-pill
= storage_counter(group.storage_size) = storage_counter(group.storage_size)
......
- page_title "Edit", @group.name, "Groups" - page_title _("Edit"), @group.name, _("Groups")
%h3.page-title Edit group: #{@group.name} %h3.page-title= _('Edit group: %{group_name}') % { group_name: @group.name }
%hr %hr
= render 'form', visibility_level: @group.visibility_level = render 'form', visibility_level: @group.visibility_level
- @no_container = true - @no_container = true
- page_title "Groups" - page_title _("Groups")
%div{ class: container_class } %div{ class: container_class }
.top-area .top-area
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
= icon("search", class: "search-icon") = icon("search", class: "search-icon")
= render "shared/groups/dropdown", options_hash: admin_groups_sort_options_hash = render "shared/groups/dropdown", options_hash: admin_groups_sort_options_hash
= link_to new_admin_group_path, class: "btn btn-new" do = link_to new_admin_group_path, class: "btn btn-new" do
New group = _('New group')
%ul.content-list %ul.content-list
= render @groups = render @groups
......
- page_title "New Group" - page_title _("New Group")
%h3.page-title New group %h3.page-title= _('New group')
%hr %hr
= render 'form', visibility_level: default_group_visibility = render 'form', visibility_level: default_group_visibility
- add_to_breadcrumbs "Groups", admin_groups_path - add_to_breadcrumbs _("Groups"), admin_groups_path
- breadcrumb_title @group.name - breadcrumb_title @group.name
- page_title @group.name, "Groups" - page_title @group.name, _("Groups")
%h3.page-title %h3.page-title
Group: #{@group.full_name} = _('Group: %{group_name}') % { group_name: @group.full_name }
= link_to admin_group_edit_path(@group), class: "btn float-right" do = link_to admin_group_edit_path(@group), class: "btn float-right" do
%i.fa.fa-pencil-square-o %i.fa.fa-pencil-square-o
Edit = _('Edit')
%hr %hr
.row .row
.col-md-6 .col-md-6
.card .card
.card-header .card-header
Group info: = _('Group info:')
%ul.content-list %ul.content-list
%li %li
.avatar-container.s60 .avatar-container.s60
= group_icon(@group, class: "avatar s60") = group_icon(@group, class: "avatar s60")
%li %li
%span.light Name: %span.light= _('Name:')
%strong= @group.name %strong= @group.name
%li %li
%span.light Path: %span.light= _('Path:')
%strong %strong
= @group.path = @group.path
%li %li
%span.light Description: %span.light= _('Description:')
%strong %strong
= @group.description = @group.description
%li %li
%span.light Visibility level: %span.light= _('Visibility level:')
%strong %strong
= visibility_level_label(@group.visibility_level) = visibility_level_label(@group.visibility_level)
%li %li
%span.light Created on: %span.light= _('Created on:')
%strong %strong
= @group.created_at.to_s(:medium) = @group.created_at.to_s(:medium)
= render_if_exists 'admin/namespace_plan_info', namespace: @group = render_if_exists 'admin/namespace_plan_info', namespace: @group
%li %li
%span.light Storage: %span.light= _('Storage:')
%strong= storage_counter(@group.storage_size) - counter_storage = storage_counter(@group.storage_size)
( - counter_repositories = storage_counter(@group.repository_size)
= storage_counter(@group.repository_size) - counter_build_artifacts = storage_counter(@group.build_artifacts_size)
repositories, - counter_lfs_objects = storage_counter(@group.lfs_objects_size)
= storage_counter(@group.build_artifacts_size) %strong
build artifacts, = _("%{counter_storage} (%{counter_repositories} repositories, %{counter_build_artifacts} build artifacts, %{counter_lfs_objects} LFS)") % { counter_storage: counter_storage, counter_repositories: counter_repositories, counter_build_artifacts: counter_build_artifacts, counter_lfs_objects: counter_lfs_objects }
= storage_counter(@group.lfs_objects_size)
LFS
)
%li %li
%span.light Group Git LFS status: %span.light= _('Group Git LFS status:')
%strong %strong
= group_lfs_status(@group) = group_lfs_status(@group)
= link_to icon('question-circle'), help_page_path('workflow/lfs/manage_large_binaries_with_git_lfs') = link_to icon('question-circle'), help_page_path('workflow/lfs/manage_large_binaries_with_git_lfs')
...@@ -67,7 +64,7 @@ ...@@ -67,7 +64,7 @@
.card .card
.card-header .card-header
%h3.card-title %h3.card-title
Projects = _('Projects')
%span.badge.badge-pill %span.badge.badge-pill
#{@group.projects.count} #{@group.projects.count}
%ul.content-list %ul.content-list
...@@ -85,7 +82,7 @@ ...@@ -85,7 +82,7 @@
- if @group.shared_projects.any? - if @group.shared_projects.any?
.card .card
.card-header .card-header
Projects shared with #{@group.name} = _('Projects shared with %{group_name}') % { group_name: @group.name }
%span.badge.badge-pill %span.badge.badge-pill
#{@group.shared_projects.count} #{@group.shared_projects.count}
%ul.content-list %ul.content-list
...@@ -102,11 +99,11 @@ ...@@ -102,11 +99,11 @@
- if can?(current_user, :admin_group_member, @group) - if can?(current_user, :admin_group_member, @group)
.card .card
.card-header .card-header
Add user(s) to the group: = _('Add user(s) to the group:')
.card-body.form-holder .card-body.form-holder
%p.light %p.light
Read more about project permissions - link_to_help = link_to(_("here"), help_page_path("user/permissions"), class: "vlink")
%strong= link_to "here", help_page_path("user/permissions"), class: "vlink" = _('Read more about project permissions <strong>%{link_to_help}</strong>').html_safe % { link_to_help: link_to_help }
= form_tag admin_group_members_update_path(@group), id: "new_project_member", class: "bulk_import", method: :put do = form_tag admin_group_members_update_path(@group), id: "new_project_member", class: "bulk_import", method: :put do
%div %div
...@@ -114,16 +111,15 @@ ...@@ -114,16 +111,15 @@
.prepend-top-10 .prepend-top-10
= select_tag :access_level, options_for_select(GroupMember.access_level_roles), class: "project-access-select select2" = select_tag :access_level, options_for_select(GroupMember.access_level_roles), class: "project-access-select select2"
%hr %hr
= button_tag 'Add users to group', class: "btn btn-create" = button_tag _('Add users to group'), class: "btn btn-create"
= render 'shared/members/requests', membership_source: @group, requesters: @requesters, force_mobile_view: true = render 'shared/members/requests', membership_source: @group, requesters: @requesters, force_mobile_view: true
.card .card
.card-header .card-header
%strong= @group.name = _("<strong>%{group_name}</strong> group members").html_safe % { group_name: @group.name }
group members
%span.badge.badge-pill= @group.members.size %span.badge.badge-pill= @group.members.size
.float-right .float-right
= link_to icon('pencil-square-o', text: 'Manage access'), polymorphic_url([@group, :members]), class: "btn btn-sm" = link_to icon('pencil-square-o', text: _('Manage access')), polymorphic_url([@group, :members]), class: "btn btn-sm"
%ul.content-list.group-users-list.content-list.members-list %ul.content-list.group-users-list.content-list.members-list
= render partial: 'shared/members/member', collection: @members, as: :member, locals: { show_controls: false } = render partial: 'shared/members/member', collection: @members, as: :member, locals: { show_controls: false }
.card-footer .card-footer
......
...@@ -77,6 +77,9 @@ msgstr "" ...@@ -77,6 +77,9 @@ msgstr ""
msgid "%{commit_author_link} authored %{commit_timeago}" msgid "%{commit_author_link} authored %{commit_timeago}"
msgstr "" msgstr ""
msgid "%{counter_storage} (%{counter_repositories} repositories, %{counter_build_artifacts} build artifacts, %{counter_lfs_objects} LFS)"
msgstr ""
msgid "%{count} participant" msgid "%{count} participant"
msgid_plural "%{count} participants" msgid_plural "%{count} participants"
msgstr[0] "" msgstr[0] ""
...@@ -202,6 +205,9 @@ msgstr "" ...@@ -202,6 +205,9 @@ msgstr ""
msgid "404|Please contact your GitLab administrator if you think this is a mistake." msgid "404|Please contact your GitLab administrator if you think this is a mistake."
msgstr "" msgstr ""
msgid "<strong>%{group_name}</strong> group members"
msgstr ""
msgid "<strong>Removes</strong> source branch" msgid "<strong>Removes</strong> source branch"
msgstr "" msgstr ""
...@@ -283,6 +289,12 @@ msgstr "" ...@@ -283,6 +289,12 @@ msgstr ""
msgid "Add todo" msgid "Add todo"
msgstr "" msgstr ""
msgid "Add user(s) to the group:"
msgstr ""
msgid "Add users to group"
msgstr ""
msgid "AdminArea|Stop all jobs" msgid "AdminArea|Stop all jobs"
msgstr "" msgstr ""
...@@ -484,6 +496,9 @@ msgstr "" ...@@ -484,6 +496,9 @@ msgstr ""
msgid "Are you sure you want to delete this pipeline schedule?" msgid "Are you sure you want to delete this pipeline schedule?"
msgstr "" msgstr ""
msgid "Are you sure you want to remove %{group_name}?"
msgstr ""
msgid "Are you sure you want to remove this identity?" msgid "Are you sure you want to remove this identity?"
msgstr "" msgstr ""
...@@ -1705,6 +1720,9 @@ msgstr "" ...@@ -1705,6 +1720,9 @@ msgstr ""
msgid "Create file" msgid "Create file"
msgstr "" msgstr ""
msgid "Create group"
msgstr ""
msgid "Create group label" msgid "Create group label"
msgstr "" msgstr ""
...@@ -1753,6 +1771,9 @@ msgstr "" ...@@ -1753,6 +1771,9 @@ msgstr ""
msgid "Created by me" msgid "Created by me"
msgstr "" msgstr ""
msgid "Created on:"
msgstr ""
msgid "Cron Timezone" msgid "Cron Timezone"
msgstr "" msgstr ""
...@@ -1959,6 +1980,9 @@ msgstr "" ...@@ -1959,6 +1980,9 @@ msgstr ""
msgid "Description" msgid "Description"
msgstr "" msgstr ""
msgid "Description:"
msgstr ""
msgid "Details" msgid "Details"
msgstr "" msgstr ""
...@@ -2055,6 +2079,9 @@ msgstr "" ...@@ -2055,6 +2079,9 @@ msgstr ""
msgid "Edit files in the editor and commit changes here" msgid "Edit files in the editor and commit changes here"
msgstr "" msgstr ""
msgid "Edit group: %{group_name}"
msgstr ""
msgid "Edit identity for %{user_name}" msgid "Edit identity for %{user_name}"
msgstr "" msgstr ""
...@@ -2453,15 +2480,27 @@ msgstr "" ...@@ -2453,15 +2480,27 @@ msgstr ""
msgid "Group CI/CD settings" msgid "Group CI/CD settings"
msgstr "" msgstr ""
msgid "Group Git LFS status:"
msgstr ""
msgid "Group ID" msgid "Group ID"
msgstr "" msgstr ""
msgid "Group Runners" msgid "Group Runners"
msgstr "" msgstr ""
msgid "Group avatar"
msgstr ""
msgid "Group info:"
msgstr ""
msgid "Group maintainers can register group runners in the %{link}" msgid "Group maintainers can register group runners in the %{link}"
msgstr "" msgstr ""
msgid "Group: %{group_name}"
msgstr ""
msgid "GroupSettings|Prevent sharing a project within %{group} with other groups" msgid "GroupSettings|Prevent sharing a project within %{group} with other groups"
msgstr "" msgstr ""
...@@ -2895,6 +2934,9 @@ msgstr "" ...@@ -2895,6 +2934,9 @@ msgstr ""
msgid "Locked to current projects" msgid "Locked to current projects"
msgstr "" msgstr ""
msgid "Manage access"
msgstr ""
msgid "Manage all notifications" msgid "Manage all notifications"
msgstr "" msgstr ""
...@@ -3081,6 +3123,9 @@ msgstr "" ...@@ -3081,6 +3123,9 @@ msgstr ""
msgid "Name your individual key via a title" msgid "Name your individual key via a title"
msgstr "" msgstr ""
msgid "Name:"
msgstr ""
msgid "Nav|Help" msgid "Nav|Help"
msgstr "" msgstr ""
...@@ -3096,6 +3141,9 @@ msgstr "" ...@@ -3096,6 +3141,9 @@ msgstr ""
msgid "New" msgid "New"
msgstr "" msgstr ""
msgid "New Group"
msgstr ""
msgid "New Identity" msgid "New Identity"
msgstr "" msgstr ""
...@@ -3383,6 +3431,9 @@ msgstr "" ...@@ -3383,6 +3431,9 @@ msgstr ""
msgid "Paste your public SSH key, which is usually contained in the file '~/.ssh/id_rsa.pub' and begins with 'ssh-rsa'. Don't use your private SSH key." msgid "Paste your public SSH key, which is usually contained in the file '~/.ssh/id_rsa.pub' and begins with 'ssh-rsa'. Don't use your private SSH key."
msgstr "" msgstr ""
msgid "Path:"
msgstr ""
msgid "Pause" msgid "Pause"
msgstr "" msgstr ""
...@@ -3743,6 +3794,9 @@ msgstr "" ...@@ -3743,6 +3794,9 @@ msgstr ""
msgid "Projects" msgid "Projects"
msgstr "" msgstr ""
msgid "Projects shared with %{group_name}"
msgstr ""
msgid "ProjectsDropdown|Frequently visited" msgid "ProjectsDropdown|Frequently visited"
msgstr "" msgstr ""
...@@ -3869,6 +3923,9 @@ msgstr "" ...@@ -3869,6 +3923,9 @@ msgstr ""
msgid "Read more" msgid "Read more"
msgstr "" msgstr ""
msgid "Read more about project permissions <strong>%{link_to_help}</strong>"
msgstr ""
msgid "Readme" msgid "Readme"
msgstr "" msgstr ""
...@@ -4428,6 +4485,9 @@ msgstr "" ...@@ -4428,6 +4485,9 @@ msgstr ""
msgid "Storage" msgid "Storage"
msgstr "" msgstr ""
msgid "Storage:"
msgstr ""
msgid "Subgroups" msgid "Subgroups"
msgstr "" msgstr ""
...@@ -5126,6 +5186,9 @@ msgstr "" ...@@ -5126,6 +5186,9 @@ msgstr ""
msgid "Visibility and access controls" msgid "Visibility and access controls"
msgstr "" msgstr ""
msgid "Visibility level:"
msgstr ""
msgid "Visibility:" msgid "Visibility:"
msgstr "" msgstr ""
...@@ -5479,6 +5542,9 @@ msgstr "" ...@@ -5479,6 +5542,9 @@ msgstr ""
msgid "for this project" msgid "for this project"
msgstr "" msgstr ""
msgid "here"
msgstr ""
msgid "importing" msgid "importing"
msgstr "" 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