From 25487224df425767835ab5ed0da96831e4b26a76 Mon Sep 17 00:00:00 2001 From: Martin Hradil Date: Thu, 11 Jan 2018 11:53:16 +0100 Subject: [PATCH] Merge pull request #3202 from mzazrivec/add_missing_gettext_into_container_project_dashboard_controller_js Add missing gettext into containerProjectDashboardController (cherry picked from commit deb4d809fc85cb44b73b96331e99baf366d9ba0d) https://bugzilla.redhat.com/show_bug.cgi?id=1533521 --- .../container_project_dashboard_controller.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/controllers/container_dashboard/container_project_dashboard_controller.js b/app/assets/javascripts/controllers/container_dashboard/container_project_dashboard_controller.js index 363de989ecc..9b8e803ec70 100644 --- a/app/assets/javascripts/controllers/container_dashboard/container_project_dashboard_controller.js +++ b/app/assets/javascripts/controllers/container_dashboard/container_project_dashboard_controller.js @@ -15,11 +15,11 @@ ManageIQ.angular.app.controller('containerProjectDashboardController', ['$scope' $scope.cpuUsageConfig = chartsMixin.chartConfig.cpuUsageConfig; $scope.cpuUsageConfig.layout = 'compact'; - $scope.cpuUsageConfig.title = 'CPU Utilization'; + $scope.cpuUsageConfig.title = __('CPU Utilization'); $scope.memoryUsageConfig = chartsMixin.chartConfig.memoryUsageConfig; $scope.memoryUsageConfig.layout = 'compact'; - $scope.memoryUsageConfig.title = 'Memory Utilization'; + $scope.memoryUsageConfig.title = __('Memory Utilization'); function getContainerDashboardData(response) { 'use strict'; @@ -64,7 +64,7 @@ ManageIQ.angular.app.controller('containerProjectDashboardController', ['$scope' } $scope.networkUtilizationConfig.layout = 'compact'; - $scope.networkUtilizationConfig.title = 'Network Utilization'; + $scope.networkUtilizationConfig.title = __('Network Utilization'); if (data.network_metrics.xy_data != null) { data.network_metrics.xy_data.xData = data.network_metrics.xy_data.xData.map(function(date) { @@ -81,7 +81,7 @@ ManageIQ.angular.app.controller('containerProjectDashboardController', ['$scope' $scope.barChartLayoutInline = { 'type': 'inline' }; angular.forEach(data.quota, function(item) { $scope.quotas.push({ - 'title': item.resource, + 'title': __(item.resource), 'units': item.units, 'data': { 'used': item.quota_observed,