Commit 75525684 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Merge branch 'i18n-admin-dashboard' into 'master'

Externalize i18n strings from admin dashboard

See merge request gitlab-org/gitlab!41387
parents b088d985 36e9f4d6
...@@ -17,37 +17,34 @@ ...@@ -17,37 +17,34 @@
.well-segment.well-centered .well-segment.well-centered
= link_to admin_projects_path do = link_to admin_projects_path do
%h3.text-center %h3.text-center
Projects: = s_('AdminArea|Projects: %{number_of_projects}') % { number_of_projects: approximate_count_with_delimiters(@counts, Project) }
= approximate_count_with_delimiters(@counts, Project)
%hr %hr
= link_to('New project', new_project_path, class: "btn btn-success gl-w-full") = link_to(s_('AdminArea|New project'), new_project_path, class: "btn btn-success gl-w-full")
.col-sm-4 .col-sm-4
.info-well.dark-well .info-well.dark-well
.well-segment.well-centered .well-segment.well-centered
= link_to admin_users_path do = link_to admin_users_path do
%h3.text-center %h3.text-center
Users: = s_('AdminArea|Users: %{number_of_users}') % { number_of_users: approximate_count_with_delimiters(@counts, User) }
= approximate_count_with_delimiters(@counts, User)
%hr %hr
.btn-group.d-flex{ role: 'group' } .btn-group.d-flex{ role: 'group' }
= link_to 'New user', new_admin_user_path, class: "btn btn-success gl-w-full" = link_to s_('AdminArea|New user'), new_admin_user_path, class: "btn btn-success gl-w-full"
= link_to s_('AdminArea|Users statistics'), admin_dashboard_stats_path, class: 'btn btn-primary gl-w-full' = link_to s_('AdminArea|Users statistics'), admin_dashboard_stats_path, class: 'btn btn-primary gl-w-full'
.col-sm-4 .col-sm-4
.info-well.dark-well .info-well.dark-well
.well-segment.well-centered .well-segment.well-centered
= link_to admin_groups_path do = link_to admin_groups_path do
%h3.text-center %h3.text-center
Groups: = s_('AdminArea|Groups: %{number_of_groups}') % { number_of_groups: approximate_count_with_delimiters(@counts, Group) }
= approximate_count_with_delimiters(@counts, Group)
%hr %hr
= link_to 'New group', new_admin_group_path, class: "btn btn-success gl-w-full" = link_to s_('AdminArea|New group'), new_admin_group_path, class: "btn btn-success gl-w-full"
.row .row
.col-md-4 .col-md-4
#js-admin-statistics-container #js-admin-statistics-container
.col-md-4 .col-md-4
.info-well .info-well
.well-segment.admin-well.admin-well-features .well-segment.admin-well.admin-well-features
%h4 Features %h4= s_('AdminArea|Features')
= feature_entry(_('Sign up'), = feature_entry(_('Sign up'),
href: general_admin_application_settings_path(anchor: 'js-signup-settings'), href: general_admin_application_settings_path(anchor: 'js-signup-settings'),
enabled: allow_signup?) enabled: allow_signup?)
...@@ -87,42 +84,41 @@ ...@@ -87,42 +84,41 @@
.info-well .info-well
.well-segment.admin-well .well-segment.admin-well
%h4 %h4
Components = s_('AdminArea|Components')
- if Gitlab::CurrentSettings.version_check_enabled - if Gitlab::CurrentSettings.version_check_enabled
.float-right .float-right
= version_status_badge = version_status_badge
%p %p
%a{ href: general_admin_application_settings_path } = link_to _('GitLab'), general_admin_application_settings_path
GitLab
%span.float-right %span.float-right
= Gitlab::VERSION = Gitlab::VERSION
= "(#{Gitlab.revision})" = "(#{Gitlab.revision})"
%p %p
GitLab Shell = _('GitLab Shell')
%span.float-right %span.float-right
= Gitlab::Shell.version = Gitlab::Shell.version
%p %p
GitLab Workhorse = _('GitLab Workhorse')
%span.float-right %span.float-right
= gitlab_workhorse_version = gitlab_workhorse_version
%p %p
GitLab API = _('GitLab API')
%span.float-right %span.float-right
= API::API::version = API::API::version
- if Gitlab.config.pages.enabled - if Gitlab.config.pages.enabled
%p %p
GitLab Pages = _('GitLab Pages')
%span.float-right %span.float-right
= Gitlab::Pages::VERSION = Gitlab::Pages::VERSION
= render_if_exists 'admin/dashboard/geo' = render_if_exists 'admin/dashboard/geo'
%p %p
Ruby = _('Ruby')
%span.float-right %span.float-right
#{RUBY_VERSION}p#{RUBY_PATCHLEVEL} #{RUBY_VERSION}p#{RUBY_PATCHLEVEL}
%p %p
Rails = _('Rails')
%span.float-right %span.float-right
#{Rails::VERSION::STRING} #{Rails::VERSION::STRING}
%p %p
...@@ -130,12 +126,12 @@ ...@@ -130,12 +126,12 @@
%span.float-right %span.float-right
= Gitlab::Database.version = Gitlab::Database.version
%p %p
= link_to "Gitaly Servers", admin_gitaly_servers_path = link_to _("Gitaly Servers"), admin_gitaly_servers_path
.row .row
.col-md-4 .col-md-4
.info-well .info-well
.well-segment.admin-well .well-segment.admin-well
%h4 Latest projects %h4= s_('AdminArea|Latest projects')
- @projects.each do |project| - @projects.each do |project|
%p %p
= link_to project.full_name, admin_project_path(project), class: 'str-truncated-60' = link_to project.full_name, admin_project_path(project), class: 'str-truncated-60'
...@@ -144,7 +140,7 @@ ...@@ -144,7 +140,7 @@
.col-md-4 .col-md-4
.info-well .info-well
.well-segment.admin-well .well-segment.admin-well
%h4 Latest users %h4= s_('AdminArea|Latest users')
- @users.each do |user| - @users.each do |user|
%p %p
= link_to [:admin, user], class: 'str-truncated-60' do = link_to [:admin, user], class: 'str-truncated-60' do
...@@ -154,7 +150,7 @@ ...@@ -154,7 +150,7 @@
.col-md-4 .col-md-4
.info-well .info-well
.well-segment.admin-well .well-segment.admin-well
%h4 Latest groups %h4= s_('AdminArea|Latest groups')
- @groups.each do |group| - @groups.each do |group|
%p %p
= link_to [:admin, group], class: 'str-truncated-60' do = link_to [:admin, group], class: 'str-truncated-60' do
......
---
title: Externalize i18n strings from admin dashboard
merge_request: 41387
author: Takuya Noguchi
type: other
...@@ -1776,21 +1776,51 @@ msgstr "" ...@@ -1776,21 +1776,51 @@ msgstr ""
msgid "AdminArea|Bots" msgid "AdminArea|Bots"
msgstr "" msgstr ""
msgid "AdminArea|Components"
msgstr ""
msgid "AdminArea|Developer" msgid "AdminArea|Developer"
msgstr "" msgstr ""
msgid "AdminArea|Features"
msgstr ""
msgid "AdminArea|Groups: %{number_of_groups}"
msgstr ""
msgid "AdminArea|Guest" msgid "AdminArea|Guest"
msgstr "" msgstr ""
msgid "AdminArea|Included Free in license" msgid "AdminArea|Included Free in license"
msgstr "" msgstr ""
msgid "AdminArea|Latest groups"
msgstr ""
msgid "AdminArea|Latest projects"
msgstr ""
msgid "AdminArea|Latest users"
msgstr ""
msgid "AdminArea|Maintainer" msgid "AdminArea|Maintainer"
msgstr "" msgstr ""
msgid "AdminArea|New group"
msgstr ""
msgid "AdminArea|New project"
msgstr ""
msgid "AdminArea|New user"
msgstr ""
msgid "AdminArea|Owner" msgid "AdminArea|Owner"
msgstr "" msgstr ""
msgid "AdminArea|Projects: %{number_of_projects}"
msgstr ""
msgid "AdminArea|Reporter" msgid "AdminArea|Reporter"
msgstr "" msgstr ""
...@@ -1818,6 +1848,9 @@ msgstr "" ...@@ -1818,6 +1848,9 @@ msgstr ""
msgid "AdminArea|Users without a Group and Project" msgid "AdminArea|Users without a Group and Project"
msgstr "" msgstr ""
msgid "AdminArea|Users: %{number_of_users}"
msgstr ""
msgid "AdminArea|You’re about to stop all jobs.This will halt all current jobs that are running." msgid "AdminArea|You’re about to stop all jobs.This will halt all current jobs that are running."
msgstr "" msgstr ""
...@@ -11696,9 +11729,15 @@ msgstr "" ...@@ -11696,9 +11729,15 @@ msgstr ""
msgid "GitHub import" msgid "GitHub import"
msgstr "" msgstr ""
msgid "GitLab"
msgstr ""
msgid "GitLab / Unsubscribe" msgid "GitLab / Unsubscribe"
msgstr "" msgstr ""
msgid "GitLab API"
msgstr ""
msgid "GitLab Enterprise Edition %{plan}" msgid "GitLab Enterprise Edition %{plan}"
msgstr "" msgstr ""
...@@ -11711,12 +11750,18 @@ msgstr "" ...@@ -11711,12 +11750,18 @@ msgstr ""
msgid "GitLab Issue" msgid "GitLab Issue"
msgstr "" msgstr ""
msgid "GitLab Pages"
msgstr ""
msgid "GitLab Service Desk is a simple way to allow people to create issues in your GitLab instance without needing their own user account. It provides a unique email address for end users to create issues in a project, and replies can be sent either through the GitLab interface or by email. End users will only see the thread through email." msgid "GitLab Service Desk is a simple way to allow people to create issues in your GitLab instance without needing their own user account. It provides a unique email address for end users to create issues in a project, and replies can be sent either through the GitLab interface or by email. End users will only see the thread through email."
msgstr "" msgstr ""
msgid "GitLab Shared Runners execute code of different projects on the same Runner unless you configure GitLab Runner Autoscale with MaxBuilds 1 (which it is on GitLab.com)." msgid "GitLab Shared Runners execute code of different projects on the same Runner unless you configure GitLab Runner Autoscale with MaxBuilds 1 (which it is on GitLab.com)."
msgstr "" msgstr ""
msgid "GitLab Shell"
msgstr ""
msgid "GitLab Support Bot" msgid "GitLab Support Bot"
msgstr "" msgstr ""
...@@ -11726,6 +11771,9 @@ msgstr "" ...@@ -11726,6 +11771,9 @@ msgstr ""
msgid "GitLab User" msgid "GitLab User"
msgstr "" msgstr ""
msgid "GitLab Workhorse"
msgstr ""
msgid "GitLab allows you to continue using your license even if you exceed the number of seats you purchased. You will be required to pay for these seats when you renew your license." msgid "GitLab allows you to continue using your license even if you exceed the number of seats you purchased. You will be required to pay for these seats when you renew your license."
msgstr "" msgstr ""
...@@ -20502,6 +20550,9 @@ msgstr "" ...@@ -20502,6 +20550,9 @@ msgstr ""
msgid "README" msgid "README"
msgstr "" msgstr ""
msgid "Rails"
msgstr ""
msgid "Rake Tasks Help" msgid "Rake Tasks Help"
msgstr "" msgstr ""
...@@ -21528,6 +21579,9 @@ msgstr "" ...@@ -21528,6 +21579,9 @@ msgstr ""
msgid "Rook" msgid "Rook"
msgstr "" msgstr ""
msgid "Ruby"
msgstr ""
msgid "Rule name is already taken." msgid "Rule name is already taken."
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