Translations for kanban
This commit is contained in:
@@ -248,6 +248,15 @@ define(function () {
|
|||||||
out.pad_mediatagWidth = "Largeur (px)";
|
out.pad_mediatagWidth = "Largeur (px)";
|
||||||
out.pad_mediatagHeight = "Hauteur (px)";
|
out.pad_mediatagHeight = "Hauteur (px)";
|
||||||
|
|
||||||
|
// Kanban
|
||||||
|
out.kanban_newBoard = "Nouveau tableau";
|
||||||
|
out.kanban_item = "Élément {0}"; // Item number for initial content
|
||||||
|
out.kanban_todo = "À faire";
|
||||||
|
out.kanban_done = "Terminé";
|
||||||
|
out.kanban_working = "En cours";
|
||||||
|
out.kanban_deleteBoard = "Êtes-vous sûr de vouloir supprimer ce tableau ?";
|
||||||
|
out.kanban_deleteItem = "Êtes-vous sûr de vouloir supprimer cet élément?";
|
||||||
|
|
||||||
// Polls
|
// Polls
|
||||||
|
|
||||||
out.poll_title = "Sélecteur de date Zero Knowledge";
|
out.poll_title = "Sélecteur de date Zero Knowledge";
|
||||||
|
|||||||
@@ -251,7 +251,13 @@ define(function () {
|
|||||||
out.pad_mediatagHeight = "Height (px)";
|
out.pad_mediatagHeight = "Height (px)";
|
||||||
|
|
||||||
// Kanban
|
// Kanban
|
||||||
out.kanban_title = "Kanban";
|
out.kanban_newBoard = "New board";
|
||||||
|
out.kanban_item = "Item {0}"; // Item number for initial content
|
||||||
|
out.kanban_todo = "To Do";
|
||||||
|
out.kanban_done = "Done";
|
||||||
|
out.kanban_working = "Working";
|
||||||
|
out.kanban_deleteBoard = "Are you sure you want to delete this board?";
|
||||||
|
out.kanban_deleteItem = "Are you sure you want to delete this item?";
|
||||||
|
|
||||||
// Polls
|
// Polls
|
||||||
|
|
||||||
|
|||||||
@@ -25,35 +25,32 @@ define([
|
|||||||
|
|
||||||
// Kanban code
|
// Kanban code
|
||||||
var initKanban = function (framework, boards) {
|
var initKanban = function (framework, boards) {
|
||||||
var defaultBoards = [{ // XXX
|
var defaultBoards = [{
|
||||||
"id": "todo",
|
"id": "todo",
|
||||||
"title": "To Do",
|
"title": Messages.kanban_todo,
|
||||||
"color": "blue",
|
"color": "blue",
|
||||||
"item": [
|
"item": [{
|
||||||
{
|
"title": Messages._getKey('kanban_item', [1])
|
||||||
"title": "Item 1"
|
}, {
|
||||||
},
|
"title": Messages._getKey('kanban_item', [2])
|
||||||
{
|
}]
|
||||||
"title": "Item 2"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}, {
|
}, {
|
||||||
"id": "working",
|
"id": "working",
|
||||||
"title": "Working",
|
"title": Messages.kanban_working,
|
||||||
"color": "orange",
|
"color": "orange",
|
||||||
"item": [{
|
"item": [{
|
||||||
"title": "Item 3",
|
"title": Messages._getKey('kanban_item', [3])
|
||||||
}, {
|
}, {
|
||||||
"title": "Item 4",
|
"title": Messages._getKey('kanban_item', [4])
|
||||||
}]
|
}]
|
||||||
}, {
|
}, {
|
||||||
"id": "done",
|
"id": "done",
|
||||||
"title": "Done",
|
"title": Messages.kanban_done,
|
||||||
"color": "green",
|
"color": "green",
|
||||||
"item": [{
|
"item": [{
|
||||||
"title": "Item 5",
|
"title": Messages._getKey('kanban_item', [5])
|
||||||
}, {
|
}, {
|
||||||
"title": "Item 6",
|
"title": Messages._getKey('kanban_item', [6])
|
||||||
}]
|
}]
|
||||||
}];
|
}];
|
||||||
|
|
||||||
@@ -154,12 +151,10 @@ define([
|
|||||||
|
|
||||||
},
|
},
|
||||||
removeClick: function (el, boardId) {
|
removeClick: function (el, boardId) {
|
||||||
// XXX
|
UI.confirm(Messages.kanban_deleteBoard, function (yes) {
|
||||||
UI.confirm("Do you want to delete this board?", function (yes) {
|
|
||||||
if (!yes) { return; }
|
if (!yes) { return; }
|
||||||
console.log("Delete board");
|
console.log("Delete board");
|
||||||
var boardName = $(el.parentNode.parentNode).attr("data-id");
|
var boardName = $(el.parentNode.parentNode).attr("data-id");
|
||||||
console.log(boardName, boardId); // TODO
|
|
||||||
for (var index in kanban.options.boards) {
|
for (var index in kanban.options.boards) {
|
||||||
if (kanban.options.boards[index].id === boardName) {
|
if (kanban.options.boards[index].id === boardName) {
|
||||||
break;
|
break;
|
||||||
@@ -195,9 +190,8 @@ define([
|
|||||||
addItemButton: true,
|
addItemButton: true,
|
||||||
boards: boards,
|
boards: boards,
|
||||||
dragcancelEl: function (el, boardId) {
|
dragcancelEl: function (el, boardId) {
|
||||||
// XXX
|
|
||||||
var pos = kanban.findElementPosition(el);
|
var pos = kanban.findElementPosition(el);
|
||||||
UI.confirm("Are you sure...??", function (yes) {
|
UI.confirm(Messages.kanban_deleteItem, function (yes) {
|
||||||
if (!yes) { return; }
|
if (!yes) { return; }
|
||||||
var board;
|
var board;
|
||||||
kanban.options.boards.some(function (b) {
|
kanban.options.boards.some(function (b) {
|
||||||
@@ -222,13 +216,12 @@ define([
|
|||||||
counter++;
|
counter++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// XXX
|
|
||||||
kanban.addBoards([{
|
kanban.addBoards([{
|
||||||
"id": "board" + counter,
|
"id": "board" + counter,
|
||||||
"title": "New Board",
|
"title": Messages.kanban_newBoard,
|
||||||
"color": "yellow",
|
"color": "yellow",
|
||||||
"item": [{
|
"item": [{
|
||||||
"title": "Item 1",
|
"title": Messages._getKey('kanban_item', [1]),
|
||||||
}]
|
}]
|
||||||
}]);
|
}]);
|
||||||
kanban.onChange();
|
kanban.onChange();
|
||||||
|
|||||||
Reference in New Issue
Block a user