Commit 408ae93d authored by Olena Horal-Koretska's avatar Olena Horal-Koretska

Merge branch '227009-internationalize-admin-project-view' into 'master'

Resolve "Internationalize admin project view"

Closes #227009

See merge request gitlab-org/gitlab!36062
parents 41cbc98b 78816da5
...@@ -47,7 +47,6 @@ linters: ...@@ -47,7 +47,6 @@ linters:
- "app/views/admin/hooks/edit.html.haml" - "app/views/admin/hooks/edit.html.haml"
- "app/views/admin/logs/show.html.haml" - "app/views/admin/logs/show.html.haml"
- "app/views/admin/projects/_projects.html.haml" - "app/views/admin/projects/_projects.html.haml"
- "app/views/admin/projects/show.html.haml"
- "app/views/admin/requests_profiles/index.html.haml" - "app/views/admin/requests_profiles/index.html.haml"
- "app/views/admin/runners/_runner.html.haml" - "app/views/admin/runners/_runner.html.haml"
- "app/views/admin/runners/index.html.haml" - "app/views/admin/runners/index.html.haml"
......
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
.js-remove-member-modal .js-remove-member-modal
%h3.page-title %h3.page-title
Project: #{@project.full_name} = _('Project: %{name}') % { name: @project.full_name }
= link_to edit_project_path(@project), class: "btn btn-nr float-right" do = link_to edit_project_path(@project), class: "btn btn-nr float-right" do
%i.fa.fa-pencil-square-o %i.fa.fa-pencil-square-o
Edit = _('Edit')
%hr %hr
- if @project.last_repository_check_failed? - if @project.last_repository_check_failed?
.row .row
...@@ -22,57 +22,67 @@ ...@@ -22,57 +22,67 @@
.col-md-6 .col-md-6
.card .card
.card-header .card-header
Project info: = _('Project info:')
%ul.content-list %ul.content-list
%li %li
%span.light Name: %span.light
= _('Name:')
%strong %strong
= link_to @project.name, project_path(@project) = link_to @project.name, project_path(@project)
%li %li
%span.light Namespace: %span.light
= _('Namespace:')
%strong %strong
- if @project.namespace - if @project.namespace
= link_to @project.namespace.human_name, [:admin, @project.group || @project.owner] = link_to @project.namespace.human_name, [:admin, @project.group || @project.owner]
- else - else
Global = s_('ProjectSettings|Global')
%li %li
%span.light Owned by: %span.light
= _('Owned by:')
%strong %strong
- if @project.owner - if @project.owner
= link_to @project.owner_name, [:admin, @project.owner] = link_to @project.owner_name, [:admin, @project.owner]
- else - else
(deleted) = _('(deleted)')
%li %li
%span.light Created by: %span.light
= _('Created by:')
%strong %strong
= @project.creator.try(:name) || '(deleted)' = @project.creator.try(:name) || _('(deleted)')
%li %li
%span.light Created on: %span.light
= _('Created on:')
%strong %strong
= @project.created_at.to_s(:medium) = @project.created_at.to_s(:medium)
%li %li
%span.light ID: %span.light
= _('ID:')
%strong %strong
= @project.id = @project.id
%li %li
%span.light http: %span.light
= _('http:')
%strong %strong
= link_to @project.http_url_to_repo, project_path(@project) = link_to @project.http_url_to_repo, project_path(@project)
%li %li
%span.light ssh: %span.light
= _('ssh:')
%strong %strong
= link_to @project.ssh_url_to_repo, project_path(@project) = link_to @project.ssh_url_to_repo, project_path(@project)
- if @project.repository.exists? - if @project.repository.exists?
%li %li
%span.light Gitaly storage name: %span.light
= _('Gitaly storage name:')
%strong %strong
= @project.repository.storage = @project.repository.storage
%li %li
%span.light Gitaly relative path: %span.light
= _('Gitaly relative path:')
%strong %strong
= @project.repository.relative_path = @project.repository.relative_path
...@@ -80,30 +90,36 @@ ...@@ -80,30 +90,36 @@
= render 'shared/storage_counter_statistics', storage_size: @project.statistics&.storage_size, storage_details: @project.statistics = render 'shared/storage_counter_statistics', storage_size: @project.statistics&.storage_size, storage_details: @project.statistics
%li %li
%span.light last commit: %span.light
= _('last commit:')
%strong %strong
= last_commit(@project) = last_commit(@project)
%li %li
%span.light Git LFS status: %span.light
= _('Git LFS status:')
%strong %strong
= project_lfs_status(@project) = project_lfs_status(@project)
= link_to icon('question-circle'), help_page_path('topics/git/lfs/index') = link_to icon('question-circle'), help_page_path('topics/git/lfs/index')
- else - else
%li %li
%span.light repository: %span.light
= _('repository:')
%strong.cred %strong.cred
does not exist = _('does not exist')
- if @project.archived? - if @project.archived?
%li %li
%span.light archived: %span.light
%strong project is read-only = _('archived:')
%strong
= _('project is read-only')
= render_if_exists "shared_runner_status", project: @project = render_if_exists "shared_runner_status", project: @project
%li %li
%span.light access: %span.light
= _('access:')
%strong %strong
%span{ class: visibility_level_color(@project.visibility_level) } %span{ class: visibility_level_color(@project.visibility_level) }
= visibility_level_icon(@project.visibility_level) = visibility_level_icon(@project.visibility_level)
...@@ -115,24 +131,24 @@ ...@@ -115,24 +131,24 @@
.card .card
.card-header .card-header
Transfer project = s_('ProjectSettings|Transfer project')
.card-body .card-body
= form_for @project, url: transfer_admin_project_path(@project), method: :put do |f| = form_for @project, url: transfer_admin_project_path(@project), method: :put do |f|
.form-group.row .form-group.row
.col-sm-3.col-form-label .col-sm-3.col-form-label
= f.label :new_namespace_id, "Namespace" = f.label :new_namespace_id, _("Namespace")
.col-sm-9 .col-sm-9
.dropdown .dropdown
= dropdown_toggle('Search for Namespace', { toggle: 'dropdown', field_name: 'new_namespace_id' }, { toggle_class: 'js-namespace-select large' }) = dropdown_toggle(_('Search for Namespace'), { toggle: 'dropdown', field_name: 'new_namespace_id' }, { toggle_class: 'js-namespace-select large' })
.dropdown-menu.dropdown-select .dropdown-menu.dropdown-select
= dropdown_title('Namespaces') = dropdown_title(_('Namespaces'))
= dropdown_filter("Search for Namespace") = dropdown_filter(_('Search for Namespace'))
= dropdown_content = dropdown_content
= dropdown_loading = dropdown_loading
.form-group.row .form-group.row
.offset-sm-3.col-sm-9 .offset-sm-3.col-sm-9
= f.submit 'Transfer', class: 'btn btn-primary' = f.submit _('Transfer'), class: 'btn btn-primary'
.card.repository-check .card.repository-check
.card-header .card-header
...@@ -152,18 +168,18 @@ ...@@ -152,18 +168,18 @@
= link_to icon('question-circle'), help_page_path('administration/repository_checks') = link_to icon('question-circle'), help_page_path('administration/repository_checks')
.form-group .form-group
= f.submit 'Trigger repository check', class: 'btn btn-primary' = f.submit _('Trigger repository check'), class: 'btn btn-primary'
.col-md-6 .col-md-6
- if @group - if @group
.card .card
.card-header .card-header
%strong= @group.name %strong= @group.name
group members = _('group members')
%span.badge.badge-pill= @group_members.size %span.badge.badge-pill= @group_members.size
.float-right .float-right
= link_to admin_group_path(@group), class: 'btn btn-sm' do = link_to admin_group_path(@group), class: 'btn btn-sm' do
= icon('pencil-square-o', text: 'Manage access') = icon('pencil-square-o', text: _('Manage access'))
%ul.content-list.members-list %ul.content-list.members-list
= render partial: 'shared/members/member', collection: @group_members, as: :member, locals: { show_controls: false } = render partial: 'shared/members/member', collection: @group_members, as: :member, locals: { show_controls: false }
.card-footer .card-footer
...@@ -174,10 +190,10 @@ ...@@ -174,10 +190,10 @@
.card .card
.card-header .card-header
%strong= @project.name %strong= @project.name
project members = _('project members')
%span.badge.badge-pill= @project.users.size %span.badge.badge-pill= @project.users.size
.float-right .float-right
= link_to icon('pencil-square-o', text: 'Manage access'), project_project_members_path(@project), class: "btn btn-sm" = link_to icon('pencil-square-o', text: _('Manage access')), project_project_members_path(@project), class: "btn btn-sm"
%ul.content-list.project_members.members-list %ul.content-list.project_members.members-list
= render partial: 'shared/members/member', collection: @project_members, as: :member, locals: { show_controls: false } = render partial: 'shared/members/member', collection: @project_members, as: :member, locals: { show_controls: false }
.card-footer .card-footer
......
...@@ -776,6 +776,9 @@ msgstr "" ...@@ -776,6 +776,9 @@ msgstr ""
msgid "(check progress)" msgid "(check progress)"
msgstr "" msgstr ""
msgid "(deleted)"
msgstr ""
msgid "(external source)" msgid "(external source)"
msgstr "" msgstr ""
...@@ -7004,6 +7007,9 @@ msgstr "" ...@@ -7004,6 +7007,9 @@ msgstr ""
msgid "Created by me" msgid "Created by me"
msgstr "" msgstr ""
msgid "Created by:"
msgstr ""
msgid "Created date" msgid "Created date"
msgstr "" msgstr ""
...@@ -11053,6 +11059,9 @@ msgstr "" ...@@ -11053,6 +11059,9 @@ msgstr ""
msgid "Git LFS objects will be synced in pull mirrors if LFS is %{docs_link_start}enabled for the project%{docs_link_end}. They will <strong>not</strong> be synced in push mirrors." msgid "Git LFS objects will be synced in pull mirrors if LFS is %{docs_link_start}enabled for the project%{docs_link_end}. They will <strong>not</strong> be synced in push mirrors."
msgstr "" msgstr ""
msgid "Git LFS status:"
msgstr ""
msgid "Git global setup" msgid "Git global setup"
msgstr "" msgstr ""
...@@ -11254,6 +11263,12 @@ msgstr "" ...@@ -11254,6 +11263,12 @@ msgstr ""
msgid "Gitaly Servers" msgid "Gitaly Servers"
msgstr "" msgstr ""
msgid "Gitaly relative path:"
msgstr ""
msgid "Gitaly storage name:"
msgstr ""
msgid "Gitaly|Address" msgid "Gitaly|Address"
msgstr "" msgstr ""
...@@ -15351,9 +15366,18 @@ msgstr "" ...@@ -15351,9 +15366,18 @@ msgstr ""
msgid "Name:" msgid "Name:"
msgstr "" msgstr ""
msgid "Namespace"
msgstr ""
msgid "Namespace is empty" msgid "Namespace is empty"
msgstr "" msgstr ""
msgid "Namespace:"
msgstr ""
msgid "Namespaces"
msgstr ""
msgid "Namespaces to index" msgid "Namespaces to index"
msgstr "" msgstr ""
...@@ -16423,6 +16447,9 @@ msgstr "" ...@@ -16423,6 +16447,9 @@ msgstr ""
msgid "Owned by me" msgid "Owned by me"
msgstr "" msgstr ""
msgid "Owned by:"
msgstr ""
msgid "Owner" msgid "Owner"
msgstr "" msgstr ""
...@@ -18034,6 +18061,9 @@ msgstr "" ...@@ -18034,6 +18061,9 @@ msgstr ""
msgid "Project has too many %{label_for_message} to search" msgid "Project has too many %{label_for_message} to search"
msgstr "" msgstr ""
msgid "Project info:"
msgstr ""
msgid "Project is required when cluster_type is :project" msgid "Project is required when cluster_type is :project"
msgstr "" msgstr ""
...@@ -18289,6 +18319,9 @@ msgstr "" ...@@ -18289,6 +18319,9 @@ msgstr ""
msgid "ProjectSettings|Git Large File Storage (LFS)" msgid "ProjectSettings|Git Large File Storage (LFS)"
msgstr "" msgstr ""
msgid "ProjectSettings|Global"
msgstr ""
msgid "ProjectSettings|Internal" msgid "ProjectSettings|Internal"
msgstr "" msgstr ""
...@@ -18430,6 +18463,9 @@ msgstr "" ...@@ -18430,6 +18463,9 @@ msgstr ""
msgid "ProjectSettings|This will dictate the commit history when you merge a merge request" msgid "ProjectSettings|This will dictate the commit history when you merge a merge request"
msgstr "" msgstr ""
msgid "ProjectSettings|Transfer project"
msgstr ""
msgid "ProjectSettings|Users can only push commits to this repository that were committed with one of their own verified emails." msgid "ProjectSettings|Users can only push commits to this repository that were committed with one of their own verified emails."
msgstr "" msgstr ""
...@@ -20443,6 +20479,9 @@ msgstr "" ...@@ -20443,6 +20479,9 @@ msgstr ""
msgid "Search files" msgid "Search files"
msgstr "" msgstr ""
msgid "Search for Namespace"
msgstr ""
msgid "Search for a LDAP group" msgid "Search for a LDAP group"
msgstr "" msgstr ""
...@@ -24876,6 +24915,9 @@ msgstr "" ...@@ -24876,6 +24915,9 @@ msgstr ""
msgid "Track your project with Audit Events." msgid "Track your project with Audit Events."
msgstr "" msgstr ""
msgid "Transfer"
msgstr ""
msgid "Transfer ownership" msgid "Transfer ownership"
msgstr "" msgstr ""
...@@ -24960,6 +25002,9 @@ msgstr "" ...@@ -24960,6 +25002,9 @@ msgstr ""
msgid "Trigger removed." msgid "Trigger removed."
msgstr "" msgstr ""
msgid "Trigger repository check"
msgstr ""
msgid "Trigger this manual action" msgid "Trigger this manual action"
msgstr "" msgstr ""
...@@ -27440,6 +27485,9 @@ msgid_plural "about %d hours" ...@@ -27440,6 +27485,9 @@ msgid_plural "about %d hours"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
msgid "access:"
msgstr ""
msgid "activated" msgid "activated"
msgstr "" msgstr ""
...@@ -27482,6 +27530,9 @@ msgstr "" ...@@ -27482,6 +27530,9 @@ msgstr ""
msgid "archived" msgid "archived"
msgstr "" msgstr ""
msgid "archived:"
msgstr ""
msgid "assign yourself" msgid "assign yourself"
msgstr "" msgstr ""
...@@ -27813,6 +27864,9 @@ msgstr "" ...@@ -27813,6 +27864,9 @@ msgstr ""
msgid "disabled" msgid "disabled"
msgstr "" msgstr ""
msgid "does not exist"
msgstr ""
msgid "does not have a supported extension. Only %{extension_list} are supported" msgid "does not have a supported extension. Only %{extension_list} are supported"
msgstr "" msgstr ""
...@@ -27916,6 +27970,9 @@ msgstr "" ...@@ -27916,6 +27970,9 @@ msgstr ""
msgid "group" msgid "group"
msgstr "" msgstr ""
msgid "group members"
msgstr ""
msgid "groups" msgid "groups"
msgstr "" msgstr ""
...@@ -27931,6 +27988,9 @@ msgstr "" ...@@ -27931,6 +27988,9 @@ msgstr ""
msgid "here" msgid "here"
msgstr "" msgstr ""
msgid "http:"
msgstr ""
msgid "https://your-bitbucket-server" msgid "https://your-bitbucket-server"
msgstr "" msgstr ""
...@@ -28047,6 +28107,9 @@ msgstr "" ...@@ -28047,6 +28107,9 @@ msgstr ""
msgid "jigsaw is not defined" msgid "jigsaw is not defined"
msgstr "" msgstr ""
msgid "last commit:"
msgstr ""
msgid "latest" msgid "latest"
msgstr "" msgstr ""
...@@ -28546,6 +28609,12 @@ msgstr "" ...@@ -28546,6 +28609,12 @@ msgstr ""
msgid "project avatar" msgid "project avatar"
msgstr "" msgstr ""
msgid "project is read-only"
msgstr ""
msgid "project members"
msgstr ""
msgid "projects" msgid "projects"
msgstr "" msgstr ""
...@@ -28587,6 +28656,9 @@ msgid_plural "replies" ...@@ -28587,6 +28656,9 @@ msgid_plural "replies"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
msgid "repository:"
msgstr ""
msgid "reset it." msgid "reset it."
msgstr "" msgstr ""
...@@ -28659,6 +28731,9 @@ msgstr "" ...@@ -28659,6 +28731,9 @@ msgstr ""
msgid "spendCommand|%{slash_command} will update the sum of the time spent." msgid "spendCommand|%{slash_command} will update the sum of the time spent."
msgstr "" msgstr ""
msgid "ssh:"
msgstr ""
msgid "started" msgid "started"
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