diff options
7 files changed, 68 insertions, 18 deletions
diff --git a/app/views/instance_statistics/cohorts/_cohorts_table.html.haml b/app/views/instance_statistics/cohorts/_cohorts_table.html.haml index 6a7c999bff3..d148e27edbe 100644 --- a/app/views/instance_statistics/cohorts/_cohorts_table.html.haml +++ b/app/views/instance_statistics/cohorts/_cohorts_table.html.haml @@ -1,19 +1,19 @@ .bs-callout.clearfix %p - User cohorts are shown for the last #{@cohorts[:months_included]} - months. Only users with activity are counted in the cohort total; inactive - users are counted separately. - = link_to icon('question-circle'), help_page_path('user/instance_statistics/user_cohorts', anchor: 'cohorts'), title: 'About this feature', target: '_blank' + = _("User cohorts are shown for the last %{months_included} " + | + "months. Only users with activity are counted in the cohort total; inactive" + | + "users are counted separately.") % { months_included: @cohorts[:months_included] } | + = link_to icon('question-circle'), help_page_path('user/instance_statistics/user_cohorts', anchor: 'cohorts'), title: _('About this feature'), target: '_blank' .table-holder %table.table %thead %tr - %th Registration month - %th Inactive users - %th Cohort total + %th= _('Registration month') + %th= _('Inactive users') + %th= _('Cohort total') - @cohorts[:months_included].times do |i| - %th Month #{i} + %th= _('Month %{month_number}') % { month_number: i } %tbody - @cohorts[:cohorts].each do |cohort| %tr diff --git a/app/views/instance_statistics/conversational_development_index/_callout.html.haml b/app/views/instance_statistics/conversational_development_index/_callout.html.haml index 33a4dab1e00..a4256e23979 100644 --- a/app/views/instance_statistics/conversational_development_index/_callout.html.haml +++ b/app/views/instance_statistics/conversational_development_index/_callout.html.haml @@ -2,12 +2,12 @@ .user-callout{ data: { uid: 'convdev_intro_callout_dismissed' } } .bordered-box.landing.content-block %button.btn.btn-default.close.js-close-callout{ type: 'button', - 'aria-label' => 'Dismiss ConvDev introduction' } + 'aria-label' => _('Dismiss ConvDev introduction') } = icon('times', class: 'dismiss-icon', 'aria-hidden' => 'true') .user-callout-copy %h4 - Introducing Your Conversational Development Index + = _('Introducing Your Conversational Development Index') %p - Your Conversational Development Index gives an overview of how you are using GitLab from a feature perspective. View how you compare with other organizations, discover features you are not using, and learn best practices through blog posts and white papers. + = _('Your Conversational Development Index gives an overview of how you are using GitLab from a feature perspective. View how you compare with other organizations, discover features you are not using, and learn best practices through blog posts and white papers.') .svg-container.convdev = custom_icon('convdev_overview') diff --git a/app/views/instance_statistics/conversational_development_index/_card.html.haml b/app/views/instance_statistics/conversational_development_index/_card.html.haml index 57eda06630b..76af55dcf7a 100644 --- a/app/views/instance_statistics/conversational_development_index/_card.html.haml +++ b/app/views/instance_statistics/conversational_development_index/_card.html.haml @@ -9,11 +9,11 @@ .board-card-score .board-card-score-value = format_score(card.instance_score) - .board-card-score-name You + .board-card-score-name= _('You') .board-card-score .board-card-score-value = format_score(card.leader_score) - .board-card-score-name Lead + .board-card-score-name= _('Lead') .board-card-score-big = number_to_percentage(card.percentage_score, precision: 1) .board-card-buttons diff --git a/app/views/instance_statistics/conversational_development_index/_no_data.html.haml b/app/views/instance_statistics/conversational_development_index/_no_data.html.haml index dd795aee135..4e8f34cd574 100644 --- a/app/views/instance_statistics/conversational_development_index/_no_data.html.haml +++ b/app/views/instance_statistics/conversational_development_index/_no_data.html.haml @@ -1,7 +1,7 @@ .container.convdev-empty .col-sm-12.justify-content-center.text-center = custom_icon('convdev_no_data') - %h4 Data is still calculating... + %h4= _('Data is still calculating...') %p - In order to gather accurate feature usage data, it can take 1 to 2 weeks to see your index. - = link_to 'Learn more', help_page_path('user/instance_statistics/convdev'), target: '_blank' + = _('In order to gather accurate feature usage data, it can take 1 to 2 weeks to see your index.') + = link_to _('Learn more'), help_page_path('user/instance_statistics/convdev'), target: '_blank' diff --git a/app/views/instance_statistics/conversational_development_index/index.html.haml b/app/views/instance_statistics/conversational_development_index/index.html.haml index 1e7db4982d6..23f90b876a0 100644 --- a/app/views/instance_statistics/conversational_development_index/index.html.haml +++ b/app/views/instance_statistics/conversational_development_index/index.html.haml @@ -17,9 +17,9 @@ %h2.convdev-header-title{ class: "convdev-#{score_level(@metric.average_percentage_score)}-score" } = number_to_percentage(@metric.average_percentage_score, precision: 1) .convdev-header-subtitle - index + = _('index') %br - score + = _('score') = link_to icon('question-circle', 'aria-hidden' => 'true'), help_page_path('user/instance_statistics/convdev') .convdev-cards.board-card-container diff --git a/changelogs/unreleased/instance-statistics-ext.yml b/changelogs/unreleased/instance-statistics-ext.yml new file mode 100644 index 00000000000..10024aecea4 --- /dev/null +++ b/changelogs/unreleased/instance-statistics-ext.yml @@ -0,0 +1,5 @@ +--- +title: Externalize instance statistics strings +merge_request: +author: +type: other diff --git a/locale/gitlab.pot b/locale/gitlab.pot index a72e921dcce..a3a0ef82a7f 100644 --- a/locale/gitlab.pot +++ b/locale/gitlab.pot @@ -330,6 +330,9 @@ msgstr "" msgid "About auto deploy" msgstr "" +msgid "About this feature" +msgstr "" + msgid "Abuse Reports" msgstr "" @@ -1908,6 +1911,9 @@ msgstr "" msgid "Code" msgstr "" +msgid "Cohort total" +msgstr "" + msgid "Cohorts" msgstr "" @@ -2375,6 +2381,9 @@ msgstr "" msgid "DashboardProjects|Personal" msgstr "" +msgid "Data is still calculating..." +msgstr "" + msgid "Debug" msgstr "" @@ -2656,6 +2665,9 @@ msgstr "" msgid "Dismiss" msgstr "" +msgid "Dismiss ConvDev introduction" +msgstr "" + msgid "Dismiss Cycle Analytics introduction box" msgstr "" @@ -3759,9 +3771,15 @@ msgstr "" msgid "In order to enable instance-level analytics, please ask an admin to enable %{usage_ping_link_start}usage ping%{usage_ping_link_end}." msgstr "" +msgid "In order to gather accurate feature usage data, it can take 1 to 2 weeks to see your index." +msgstr "" + msgid "In the next step, you'll be able to select the projects you want to import." msgstr "" +msgid "Inactive users" +msgstr "" + msgid "Include a Terms of Service agreement and Privacy Policy that all users must accept." msgstr "" @@ -3828,6 +3846,9 @@ msgstr "" msgid "Introducing Cycle Analytics" msgstr "" +msgid "Introducing Your Conversational Development Index" +msgstr "" + msgid "Invitation" msgstr "" @@ -4055,6 +4076,9 @@ msgstr "" msgid "Latest pipeline for this branch" msgstr "" +msgid "Lead" +msgstr "" + msgid "Learn more" msgstr "" @@ -4441,6 +4465,9 @@ msgstr "" msgid "Monitoring" msgstr "" +msgid "Month %{month_number}" +msgstr "" + msgid "More" msgstr "" @@ -5749,6 +5776,9 @@ msgstr "" msgid "Register and see your runners for this project." msgstr "" +msgid "Registration month" +msgstr "" + msgid "Registry" msgstr "" @@ -7638,6 +7668,9 @@ msgstr "" msgid "User and IP Rate Limits" msgstr "" +msgid "User cohorts are shown for the last %{months_included} months. Only users with activity are counted in the cohort total; inactiveusers are counted separately." +msgstr "" + msgid "User map" msgstr "" @@ -7968,6 +8001,9 @@ msgstr "" msgid "Yesterday" msgstr "" +msgid "You" +msgstr "" + msgid "You are an admin, which means granting access to <strong>%{client_name}</strong> will allow them to interact with GitLab as an admin as well. Proceed with caution." msgstr "" @@ -8106,6 +8142,9 @@ msgstr "" msgid "YouTube" msgstr "" +msgid "Your Conversational Development Index gives an overview of how you are using GitLab from a feature perspective. View how you compare with other organizations, discover features you are not using, and learn best practices through blog posts and white papers." +msgstr "" + msgid "Your Groups" msgstr "" @@ -8269,6 +8308,9 @@ msgstr "" msgid "in project %{link_to_project}" msgstr "" +msgid "index" +msgstr "" + msgid "issue boards" msgstr "" @@ -8544,6 +8586,9 @@ msgid_plural "replies" msgstr[0] "" msgstr[1] "" +msgid "score" +msgstr "" + msgid "should be higher than %{access} inherited membership from group %{group_name}" msgstr "" |