summaryrefslogtreecommitdiff
path: root/app/views/projects/cycle_analytics
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-05-03 12:02:26 +0100
committerPhil Hughes <me@iamphill.com>2017-05-03 12:02:26 +0100
commit93f27958d02389b3550d25470ccd29b304005e96 (patch)
tree83deff34c5347dfdb38c6298c5ba677cbe330be9 /app/views/projects/cycle_analytics
parent6d5364cfb0e39f49afac9b465f37bd19185c3755 (diff)
downloadgitlab-ce-93f27958d02389b3550d25470ccd29b304005e96.tar.gz
Updated some JS translate methods to correctly take in context
Diffstat (limited to 'app/views/projects/cycle_analytics')
-rw-r--r--app/views/projects/cycle_analytics/_no_access.html.haml2
-rw-r--r--app/views/projects/cycle_analytics/show.html.haml13
2 files changed, 7 insertions, 8 deletions
diff --git a/app/views/projects/cycle_analytics/_no_access.html.haml b/app/views/projects/cycle_analytics/_no_access.html.haml
index dcfd1b7afc0..c3eda398234 100644
--- a/app/views/projects/cycle_analytics/_no_access.html.haml
+++ b/app/views/projects/cycle_analytics/_no_access.html.haml
@@ -4,4 +4,4 @@
= custom_icon ('icon_lock')
%h4 {{ __('You need permission.') }}
%p
- {{ __('Want to see the data? Please ask administrator for access.') }}
+ {{ __('Want to see the data? Please ask an administrator for access.') }}
diff --git a/app/views/projects/cycle_analytics/show.html.haml b/app/views/projects/cycle_analytics/show.html.haml
index a8ce021e05f..376b1369405 100644
--- a/app/views/projects/cycle_analytics/show.html.haml
+++ b/app/views/projects/cycle_analytics/show.html.haml
@@ -20,8 +20,7 @@
%p
{{ __('Cycle Analytics gives an overview of how much time it takes to go from idea to production in your project.') }}
- = link_to help_page_path('user/project/cycle_analytics'), target: '_blank', class: 'btn' do
- {{ __('Read more') }}
+ = link_to _('Read more'), help_page_path('user/project/cycle_analytics'), target: '_blank', class: 'btn'
= icon("spinner spin", "v-show" => "isLoading")
.wrapper{ "v-show" => "!isLoading && !hasError" }
.panel.panel-default
@@ -32,19 +31,19 @@
.row
.col-sm-3.col-xs-12.column{ "v-for" => "item in state.summary" }
%h3.header {{ item.value }}
- %p.text {{ __(item.title) }}
+ %p.text {{ s__('Cycle', item.title) }}
.col-sm-3.col-xs-12.column
.dropdown.inline.js-ca-dropdown
%button.dropdown-menu-toggle{ "data-toggle" => "dropdown", :type => "button" }
- %span.dropdown-label {{ __('Last 30 days') }}
+ %span.dropdown-label {{ n__('Last %d day', 'Last %d days', 30) }}
%i.fa.fa-chevron-down
%ul.dropdown-menu.dropdown-menu-align-right
%li
%a{ "href" => "#", "data-value" => "30" }
- {{ __('Last 30 days') }}
+ {{ n__('Last %d day', 'Last %d days', 30) }}
%li
%a{ "href" => "#", "data-value" => "90" }
- {{ __('Last 90 days') }}
+ {{ n__('Last %d day', 'Last %d days', 90) }}
.stage-panel-container
.panel.panel-default.stage-panel
.panel-heading
@@ -52,7 +51,7 @@
%ul
%li.stage-header
%span.stage-name
- {{ __('ProjectLifecycle|Stage') }}
+ {{ s__('ProjectLifecycle|Stage') }}
%i.has-tooltip.fa.fa-question-circle{ "data-placement" => "top", title: _("The phase of the development lifecycle."), "aria-hidden" => "true" }
%li.median-header
%span.stage-name