From 59bfe98d911728cfefd2321bf4ac86d62f4c64f8 Mon Sep 17 00:00:00 2001 From: pliablepixels Date: Thu, 26 May 2016 08:10:14 -0400 Subject: more translations, dummy italian language (all caps) to check if things are working Former-commit-id: e02d1017b1e818a4b90faa18b0f0e221d867e543 --- www/js/StateCtrl.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'www/js/StateCtrl.js') diff --git a/www/js/StateCtrl.js b/www/js/StateCtrl.js index 97fd234a..25e88247 100644 --- a/www/js/StateCtrl.js +++ b/www/js/StateCtrl.js @@ -4,8 +4,8 @@ // controller for State View -angular.module('zmApp.controllers').controller('zmApp.StateCtrl', ['$ionicPopup', '$scope', 'zm', 'ZMDataModel', '$ionicSideMenuDelegate', '$ionicLoading', '$ionicModal', '$state', '$http', '$rootScope', '$timeout', '$ionicHistory', function ( - $ionicPopup, $scope, zm, ZMDataModel, $ionicSideMenuDelegate, $ionicLoading, $ionicModal, $state, $http, $rootScope, $timeout,$ionicHistory) { +angular.module('zmApp.controllers').controller('zmApp.StateCtrl', ['$ionicPopup', '$scope', 'zm', 'ZMDataModel', '$ionicSideMenuDelegate', '$ionicLoading', '$ionicModal', '$state', '$http', '$rootScope', '$timeout', '$ionicHistory', '$translate', function ( + $ionicPopup, $scope, zm, ZMDataModel, $ionicSideMenuDelegate, $ionicLoading, $ionicModal, $state, $http, $rootScope, $timeout,$ionicHistory, $translate) { //---------------------------------------------------------------------- // Controller main @@ -306,15 +306,15 @@ angular.module('zmApp.controllers').controller('zmApp.StateCtrl', ['$ionicPopup' if (inProgress) { ZMDataModel.zmDebug("StateCtrl/controlZM: operation in progress"); $ionicPopup.alert({ - title: "Operation in Progress", - template: "The previous operation is still in progress. Please wait..." + title: $translate.instant('kOperationInProgressTitle'), + template: $translate.instant('kOperationInProgressBody') }); return; } var statesearch = "startstoprestart"; - var promptstring = 'Are you sure you want to ' + str + ' Zoneminder?'; + var promptstring = $translate.instant('kStateAreYouSure') + str + ' Zoneminder?'; if (statesearch.indexOf(str) == -1) { promptstring = "Are you sure you want to change state to " + str; } -- cgit v1.2.3