mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +00:00
Added translation functions to task types
This commit is contained in:
parent
ea87784575
commit
4663c7cf5e
3 changed files with 6 additions and 2 deletions
|
|
@ -5,6 +5,7 @@
|
|||
"beeminderDeleteWarning": "Beeminder users: <strong>First</strong> read <a href=\"http://habitica.wikia.com/wiki/Beeminder#Deleting_Completed_To-Dos_Without_Confusing_Beeminder\">Deleting Completed To-Dos Without Confusing Beeminder</a>!",
|
||||
"addmultiple": "Add Multiple",
|
||||
"addsingle": "Add Single",
|
||||
"habit": "Habit",
|
||||
"habits": "Habits",
|
||||
"newHabit": "New Habit",
|
||||
"newHabitBulk": "New Habits (one per line)",
|
||||
|
|
@ -32,6 +33,7 @@
|
|||
"mental": "Mental",
|
||||
"otherExamples": "Eg, professional pursuits, hobbies, financial, etc.",
|
||||
"progress": "Progress",
|
||||
"daily": "Daily",
|
||||
"dailies": "Dailies",
|
||||
"newDaily": "New Daily",
|
||||
"newDailyBulk": "New Dailies (one per line)",
|
||||
|
|
@ -46,6 +48,7 @@
|
|||
"day": "Day",
|
||||
"days": "Days",
|
||||
"restoreStreak": "Restore Streak",
|
||||
"todo": "To-Do",
|
||||
"todos": "To-Dos",
|
||||
"newTodo": "New To-Do",
|
||||
"newTodoBulk": "New To-Dos (one per line)",
|
||||
|
|
@ -57,6 +60,7 @@
|
|||
"notDue": "Not Due",
|
||||
"grey": "Grey",
|
||||
"score": "Score",
|
||||
"reward": "Reward",
|
||||
"rewards": "Rewards",
|
||||
"ingamerewards": "Equipment & Skills",
|
||||
"gold": "Gold",
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User','N
|
|||
};
|
||||
|
||||
$scope.removeTask = function(task) {
|
||||
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;
|
||||
User.user.ops.deleteTask({params:{id:task.id}})
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue