diff options
author | Phil Hughes <me@iamphill.com> | 2017-04-18 16:55:09 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-04-18 16:55:09 +0300 |
commit | 7963c2c25114e871eb42c0859b6d24fc37437a8a (patch) | |
tree | 490a40d05bc071d93db865c3d46c9407fad33673 /app/views/projects/cycle_analytics | |
parent | 90ba69d224eb7ef3d91332f1b7944c68ad16affd (diff) |
Added Vue filters & directives for translating
Diffstat (limited to 'app/views/projects/cycle_analytics')
-rw-r--r-- | app/views/projects/cycle_analytics/_empty_stage.html.haml | 2 | ||||
-rw-r--r-- | app/views/projects/cycle_analytics/_no_access.html.haml | 4 | ||||
-rw-r--r-- | app/views/projects/cycle_analytics/show.html.haml | 22 |
3 files changed, 14 insertions, 14 deletions
diff --git a/app/views/projects/cycle_analytics/_empty_stage.html.haml b/app/views/projects/cycle_analytics/_empty_stage.html.haml index c3f95860e92..27190785fff 100644 --- a/app/views/projects/cycle_analytics/_empty_stage.html.haml +++ b/app/views/projects/cycle_analytics/_empty_stage.html.haml @@ -2,6 +2,6 @@ .empty-stage .icon-no-data = custom_icon ('icon_no_data') - %h4 We don't have enough data to show this stage. + %h4 {{ 'We don\'t have enough data to show this stage.' | translate }} %p {{currentStage.emptyStageText}} diff --git a/app/views/projects/cycle_analytics/_no_access.html.haml b/app/views/projects/cycle_analytics/_no_access.html.haml index 0ffc79b3181..474d0f410a7 100644 --- a/app/views/projects/cycle_analytics/_no_access.html.haml +++ b/app/views/projects/cycle_analytics/_no_access.html.haml @@ -2,6 +2,6 @@ .no-access-stage .icon-lock = custom_icon ('icon_lock') - %h4 You need permission. + %h4 {{ 'You need permission.' | translate }} %p - Want to see the data? Please ask administrator for access. + {{ 'Want to see the data? Please ask administrator for access.' | translate }} diff --git a/app/views/projects/cycle_analytics/show.html.haml b/app/views/projects/cycle_analytics/show.html.haml index dd3fa814716..47fde758ffc 100644 --- a/app/views/projects/cycle_analytics/show.html.haml +++ b/app/views/projects/cycle_analytics/show.html.haml @@ -15,9 +15,9 @@ = custom_icon('icon_cycle_analytics_splash') .col-sm-8.col-xs-12.inner-content %h4 - Introducing Cycle Analytics + {{ 'Introducing Cycle Analytics' | translate }} %p - Cycle Analytics gives an overview of how much time it takes to go from idea to production in your project. + {{ 'Cycle Analytics gives an overview of how much time it takes to go from idea to production in your project.' | translate }} = link_to "Read more", help_page_path('user/project/cycle_analytics'), target: '_blank', class: 'btn' = icon("spinner spin", "v-show" => "isLoading") @@ -34,15 +34,15 @@ .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 {{ 'Last 30 days' | translate }} %i.fa.fa-chevron-down %ul.dropdown-menu.dropdown-menu-align-right %li %a{ "href" => "#", "data-value" => "30" } - Last 30 days + {{ 'Last 30 days' | translate }} %li %a{ "href" => "#", "data-value" => "90" } - Last 90 days + {{ 'Last 30 days' | translate }} .stage-panel-container .panel.panel-default.stage-panel .panel-heading @@ -50,19 +50,19 @@ %ul %li.stage-header %span.stage-name - Stage + {{ 'Stage' | translate }} %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 - Median + {{ 'Median' | translate }} %i.has-tooltip.fa.fa-question-circle{ "data-placement" => "top", title: "The value lying at the midpoint of a series of observed values. E.g., between 3, 5, 9, the median is 5. Between 3, 5, 7, 8, the median is (5+7)/2 = 6.", "aria-hidden" => "true" } %li.event-header %span.stage-name - {{ currentStage ? currentStage.legend : 'Related Issues' }} + {{ currentStage ? currentStage.legend : 'Related Issues' | translate }} %i.has-tooltip.fa.fa-question-circle{ "data-placement" => "top", title: "The collection of events added to the data gathered for that stage.", "aria-hidden" => "true" } %li.total-time-header %span.stage-name - Total Time + {{ 'Total Time' | translate }} %i.has-tooltip.fa.fa-question-circle{ "data-placement" => "top", title: "The time taken by each data entry gathered by that stage.", "aria-hidden" => "true" } .stage-panel-body %nav.stage-nav @@ -75,10 +75,10 @@ %span{ "v-if" => "stage.value" } {{ stage.value }} %span.stage-empty{ "v-else" => true } - Not enough data + {{ 'Not enough data' | translate }} %template{ "v-else" => true } %span.not-available - Not available + {{ 'Not available' | translate }} .section.stage-events %template{ "v-if" => "isLoadingStage" } = icon("spinner spin") |