Added translation functions to task types

This commit is contained in:
Keith Holliday
2015-11-30 09:26:07 -06:00
parent ea87784575
commit 4663c7cf5e
3 changed files with 6 additions and 2 deletions

View File

@@ -212,7 +212,7 @@ habitrpg.controller("ChallengesCtrl", ['$rootScope','$scope', 'Shared', 'User',
};
$scope.removeTask = function(task, list) {
if (!confirm(window.env.t('sureDelete', {taskType: task.type, taskText: task.text}))) return;
if (!confirm(window.env.t('sureDelete', {taskType: window.env.t(task.type), taskText: task.text}))) return;
//TODO persist
// User.log({op: "delTask", data: task});
_.remove(list, task);