Make comment strings translateable
This commit is contained in:
parent
91084407cf
commit
a07bd34394
6 changed files with 18 additions and 5 deletions
|
@ -672,7 +672,7 @@
|
|||
transition: all 0.2s ease-in-out 0s;
|
||||
}
|
||||
#task-details div.footer .detail-addcomment input[type="text"] {
|
||||
width: 260px;
|
||||
width: 230px;
|
||||
}
|
||||
#task-details div.footer .detail-addcomment input[type="button"] {
|
||||
float: right;
|
||||
|
|
|
@ -711,7 +711,7 @@
|
|||
padding: 4px;
|
||||
transition: all 0.2s ease-in-out 0s;
|
||||
&[type="text"]{
|
||||
width: 260px;
|
||||
width: 230px;
|
||||
}
|
||||
&[type="button"]{
|
||||
float: right;
|
||||
|
|
|
@ -315,10 +315,15 @@ $timeout, $routeParams, SettingsModel) ->
|
|||
if (event.keyCode == 13)
|
||||
_$scope.addComment()
|
||||
|
||||
|
||||
@_$scope.deleteComment = (commentID) ->
|
||||
_tasksbusinesslayer.deleteComment(_$scope.route.taskID, commentID)
|
||||
|
||||
@_$scope.commentStrings = () ->
|
||||
{
|
||||
button: t('tasks_enhanced','Comment'),
|
||||
input: t('tasks_enhanced','Add a comment')
|
||||
}
|
||||
|
||||
|
||||
return new DetailsController($scope, $window, TasksModel,
|
||||
TasksBusinessLayer, $route, $location, $timeout, $routeParams,
|
||||
|
|
|
@ -727,6 +727,12 @@
|
|||
this._$scope.deleteComment = function(commentID) {
|
||||
return _tasksbusinesslayer.deleteComment(_$scope.route.taskID, commentID);
|
||||
};
|
||||
this._$scope.commentStrings = function() {
|
||||
return {
|
||||
button: t('tasks_enhanced', 'Comment'),
|
||||
input: t('tasks_enhanced', 'Add a comment')
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
return DetailsController;
|
||||
|
|
|
@ -100,4 +100,6 @@
|
|||
"%d months" => "%d Monaten",
|
||||
"a year" => "einem Jahr",
|
||||
"%d years" => "%d Jahren",
|
||||
"Add a comment" => "Kommentar hinzufügen",
|
||||
"Comment" => "Kommentieren"
|
||||
);
|
|
@ -121,8 +121,8 @@
|
|||
</div>
|
||||
<div class="footer">
|
||||
<div class="detail-addcomment">
|
||||
<input type="text" placeholder="Add comment" ng-model="CommentContent" ng-keydown="sendComment($event)">
|
||||
<input type="button" ng-click="addComment()" name="addComment" value="Comment" ng-class="{'active':CommentContent}">
|
||||
<input type="text" placeholder="{{ commentStrings().input }}" ng-model="CommentContent" ng-keydown="sendComment($event)">
|
||||
<input type="button" ng-click="addComment()" name="addComment" value="{{ commentStrings().button }}" ng-class="{'active':CommentContent}">
|
||||
</div>
|
||||
<a class="detail-trash" ng-click="deleteTask(task.id)" stop-event="click">
|
||||
<span class="icon detail-trash"></span>
|
||||
|
|
Loading…
Reference in a new issue