ascending/descending locales.

pull/1340/head
Richard 11 years ago
parent ca2d99f243
commit cd6c210ef3
  1. 7
      app/assets/javascripts/angular/controllers/dialogs/sorting.js

@ -39,7 +39,8 @@ angular.module('openproject.workPackages.controllers')
.controller('SortingModalController', ['sortingModal',
'$scope',
'QueryService',
function(sortingModal, $scope, QueryService) {
'I18n',
function(sortingModal, $scope, QueryService, I18n) {
this.name = 'Sorting';
this.closeMe = sortingModal.deactivate;
@ -63,7 +64,7 @@ angular.module('openproject.workPackages.controllers')
};
$scope.getDirectionsData = function(term, result) {
result([{ id: 'asc', label: 'Ascending'}, { id: 'desc', label: 'Descending'}]);
result([{ id: 'asc', label: I18n.t('js.label_ascending')}, { id: 'desc', label: I18n.t('js.label_descending')}]);
};
$scope.updateSortation = function(){
@ -88,5 +89,5 @@ angular.module('openproject.workPackages.controllers')
$scope.initSortation();
});
$scope.availableDirectionsData = [{ id: 'desc', label: 'Descending'}, { id: 'asc', label: 'Ascending'}];
$scope.availableDirectionsData = [{ id: 'desc', label: I18n.t('js.label_descending')}, { id: 'asc', label: I18n.t('js.label_ascending')}];
}]);

Loading…
Cancel
Save