Better plural translation
This commit is contained in:
parent
1f378e7886
commit
ddee8a0a65
3 changed files with 9 additions and 3 deletions
|
@ -127,6 +127,10 @@ SettingsBusinessLayer) ->
|
|||
@_$scope.getCount = (listID,type) ->
|
||||
return _$listsmodel.getCount(listID,type)
|
||||
|
||||
@_$scope.getCountString = (listID,type) ->
|
||||
return n('tasks', '%n Completed Task', '%n Completed Tasks',
|
||||
_$listsmodel.getCount(listID,type))
|
||||
|
||||
@_$scope.addTask = (taskName) ->
|
||||
|
||||
_$scope.isAddingTask = true
|
||||
|
|
|
@ -1124,6 +1124,9 @@
|
|||
this._$scope.getCount = function(listID, type) {
|
||||
return _$listsmodel.getCount(listID, type);
|
||||
};
|
||||
this._$scope.getCountString = function(listID, type) {
|
||||
return n('tasks', '%n Completed Task', '%n Completed Tasks', _$listsmodel.getCount(listID, type));
|
||||
};
|
||||
this._$scope.addTask = function(taskName) {
|
||||
var task, _ref,
|
||||
_this = this;
|
||||
|
|
|
@ -20,10 +20,9 @@
|
|||
</div>
|
||||
</li>
|
||||
</ol>
|
||||
<h2 class="heading-hiddentasks" ng-show="getCount(route.listID,'completed')" ng-switch="getCount(route.listID,'completed')">
|
||||
<h2 class="heading-hiddentasks" ng-show="getCount(route.listID,'completed')">
|
||||
<span class="icon toggle-completed-tasks" ng-click="toggleHidden()"></span>
|
||||
<text ng-switch-when="1" ng-click="toggleHidden()"><?php p($l->t('1 Completed Task')); ?></text>
|
||||
<text ng-switch-default ng-click="toggleHidden()">{{ getCount(route.listID,'completed') }} <?php p($l->t('Completed Tasks')); ?></text>
|
||||
<text ng-click="toggleHidden()">{{ getCountString(route.listID,'completed') }}</text>
|
||||
</h2>
|
||||
<ol class="completed-tasks" rel="completed" oc-drop-task>
|
||||
<li ng-repeat="task in tasks | filter:{'calendarid':route.listID} | filter:{'completed':'true'} | filter:route.searchString | orderBy:'completed_date':true"
|
||||
|
|
Loading…
Reference in a new issue