diff options
| author | pliablepixels <pliablepixels@gmail.com> | 2016-05-26 08:10:14 -0400 |
|---|---|---|
| committer | pliablepixels <pliablepixels@gmail.com> | 2016-05-26 08:10:14 -0400 |
| commit | 59bfe98d911728cfefd2321bf4ac86d62f4c64f8 (patch) | |
| tree | 2a8d29b87d53430adb0925746c0c048bc2c41251 /www/js/StateCtrl.js | |
| parent | 92c3f2f7d30741ac708dd18deddfaecd9e0e34d5 (diff) | |
more translations, dummy italian language (all caps) to check if things are working
Former-commit-id: e02d1017b1e818a4b90faa18b0f0e221d867e543
Diffstat (limited to 'www/js/StateCtrl.js')
| -rw-r--r-- | www/js/StateCtrl.js | 10 |
1 files changed, 5 insertions, 5 deletions
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; } |
