summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Controller/Project.php3
-rw-r--r--app/Locale/da_DK/translations.php23
-rw-r--r--app/Locale/de_DE/translations.php23
-rw-r--r--app/Locale/es_ES/translations.php23
-rw-r--r--app/Locale/fi_FI/translations.php23
-rw-r--r--app/Locale/fr_FR/translations.php25
-rw-r--r--app/Locale/hu_HU/translations.php23
-rw-r--r--app/Locale/it_IT/translations.php23
-rw-r--r--app/Locale/ja_JP/translations.php23
-rw-r--r--app/Locale/pl_PL/translations.php23
-rw-r--r--app/Locale/pt_BR/translations.php23
-rw-r--r--app/Locale/ru_RU/translations.php23
-rw-r--r--app/Locale/sv_SE/translations.php23
-rw-r--r--app/Locale/th_TH/translations.php23
-rw-r--r--app/Locale/zh_CN/translations.php23
-rw-r--r--app/Model/Notification.php26
-rw-r--r--app/Model/ProjectDuplication.php10
-rw-r--r--app/Template/project/duplicate.php4
18 files changed, 177 insertions, 190 deletions
diff --git a/app/Controller/Project.php b/app/Controller/Project.php
index 842ed6e8..fb0a8d05 100644
--- a/app/Controller/Project.php
+++ b/app/Controller/Project.php
@@ -297,7 +297,8 @@ class Project extends Base
/**
* Duplicate a project
*
- * @author Antonio Rabelo & Michael Lüpkes
+ * @author Antonio Rabelo
+ * @author Michael Lüpkes
* @access public
*/
public function duplicate()
diff --git a/app/Locale/da_DK/translations.php b/app/Locale/da_DK/translations.php
index 88f06fce..de4e073c 100644
--- a/app/Locale/da_DK/translations.php
+++ b/app/Locale/da_DK/translations.php
@@ -408,15 +408,13 @@ return array(
'Comment updated' => 'Kommentar opdateret',
'New comment posted by %s' => 'Ny kommentar af %s',
'List of due tasks for the project "%s"' => 'Udestående opgaver for projektet "%s"',
- '[%s][New attachment] %s (#%d)' => '[%s][Ny vedhæftning] %s (#%d)',
- '[%s][New comment] %s (#%d)' => '[%s][Ny kommentar] %s (#%d)',
- '[%s][Comment updated] %s (#%d)' => '[%s][Kommentar opdateret] %s (#%d)',
- '[%s][New subtask] %s (#%d)' => '[%s][Ny under-opgave] %s (#%d)',
- '[%s][Subtask updated] %s (#%d)' => '[%s][Under-opgave opdateret] %s (#%d)',
- '[%s][New task] %s (#%d)' => '[%s][Ny opgave] %s (#%d)',
- '[%s][Task updated] %s (#%d)' => '[%s][Opgave opdateret] %s (#%d)',
- '[%s][Task closed] %s (#%d)' => '[%s][Opgave lukket] %s (#%d)',
- '[%s][Task opened] %s (#%d)' => '[%s][Opgave åbnet] %s (#%d)',
+ // 'New attachment' => '',
+ // 'New comment' => '',
+ // 'New subtask' => '',
+ // 'Subtask updated' => '',
+ // 'Task updated' => '',
+ // 'Task closed' => '',
+ // 'Task opened' => '',
'[%s][Due tasks]' => 'Udestående opgaver',
'[Kanboard] Notification' => '[Kanboard] Notifikation',
'I want to receive notifications only for those projects:' => 'Jeg vil kun have notifikationer for disse projekter:',
@@ -500,9 +498,9 @@ return array(
'Task assignee change' => 'Opgaven ansvarlig ændring',
'%s change the assignee of the task #%d to %s' => '%s skrift ansvarlig for opgaven #%d til %s',
'%s changed the assignee of the task %s to %s' => '%s skift ansvarlig for opgaven %s til %s',
- '[%s][Column Change] %s (#%d)' => '[%s][Kolonne Skift] %s (#%d)',
- '[%s][Position Change] %s (#%d)' => '[%s][Position Skift] %s (#%d)',
- '[%s][Assignee Change] %s (#%d)' => '[%s][Ansvarlig Skift] %s (#%d)',
+ // 'Column Change' => '',
+ // 'Position Change' => '',
+ // 'Assignee Change' => '',
'New password for the user "%s"' => 'Ny adgangskode for brugeren',
'Choose an event' => 'Vælg et event',
'Github commit received' => 'Github commit modtaget',
@@ -709,4 +707,5 @@ return array(
// 'There is nothing to show.' => '',
// 'Time Tracking' => '',
// 'You already have one subtask in progress' => '',
+ // 'Which parts of the project do you want to duplicate?' => '',
);
diff --git a/app/Locale/de_DE/translations.php b/app/Locale/de_DE/translations.php
index bc51e599..d4dc1030 100644
--- a/app/Locale/de_DE/translations.php
+++ b/app/Locale/de_DE/translations.php
@@ -408,15 +408,13 @@ return array(
'Comment updated' => 'Kommentar wurde aktualisiert',
'New comment posted by %s' => 'Neuer Kommentar verfasst durch %s',
'List of due tasks for the project "%s"' => 'Liste der fälligen Aufgaben für das Projekt "%s"',
- '[%s][New attachment] %s (#%d)' => '[%s][Neuer Anhang] %s (#%d)',
- '[%s][New comment] %s (#%d)' => '[%s][Neuer Kommentar] %s (#%d)',
- '[%s][Comment updated] %s (#%d)' => '[%s][Kommentar aktualisisiert] %s (#%d)',
- '[%s][New subtask] %s (#%d)' => '[%s][Neue Teilaufgabe] %s (#%d)',
- '[%s][Subtask updated] %s (#%d)' => '[%s][Teilaufgabe aktualisisert] %s (#%d)',
- '[%s][New task] %s (#%d)' => '[%s][Neue Aufgabe] %s (#%d)',
- '[%s][Task updated] %s (#%d)' => '[%s][Aufgabe aktualisiert] %s (#%d)',
- '[%s][Task closed] %s (#%d)' => '[%s][Aufgabe geschlossen] %s (#%d)',
- '[%s][Task opened] %s (#%d)' => '[%s][Aufgabe geöffnet] %s (#%d)',
+ // 'New attachment' => '',
+ // 'New comment' => '',
+ // 'New subtask' => '',
+ // 'Subtask updated' => '',
+ // 'Task updated' => '',
+ // 'Task closed' => '',
+ // 'Task opened' => '',
'[%s][Due tasks]' => '[%s][Fällige Aufgaben]',
'[Kanboard] Notification' => '[Kanboard] Benachrichtigung',
'I want to receive notifications only for those projects:' => 'Ich möchte nur für diese Projekte Benachrichtigungen erhalten:',
@@ -500,9 +498,9 @@ return array(
'Task assignee change' => 'Zuständigkeit geändert',
'%s change the assignee of the task #%d to %s' => '%s hat die Zusständigkeit der Aufgabe #%d geändert um %s',
'%s changed the assignee of the task %s to %s' => '%s hat die Zuständigkeit der Aufgabe %s geändert um %s',
- '[%s][Column Change] %s (#%d)' => '[%s][Spaltenänderung] %s (#%d)',
- '[%s][Position Change] %s (#%d)' => '[%s][Positionsänderung] %s (#%d)',
- '[%s][Assignee Change] %s (#%d)' => '[%s][Zuständigkeitsänderung] %s (#%d)',
+ // 'Column Change' => '',
+ // 'Position Change' => '',
+ // 'Assignee Change' => '',
'New password for the user "%s"' => 'Neues Passwort des Benutzers "%s"',
'Choose an event' => 'Aktion wählen',
'Github commit received' => 'Github commit empfangen',
@@ -709,4 +707,5 @@ return array(
'There is nothing to show.' => 'Es ist nichts zum Anzeigen vorhanden.',
'Time Tracking' => 'Zeiterfassung',
'You already have one subtask in progress' => 'Bereits eine Teilaufgabe in bearbeitung',
+ // 'Which parts of the project do you want to duplicate?' => '',
);
diff --git a/app/Locale/es_ES/translations.php b/app/Locale/es_ES/translations.php
index aa324a84..aa498acf 100644
--- a/app/Locale/es_ES/translations.php
+++ b/app/Locale/es_ES/translations.php
@@ -408,15 +408,13 @@ return array(
'Comment updated' => 'Comentario actualizado',
'New comment posted by %s' => 'Nuevo comentario agregado por %s',
'List of due tasks for the project "%s"' => 'Lista de tareas para el proyecto "%s"',
- '[%s][New attachment] %s (#%d)' => '[%s][uevo adjunto] %s (#%d)',
- '[%s][New comment] %s (#%d)' => '[%s][Nuevo comentario] %s (#%d)',
- '[%s][Comment updated] %s (#%d)' => '[%s][Comentario actualizado] %s (#%d)',
- '[%s][New subtask] %s (#%d)' => '[%s][Nueva subtarea] %s (#%d)',
- '[%s][Subtask updated] %s (#%d)' => '[%s][Subtarea actualizada] %s (#%d)',
- '[%s][New task] %s (#%d)' => '[%s][Nueva tarea] %s (#%d)',
- '[%s][Task updated] %s (#%d)' => '[%s][Tarea actualizada] %s (#%d)',
- '[%s][Task closed] %s (#%d)' => '[%s][Tarea cerrada] %s (#%d)',
- '[%s][Task opened] %s (#%d)' => '[%s][Tarea abierta] %s (#%d)',
+ // 'New attachment' => '',
+ // 'New comment' => '',
+ // 'New subtask' => '',
+ // 'Subtask updated' => '',
+ // 'Task updated' => '',
+ // 'Task closed' => '',
+ // 'Task opened' => '',
'[%s][Due tasks]' => '[%s][Tareas vencidas]',
'[Kanboard] Notification' => '[Kanboard] Notificación',
'I want to receive notifications only for those projects:' => 'Quiero recibir notificaciones sólo de estos proyectos:',
@@ -500,9 +498,9 @@ return array(
'Task assignee change' => 'Cambiar persona asignada a la tarea',
// '%s change the assignee of the task #%d to %s' => '',
// '%s changed the assignee of the task %s to %s' => '',
- '[%s][Column Change] %s (#%d)' => '[%s][Cambia Columna] %s (#%d)',
- '[%s][Position Change] %s (#%d)' => '[%s][Cambia Posición] %s (#%d)',
- '[%s][Assignee Change] %s (#%d)' => '[%s][Cambia Persona Asignada] %s (#%d)',
+ // 'Column Change' => '',
+ // 'Position Change' => '',
+ // 'Assignee Change' => '',
'New password for the user "%s"' => 'Nueva contraseña para el usuario "%s"',
'Choose an event' => 'Escoga un evento',
'Github commit received' => 'Envío a Github recibido',
@@ -709,4 +707,5 @@ return array(
// 'There is nothing to show.' => '',
// 'Time Tracking' => '',
// 'You already have one subtask in progress' => '',
+ // 'Which parts of the project do you want to duplicate?' => '',
);
diff --git a/app/Locale/fi_FI/translations.php b/app/Locale/fi_FI/translations.php
index 4f85b9a9..f99d3408 100644
--- a/app/Locale/fi_FI/translations.php
+++ b/app/Locale/fi_FI/translations.php
@@ -408,15 +408,13 @@ return array(
'Comment updated' => 'Kommentti päivitetty',
'New comment posted by %s' => '%s lisäsi uuden kommentin',
// 'List of due tasks for the project "%s"' => '',
- // '[%s][New attachment] %s (#%d)' => '',
- // '[%s][New comment] %s (#%d)' => '',
- // '[%s][Comment updated] %s (#%d)' => '',
- // '[%s][New subtask] %s (#%d)' => '',
- // '[%s][Subtask updated] %s (#%d)' => '',
- // '[%s][New task] %s (#%d)' => '',
- // '[%s][Task updated] %s (#%d)' => '',
- // '[%s][Task closed] %s (#%d)' => '',
- // '[%s][Task opened] %s (#%d)' => '',
+ // 'New attachment' => '',
+ // 'New comment' => '',
+ // 'New subtask' => '',
+ // 'Subtask updated' => '',
+ // 'Task updated' => '',
+ // 'Task closed' => '',
+ // 'Task opened' => '',
// '[%s][Due tasks]' => '',
// '[Kanboard] Notification' => '',
'I want to receive notifications only for those projects:' => 'Haluan vastaanottaa ilmoituksia ainoastaan näistä projekteista:',
@@ -500,9 +498,9 @@ return array(
'Task assignee change' => 'Tehtävän saajan vaihto',
'%s change the assignee of the task #%d to %s' => '%s vaihtoi tehtävän #%d saajaksi %s',
'%s changed the assignee of the task %s to %s' => '%s vaihtoi tehtävän %s saajaksi %s',
- // '[%s][Column Change] %s (#%d)' => '',
- // '[%s][Position Change] %s (#%d)' => '',
- // '[%s][Assignee Change] %s (#%d)' => '',
+ // 'Column Change' => '',
+ // 'Position Change' => '',
+ // 'Assignee Change' => '',
'New password for the user "%s"' => 'Uusi salasana käyttäjälle "%s"',
'Choose an event' => 'Valitse toiminta',
'Github commit received' => 'Github-kommitti vastaanotettu',
@@ -709,4 +707,5 @@ return array(
// 'There is nothing to show.' => '',
// 'Time Tracking' => '',
// 'You already have one subtask in progress' => '',
+ // 'Which parts of the project do you want to duplicate?' => '',
);
diff --git a/app/Locale/fr_FR/translations.php b/app/Locale/fr_FR/translations.php
index 12e023fa..f02ced4f 100644
--- a/app/Locale/fr_FR/translations.php
+++ b/app/Locale/fr_FR/translations.php
@@ -408,15 +408,15 @@ return array(
'Comment updated' => 'Commentaire ajouté',
'New comment posted by %s' => 'Nouveau commentaire ajouté par « %s »',
'List of due tasks for the project "%s"' => 'Liste des tâches expirées pour le projet « %s »',
- '[%s][New attachment] %s (#%d)' => '[%s][Pièce-jointe] %s (#%d)',
- '[%s][New comment] %s (#%d)' => '[%s][Nouveau commentaire] %s (#%d)',
- '[%s][Comment updated] %s (#%d)' => '[%s][Commentaire mis à jour] %s (#%d)',
- '[%s][New subtask] %s (#%d)' => '[%s][Nouvelle sous-tâche] %s (#%d)',
- '[%s][Subtask updated] %s (#%d)' => '[%s][Sous-tâche mise à jour] %s (#%d)',
- '[%s][New task] %s (#%d)' => '[%s][Nouvelle tâche] %s (#%d)',
- '[%s][Task updated] %s (#%d)' => '[%s][Tâche mise à jour] %s (#%d)',
- '[%s][Task closed] %s (#%d)' => '[%s][Tâche fermée] %s (#%d)',
- '[%s][Task opened] %s (#%d)' => '[%s][Tâche ouverte] %s (#%d)',
+ 'New attachment' => 'Nouveau document',
+ 'New comment' => 'Nouveau commentaire',
+ 'Comment updated' => 'Commentaire mis à jour',
+ 'New subtask' => 'Nouvelle sous-tâche',
+ 'Subtask updated' => 'Sous-tâche mise à jour',
+ 'New task' => 'Nouvelle tâche',
+ 'Task updated' => 'Tâche mise à jour',
+ 'Task closed' => 'Tâche fermée',
+ 'Task opened' => 'Tâche ouverte',
'[%s][Due tasks]' => '[%s][Tâches expirées]',
'[Kanboard] Notification' => '[Kanboard] Notification',
'I want to receive notifications only for those projects:' => 'Je souhaite reçevoir les notifications uniquement pour les projets sélectionnés :',
@@ -500,9 +500,9 @@ return array(
'Task assignee change' => 'Modification de la personne assignée sur une tâche',
'%s change the assignee of the task #%d to %s' => '%s a changé la personne assignée sur la tâche n˚%d pour %s',
'%s changed the assignee of the task %s to %s' => '%s a changé la personne assignée sur la tâche %s pour %s',
- '[%s][Column Change] %s (#%d)' => '[%s][Changement de colonne] %s (n˚%d)',
- '[%s][Position Change] %s (#%d)' => '[%s][Changement de position] %s (n˚%d)',
- '[%s][Assignee Change] %s (#%d)' => '[%s][Changement d\'assigné] %s (n˚%d)',
+ 'Column Change' => 'Changement de colonne',
+ 'Position Change' => 'Changement de position',
+ 'Assignee Change' => 'Changement d\'assigné',
'New password for the user "%s"' => 'Nouveau mot de passe pour l\'utilisateur « %s »',
'Choose an event' => 'Choisir un événement',
'Github commit received' => '« Commit » reçu via Github',
@@ -709,4 +709,5 @@ return array(
'There is nothing to show.' => 'Il n\'y a rien à montrer',
'Time Tracking' => 'Feuille de temps',
'You already have one subtask in progress' => 'Vous avez déjà une sous-tâche en progrès',
+ 'Which parts of the project do you want to duplicate?' => 'Quelles parties du projet voulez-vous dupliquer ?',
);
diff --git a/app/Locale/hu_HU/translations.php b/app/Locale/hu_HU/translations.php
index 3fc11384..2c88185d 100644
--- a/app/Locale/hu_HU/translations.php
+++ b/app/Locale/hu_HU/translations.php
@@ -408,15 +408,13 @@ return array(
'Comment updated' => 'Megjegyzés frissítve',
'New comment posted by %s' => 'Új megjegyzés %s',
'List of due tasks for the project "%s"' => 'Projekt esedékes feladatai "%s"',
- '[%s][New attachment] %s (#%d)' => '[%s] [Új csatolmány] %s (#%d)',
- '[%s][New comment] %s (#%d)' => '[%s] [Új hozzászólás] %s (#%d)',
- '[%s][Comment updated] %s (#%d)' => '[%s] [Megjegyzés frissítve] %s (#%d)',
- '[%s][New subtask] %s (#%d)' => '[%s] [Új részfeladat] %s (#%d)',
- '[%s][Subtask updated] %s (#%d)' => '[%s] [Részfeladat frissítve] %s (#%d)',
- '[%s][New task] %s (#%d)' => '[%s] [Új feladat] %s (#%d)',
- '[%s][Task updated] %s (#%d)' => '[%s] [Feladat frissítve] %s (#%d)',
- '[%s][Task closed] %s (#%d)' => '[%s] [Feladat lezárva]%s (#%d)',
- '[%s][Task opened] %s (#%d)' => '[%s] [Feladat megnyitva] %s (#%d)',
+ // 'New attachment' => '',
+ // 'New comment' => '',
+ // 'New subtask' => '',
+ // 'Subtask updated' => '',
+ // 'Task updated' => '',
+ // 'Task closed' => '',
+ // 'Task opened' => '',
'[%s][Due tasks]' => '[%s] [Esedékes feladatok]',
'[Kanboard] Notification' => '[Kanboard] értesítés',
'I want to receive notifications only for those projects:' => 'Csak ezekről a projektekről kérek értesítést:',
@@ -500,9 +498,9 @@ return array(
'Task assignee change' => 'Felelős módosítása',
'%s change the assignee of the task #%d to %s' => '%s a felelőst módosította #%d %s',
'%s changed the assignee of the task %s to %s' => '%s a felelőst %s módosította: %s',
- '[%s][Column Change] %s (#%d)' => '[%s] [Oszlop módosítás] %s (#%d)',
- '[%s][Position Change] %s (#%d)' => '[%s] [Pozíció módosítás] %s (#%d)',
- '[%s][Assignee Change] %s (#%d)' => '[%s] [Felelős módosítás] %s (#%d)',
+ // 'Column Change' => '',
+ // 'Position Change' => '',
+ // 'Assignee Change' => '',
'New password for the user "%s"' => 'Felhasználó új jelszava "%s"',
'Choose an event' => 'Válasszon eseményt',
'Github commit received' => 'GitHub commit érkezett',
@@ -709,4 +707,5 @@ return array(
// 'There is nothing to show.' => '',
// 'Time Tracking' => '',
// 'You already have one subtask in progress' => '',
+ // 'Which parts of the project do you want to duplicate?' => '',
);
diff --git a/app/Locale/it_IT/translations.php b/app/Locale/it_IT/translations.php
index 1e2aa5eb..ffdc2ec6 100644
--- a/app/Locale/it_IT/translations.php
+++ b/app/Locale/it_IT/translations.php
@@ -408,15 +408,13 @@ return array(
'Comment updated' => 'Commento aggiornato',
'New comment posted by %s' => 'Nuovo commento aggiunto da « %s »',
'List of due tasks for the project "%s"' => 'Lista dei compiti scaduti per il progetto « %s »',
- '[%s][New attachment] %s (#%d)' => '[%s][Nuovo allegato] %s (#%d)',
- '[%s][New comment] %s (#%d)' => '[%s][Nuovo commento] %s (#%d)',
- '[%s][Comment updated] %s (#%d)' => '[%s][Commento aggiornato] %s (#%d)',
- '[%s][New subtask] %s (#%d)' => '[%s][Nuovo sotto-compito] %s (#%d)',
- '[%s][Subtask updated] %s (#%d)' => '[%s][Sotto-compito aggiornato] %s (#%d)',
- '[%s][New task] %s (#%d)' => '[%s][Nuovo compito] %s (#%d)',
- '[%s][Task updated] %s (#%d)' => '[%s][Compito aggiornato] %s (#%d)',
- '[%s][Task closed] %s (#%d)' => '[%s][Compito chiuso] %s (#%d)',
- '[%s][Task opened] %s (#%d)' => '[%s][Compito aperto] %s (#%d)',
+ // 'New attachment' => '',
+ // 'New comment' => '',
+ // 'New subtask' => '',
+ // 'Subtask updated' => '',
+ // 'Task updated' => '',
+ // 'Task closed' => '',
+ // 'Task opened' => '',
'[%s][Due tasks]' => '[%s][Compiti scaduti]',
'[Kanboard] Notification' => '[Kanboard] Notifica',
'I want to receive notifications only for those projects:' => 'Vorrei ricevere le notifiche solo da questi progetti:',
@@ -500,9 +498,9 @@ return array(
// 'Task assignee change' => '',
// '%s change the assignee of the task #%d to %s' => '',
// '%s changed the assignee of the task %s to %s' => '',
- // '[%s][Column Change] %s (#%d)' => '',
- // '[%s][Position Change] %s (#%d)' => '',
- // '[%s][Assignee Change] %s (#%d)' => '',
+ // 'Column Change' => '',
+ // 'Position Change' => '',
+ // 'Assignee Change' => '',
// 'New password for the user "%s"' => '',
// 'Choose an event' => '',
// 'Github commit received' => '',
@@ -709,4 +707,5 @@ return array(
// 'There is nothing to show.' => '',
// 'Time Tracking' => '',
// 'You already have one subtask in progress' => '',
+ // 'Which parts of the project do you want to duplicate?' => '',
);
diff --git a/app/Locale/ja_JP/translations.php b/app/Locale/ja_JP/translations.php
index 01043a74..358c30ce 100644
--- a/app/Locale/ja_JP/translations.php
+++ b/app/Locale/ja_JP/translations.php
@@ -408,15 +408,13 @@ return array(
'Comment updated' => 'コメントが更新されました',
'New comment posted by %s' => '「%s」の新しいコメントが追加されました',
'List of due tasks for the project "%s"' => 'プロジェクト「%s」の期限切れのタスク',
- '[%s][New attachment] %s (#%d)' => '[%s][新規添付ファイル] %s (#%d)',
- '[%s][New comment] %s (#%d)' => '[%s][新規コメント] %s (#%d)',
- '[%s][Comment updated] %s (#%d)' => '[%s][コメント更新] %s (#%d)',
- '[%s][New subtask] %s (#%d)' => '[%s][新規サブタスク] %s (#%d)',
- '[%s][Subtask updated] %s (#%d)' => '[%s][サブタスク更新] %s (#%d)',
- '[%s][New task] %s (#%d)' => '[%s][新規タスク] %s (#%d)',
- '[%s][Task updated] %s (#%d)' => '[%s][タスク更新] %s (#%d)',
- '[%s][Task closed] %s (#%d)' => '[%s][タスククローズ] %s (#%d)',
- '[%s][Task opened] %s (#%d)' => '[%s][タスクオープン] %s (#%d)',
+ // 'New attachment' => '',
+ // 'New comment' => '',
+ // 'New subtask' => '',
+ // 'Subtask updated' => '',
+ // 'Task updated' => '',
+ // 'Task closed' => '',
+ // 'Task opened' => '',
'[%s][Due tasks]' => '[%s][タスク期限切れ]',
'[Kanboard] Notification' => '[Kanboard] 通知',
'I want to receive notifications only for those projects:' => '以下のプロジェクトにのみ通知を受け取る:',
@@ -500,9 +498,9 @@ return array(
'Task assignee change' => '担当者の変更',
'%s change the assignee of the task #%d to %s' => '%s がタスク #%d の担当を %s に変更しました',
'%s changed the assignee of the task %s to %s' => '%s がタスク %s の担当を %s に変更しました',
- '[%s][Column Change] %s (#%d)' => '[%s][カラムの変更] %s (#%d)',
- '[%s][Position Change] %s (#%d)' => '[%s][位置の変更] %s (#%d)',
- '[%s][Assignee Change] %s (#%d)' => '[%s][担当者変更] %s (#%d)',
+ // 'Column Change' => '',
+ // 'Position Change' => '',
+ // 'Assignee Change' => '',
'New password for the user "%s"' => 'ユーザ「%s」の新しいパスワード',
'Choose an event' => 'イベントの選択',
'Github commit received' => 'Github のコミットを受け取った',
@@ -709,4 +707,5 @@ return array(
// 'There is nothing to show.' => '',
// 'Time Tracking' => '',
// 'You already have one subtask in progress' => '',
+ // 'Which parts of the project do you want to duplicate?' => '',
);
diff --git a/app/Locale/pl_PL/translations.php b/app/Locale/pl_PL/translations.php
index b616b405..47dc126f 100644
--- a/app/Locale/pl_PL/translations.php
+++ b/app/Locale/pl_PL/translations.php
@@ -408,15 +408,13 @@ return array(
'Comment updated' => 'Komentarz zaktualizowany',
'New comment posted by %s' => 'Nowy komentarz dodany przez %s',
'List of due tasks for the project "%s"' => 'Lista zadań oczekujących projektu "%s"',
- '[%s][New attachment] %s (#%d)' => '[%s][Nowy załącznik] %s (#%d)',
- '[%s][New comment] %s (#%d)' => '[%s][Nowy komentarz] %s (#%d)',
- '[%s][Comment updated] %s (#%d)' => '[%s][Komentarz zaktualizowany] %s (#%d)',
- '[%s][New subtask] %s (#%d)' => '[%s][Nowe pod-zadanie] %s (#%d)',
- '[%s][Subtask updated] %s (#%d)' => '[%s][pod-zadanie zaktualizowane] %s (#%d)',
- '[%s][New task] %s (#%d)' => '[%s][Nowe zadanie] %s (#%d)',
- '[%s][Task updated] %s (#%d)' => '[%s][Zadanie zaktualizowane] %s (#%d)',
- '[%s][Task closed] %s (#%d)' => '[%s][Zadanie zamknięte] %s (#%d)',
- '[%s][Task opened] %s (#%d)' => '[%s][Zadanie otwarte] %s (#%d)',
+ // 'New attachment' => '',
+ // 'New comment' => '',
+ // 'New subtask' => '',
+ // 'Subtask updated' => '',
+ // 'Task updated' => '',
+ // 'Task closed' => '',
+ // 'Task opened' => '',
'[%s][Due tasks]' => '[%s][Zadania oczekujące]',
'[Kanboard] Notification' => '[Kanboard] Powiadomienie',
'I want to receive notifications only for those projects:' => 'Chcę otrzymywaćpowiadiomienia tylko dla tych projektów:',
@@ -500,9 +498,9 @@ return array(
'Task assignee change' => 'Zmień osobę odpowiedzialną',
'%s change the assignee of the task #%d to %s' => '%s zmienił osobę odpowiedzialną za zadanie #%d na %s',
'%s changed the assignee of the task %s to %s' => '%s zmienił osobę odpowiedzialną za zadanie %s na %s',
- '[%s][Column Change] %s (#%d)' => '[%s][Column Change] %s (#%d)',
- '[%s][Position Change] %s (#%d)' => '[%s][Zmiania Pozycji] %s (#%d)',
- '[%s][Assignee Change] %s (#%d)' => '[%s][Zmiana Osoby Odpowiedzialnej] %s (#%d)',
+ // 'Column Change' => '',
+ // 'Position Change' => '',
+ // 'Assignee Change' => '',
'New password for the user "%s"' => 'Nowe hasło użytkownika "%s"',
'Choose an event' => 'Wybierz zdarzenie',
// 'Github commit received' => '',
@@ -709,4 +707,5 @@ return array(
// 'There is nothing to show.' => '',
// 'Time Tracking' => '',
// 'You already have one subtask in progress' => '',
+ // 'Which parts of the project do you want to duplicate?' => '',
);
diff --git a/app/Locale/pt_BR/translations.php b/app/Locale/pt_BR/translations.php
index 31e9f268..7954f9ae 100644
--- a/app/Locale/pt_BR/translations.php
+++ b/app/Locale/pt_BR/translations.php
@@ -408,15 +408,13 @@ return array(
'Comment updated' => 'Comentário atualizado',
'New comment posted by %s' => 'Novo comentário postado por %s',
'List of due tasks for the project "%s"' => 'Lista de tarefas pendentes para o projeto "%s"',
- '[%s][New attachment] %s (#%d)' => '[%s][Novo anexo] %s (#%d)',
- '[%s][New comment] %s (#%d)' => '[%s][Novo comentário] %s (#%d)',
- '[%s][Comment updated] %s (#%d)' => '[%s][Comentário atualizado] %s (#%d)',
- '[%s][New subtask] %s (#%d)' => '[%s][Nova subtarefa] %s (#%d)',
- '[%s][Subtask updated] %s (#%d)' => '[%s][Subtarefa atualizada] %s (#%d)',
- '[%s][New task] %s (#%d)' => '[%s][Nova tarefa] %s (#%d)',
- '[%s][Task updated] %s (#%d)' => '[%s][Tarefa atualizada] %s (#%d)',
- '[%s][Task closed] %s (#%d)' => '[%s][Tarefa finalizada] %s (#%d)',
- '[%s][Task opened] %s (#%d)' => '[%s][Tarefa aberta] %s (#%d)',
+ // 'New attachment' => '',
+ // 'New comment' => '',
+ // 'New subtask' => '',
+ // 'Subtask updated' => '',
+ // 'Task updated' => '',
+ // 'Task closed' => '',
+ // 'Task opened' => '',
'[%s][Due tasks]' => '[%s][Tarefas pendentes]',
'[Kanboard] Notification' => '[Kanboard] Notificação',
'I want to receive notifications only for those projects:' => 'Quero receber notificações apenas destes projetos:',
@@ -500,9 +498,9 @@ return array(
'Task assignee change' => 'Mudar designação da tarefa',
'%s change the assignee of the task #%d to %s' => '%s mudou a designação da tarefa #%d para %s',
'%s changed the assignee of the task %s to %s' => '%s mudou a designação da tarefa %s para %s',
- '[%s][Column Change] %s (#%d)' => '[%s][Modificou Coluna] %s (#%d)',
- '[%s][Position Change] %s (#%d)' => '[%s][Modificou Posição] %s (#%d)',
- '[%s][Assignee Change] %s (#%d)' => '[%s][Modificou Designação] %s (#%d)',
+ // 'Column Change' => '',
+ // 'Position Change' => '',
+ // 'Assignee Change' => '',
'New password for the user "%s"' => 'Nova senha para o usuário "%s"',
'Choose an event' => 'Escolher um evento',
'Github commit received' => 'Github commit received',
@@ -709,4 +707,5 @@ return array(
// 'There is nothing to show.' => '',
// 'Time Tracking' => '',
// 'You already have one subtask in progress' => '',
+ // 'Which parts of the project do you want to duplicate?' => '',
);
diff --git a/app/Locale/ru_RU/translations.php b/app/Locale/ru_RU/translations.php
index 07916a49..81c0d72c 100644
--- a/app/Locale/ru_RU/translations.php
+++ b/app/Locale/ru_RU/translations.php
@@ -408,15 +408,13 @@ return array(
'Comment updated' => 'Комментарий обновлен',
'New comment posted by %s' => 'Новый комментарий написан « %s »',
'List of due tasks for the project "%s"' => 'Список сроков к проекту « %s »',
- '[%s][New attachment] %s (#%d)' => '[%s][Новых вложений] %s (#%d)',
- '[%s][New comment] %s (#%d)' => '[%s][Новых комментариев] %s (#%d)',
- '[%s][Comment updated] %s (#%d)' => '[%s][Обновленых коментариев] %s (#%d)',
- '[%s][New subtask] %s (#%d)' => '[%s][Новых подзадач] %s (#%d)',
- '[%s][Subtask updated] %s (#%d)' => '[%s][Обновленных подзадач] %s (#%d)',
- '[%s][New task] %s (#%d)' => '[%s][Новых задач] %s (#%d)',
- '[%s][Task updated] %s (#%d)' => '[%s][Обновленных задач] %s (#%d)',
- '[%s][Task closed] %s (#%d)' => '[%s][Закрытых задач] %s (#%d)',
- '[%s][Task opened] %s (#%d)' => '[%s][Открытых задач] %s (#%d)',
+ // 'New attachment' => '',
+ // 'New comment' => '',
+ // 'New subtask' => '',
+ // 'Subtask updated' => '',
+ // 'Task updated' => '',
+ // 'Task closed' => '',
+ // 'Task opened' => '',
'[%s][Due tasks]' => '[%s][Текущие задачи]',
'[Kanboard] Notification' => '[Kanboard] Оповещение',
'I want to receive notifications only for those projects:' => 'Я хочу получать уведомления только по этим проектам :',
@@ -500,9 +498,9 @@ return array(
'Task assignee change' => 'Изменен назначенный',
'%s change the assignee of the task #%d to %s' => '%s сменил назначенного для задачи #%d на %s',
'%s changed the assignee of the task %s to %s' => '%s сменил назначенного для задачи %s на %s',
- '[%s][Column Change] %s (#%d)' => '[%s][Изменение колонки] %s (#%d)',
- '[%s][Position Change] %s (#%d)' => '[%s][Изменение позиции] %s (#%d)',
- '[%s][Assignee Change] %s (#%d)' => '[%s][Изменение назначеного] %s (#%d)',
+ // 'Column Change' => '',
+ // 'Position Change' => '',
+ // 'Assignee Change' => '',
'New password for the user "%s"' => 'Новый пароль для пользователя %s"',
'Choose an event' => 'Выберите событие',
'Github commit received' => 'Github: коммит получен',
@@ -709,4 +707,5 @@ return array(
// 'There is nothing to show.' => '',
// 'Time Tracking' => '',
// 'You already have one subtask in progress' => '',
+ // 'Which parts of the project do you want to duplicate?' => '',
);
diff --git a/app/Locale/sv_SE/translations.php b/app/Locale/sv_SE/translations.php
index f2cd9199..734a7d42 100644
--- a/app/Locale/sv_SE/translations.php
+++ b/app/Locale/sv_SE/translations.php
@@ -408,15 +408,13 @@ return array(
'Comment updated' => 'Kommentaren har uppdaterats',
'New comment posted by %s' => 'Ny kommentar postad av %s',
'List of due tasks for the project "%s"' => 'Lista med uppgifter för projektet "%s"',
- '[%s][New attachment] %s (#%d)' => '[%s][Ny bifogning] %s (#%d)',
- '[%s][New comment] %s (#%d)' => '[%s][Ny kommentar] %s (#%d)',
- '[%s][Comment updated] %s (#%d)' => '[%s][Uppdaterad kommentar] %s (#%d)',
- '[%s][New subtask] %s (#%d)' => '[%s][Ny deluppgift] %s (#%d)',
- '[%s][Subtask updated] %s (#%d)' => '[%s][Deluppgiften uppdaterad] %s (#%d)',
- '[%s][New task] %s (#%d)' => '[%s][Ny uppgift] %s (#%d)',
- '[%s][Task updated] %s (#%d)' => '[%s][Uppgiften uppdaterad] %s (#%d)',
- '[%s][Task closed] %s (#%d)' => '[%s][Uppgiften stängd] %s (#%d)',
- '[%s][Task opened] %s (#%d)' => '[%s][Uppgiften öppnad] %s (#%d)',
+ // 'New attachment' => '',
+ // 'New comment' => '',
+ // 'New subtask' => '',
+ // 'Subtask updated' => '',
+ // 'Task updated' => '',
+ // 'Task closed' => '',
+ // 'Task opened' => '',
'[%s][Due tasks]' => '[%s][Förfallen uppgift]',
'[Kanboard] Notification' => '[Kanboard] Notis',
'I want to receive notifications only for those projects:' => 'Jag vill endast få notiser för dessa projekt:',
@@ -500,9 +498,9 @@ return array(
'Task assignee change' => 'Ändra tilldelning av uppgiften',
'%s change the assignee of the task #%d to %s' => '%s byt tilldelning av uppgiften #%d till %s',
'%s changed the assignee of the task %s to %s' => '%s byt tilldelning av uppgiften %s till %s',
- '[%s][Column Change] %s (#%d)' => '[%s][Byt kolumn] %s (#%d)',
- '[%s][Position Change] %s (#%d)' => '[%s][Byt position] %s (#%d)',
- '[%s][Assignee Change] %s (#%d)' => '[%s][Byt tilldelning] %s (#%d)',
+ // 'Column Change' => '',
+ // 'Position Change' => '',
+ // 'Assignee Change' => '',
'New password for the user "%s"' => 'Nytt lösenord för användaren "%s"',
'Choose an event' => 'Välj en händelse',
'Github commit received' => 'Github-bidrag mottaget',
@@ -709,4 +707,5 @@ return array(
// 'There is nothing to show.' => '',
// 'Time Tracking' => '',
// 'You already have one subtask in progress' => '',
+ // 'Which parts of the project do you want to duplicate?' => '',
);
diff --git a/app/Locale/th_TH/translations.php b/app/Locale/th_TH/translations.php
index e4196571..a05a6034 100644
--- a/app/Locale/th_TH/translations.php
+++ b/app/Locale/th_TH/translations.php
@@ -408,15 +408,13 @@ return array(
'Comment updated' => 'ปรับปรุงความคิดเห็น',
'New comment posted by %s' => 'ความคิดเห็นใหม่จาก %s',
'List of due tasks for the project "%s"' => 'รายการงานสำหรับโปรเจค "%s"',
- '[%s][New attachment] %s (#%d)' => '[%s][แนบใหม่] %s (#%d)',
- '[%s][New comment] %s (#%d)' => '[%s][ความคิดเห็นใหม่] %s (#%d)',
- '[%s][Comment updated] %s (#%d)' => '[%s][ปรับปรุงความคิดเห็น] %s (#%d)',
- '[%s][New subtask] %s (#%d)' => '[%s][งานย่อยใหม่] %s (#%d)',
- '[%s][Subtask updated] %s (#%d)' => '[%s][ปรับปรุงงานย่อย] %s (#%d)',
- '[%s][New task] %s (#%d)' => '[%s][งานใหม่] %s (#%d)',
- '[%s][Task updated] %s (#%d)' => '[%s][ปรับปรุุงงาน] %s (#%d)',
- '[%s][Task closed] %s (#%d)' => '[%s][งานที่ปิด] %s (#%d)',
- '[%s][Task opened] %s (#%d)' => '[%s][งานที่เปิด] %s (#%d)',
+ // 'New attachment' => '',
+ // 'New comment' => '',
+ // 'New subtask' => '',
+ // 'Subtask updated' => '',
+ // 'Task updated' => '',
+ // 'Task closed' => '',
+ // 'Task opened' => '',
'[%s][Due tasks]' => '[%s][งานปัจจุบัน]',
'[Kanboard] Notification' => '[Kanboard] แจ้งเตือน',
'I want to receive notifications only for those projects:' => 'ฉันต้องการรับการแจ้งเตือนสำหรับโปรเจค:',
@@ -500,9 +498,9 @@ return array(
'Task assignee change' => 'เปลี่ยนการกำหนดบุคคลของงาน',
// '%s change the assignee of the task #%d to %s' => '',
// '%s changed the assignee of the task %s to %s' => '',
- // '[%s][Column Change] %s (#%d)' => '',
- // '[%s][Position Change] %s (#%d)' => '',
- // '[%s][Assignee Change] %s (#%d)' => '',
+ // 'Column Change' => '',
+ // 'Position Change' => '',
+ // 'Assignee Change' => '',
'New password for the user "%s"' => 'รหัสผ่านใหม่สำหรับผู้ใช้ "%s"',
// 'Choose an event' => '',
// 'Github commit received' => '',
@@ -709,4 +707,5 @@ return array(
// 'There is nothing to show.' => '',
// 'Time Tracking' => '',
// 'You already have one subtask in progress' => '',
+ // 'Which parts of the project do you want to duplicate?' => '',
);
diff --git a/app/Locale/zh_CN/translations.php b/app/Locale/zh_CN/translations.php
index d89d46ce..2c69d95c 100644
--- a/app/Locale/zh_CN/translations.php
+++ b/app/Locale/zh_CN/translations.php
@@ -408,15 +408,13 @@ return array(
'Comment updated' => '更新了评论',
'New comment posted by %s' => '%s 的新评论',
'List of due tasks for the project "%s"' => '项目"%s"的到期任务列表',
- '[%s][New attachment] %s (#%d)' => '[%s][新附件] %s (#%d)',
- '[%s][New comment] %s (#%d)' => '[%s][新评论] %s (#%d)',
- '[%s][Comment updated] %s (#%d)' => '[%s][评论更新] %s (#%d)',
- '[%s][New subtask] %s (#%d)' => '[%s][新子任务] %s (#%d)',
- '[%s][Subtask updated] %s (#%d)' => '[%s][子任务更新] %s (#%d)',
- '[%s][New task] %s (#%d)' => '[%s][新任务] %s (#%d)',
- '[%s][Task updated] %s (#%d)' => '[%s][任务更新] %s (#%d)',
- '[%s][Task closed] %s (#%d)' => '[%s][任务关闭] %s (#%d)',
- '[%s][Task opened] %s (#%d)' => '[%s][任务开启] %s (#%d)',
+ // 'New attachment' => '',
+ // 'New comment' => '',
+ // 'New subtask' => '',
+ // 'Subtask updated' => '',
+ // 'Task updated' => '',
+ // 'Task closed' => '',
+ // 'Task opened' => '',
'[%s][Due tasks]' => '[%s][到期任务]',
'[Kanboard] Notification' => '[Kanboard] 通知',
'I want to receive notifications only for those projects:' => '我仅需要收到下面项目的通知:',
@@ -500,9 +498,9 @@ return array(
'Task assignee change' => '任务分配变更',
'%s change the assignee of the task #%d to %s' => '%s 将任务 #%d 分配给了 %s',
'%s changed the assignee of the task %s to %s' => '%s 将任务 %s 分配给 %s',
- '[%s][Column Change] %s (#%d)' => '[%s][栏目变更] %s (#%d)',
- '[%s][Position Change] %s (#%d)' => '[%s][位置变更] %s (#%d)',
- '[%s][Assignee Change] %s (#%d)' => '[%s][任务分配变更] %s (#%d)',
+ // 'Column Change' => '',
+ // 'Position Change' => '',
+ // 'Assignee Change' => '',
'New password for the user "%s"' => '用户"%s"的新密码',
'Choose an event' => '选择一个事件',
'Github commit received' => '收到了Github提交',
@@ -709,4 +707,5 @@ return array(
// 'There is nothing to show.' => '',
// 'Time Tracking' => '',
// 'You already have one subtask in progress' => '',
+ // 'Which parts of the project do you want to duplicate?' => '',
);
diff --git a/app/Model/Notification.php b/app/Model/Notification.php
index 49691f85..2b6e6a71 100644
--- a/app/Model/Notification.php
+++ b/app/Model/Notification.php
@@ -127,7 +127,7 @@ class Notification extends Base
*/
private function getStandardMailSubject($label, array $data)
{
- return e('[%s][%s] %s (#%d)', $data['task']['project_name'], $label, $data['task']['title'], $data['task']['id']);
+ return sprintf('[%s][%s] %s (#%d)', $data['task']['project_name'], $label, $data['task']['title'], $data['task']['id']);
}
/**
@@ -141,40 +141,40 @@ class Notification extends Base
{
switch ($template) {
case 'file_creation':
- $subject = $this->getStandardMailSubject('New attachment', $data);
+ $subject = $this->getStandardMailSubject(t('New attachment'), $data);
break;
case 'comment_creation':
- $subject = $this->getStandardMailSubject('New comment', $data);
+ $subject = $this->getStandardMailSubject(t('New comment'), $data);
break;
case 'comment_update':
- $subject = $this->getStandardMailSubject('Comment updated', $data);
+ $subject = $this->getStandardMailSubject(t('Comment updated'), $data);
break;
case 'subtask_creation':
- $subject = $this->getStandardMailSubject('New subtask', $data);
+ $subject = $this->getStandardMailSubject(t('New subtask'), $data);
break;
case 'subtask_update':
- $subject = $this->getStandardMailSubject('Subtask updated', $data);
+ $subject = $this->getStandardMailSubject(t('Subtask updated'), $data);
break;
case 'task_creation':
- $subject = $this->getStandardMailSubject('New task', $data);
+ $subject = $this->getStandardMailSubject(t('New task'), $data);
break;
case 'task_update':
- $subject = $this->getStandardMailSubject('Task updated', $data);
+ $subject = $this->getStandardMailSubject(t('Task updated'), $data);
break;
case 'task_close':
- $subject = $this->getStandardMailSubject('Task closed', $data);
+ $subject = $this->getStandardMailSubject(t('Task closed'), $data);
break;
case 'task_open':
- $subject = $this->getStandardMailSubject('Task opened', $data);
+ $subject = $this->getStandardMailSubject(t('Task opened'), $data);
break;
case 'task_move_column':
- $subject = $this->getStandardMailSubject('Column Change', $data);
+ $subject = $this->getStandardMailSubject(t('Column Change'), $data);
break;
case 'task_move_position':
- $subject = $this->getStandardMailSubject('Position Change', $data);
+ $subject = $this->getStandardMailSubject(t('Position Change'), $data);
break;
case 'task_assignee_change':
- $subject = $this->getStandardMailSubject('Assignee Change', $data);
+ $subject = $this->getStandardMailSubject(t('Assignee Change'), $data);
break;
case 'task_due':
$subject = e('[%s][Due tasks]', $data['project']);
diff --git a/app/Model/ProjectDuplication.php b/app/Model/ProjectDuplication.php
index b93cbee5..7e3407be 100644
--- a/app/Model/ProjectDuplication.php
+++ b/app/Model/ProjectDuplication.php
@@ -61,7 +61,7 @@ class ProjectDuplication extends Base
*
* @param integer $project_id Project Id
* @param array $part_selection Selection of optional project parts to duplicate. Possible options: 'swimlane', 'action', 'category', 'task'
- * @return integer Cloned Project Id
+ * @return integer Cloned Project Id
*/
public function duplicate($project_id, $part_selection = array('category', 'action'))
{
@@ -90,16 +90,14 @@ class ProjectDuplication extends Base
}
}
-
$this->db->closeTransaction();
- //* Clone Tasks if in $part_selection
-
- if(in_array('task', $part_selection)) {
+ // Clone Tasks if in $part_selection
+ if (in_array('task', $part_selection)) {
$tasks = $this->taskFinder->getAll($project_id);
foreach ($tasks as $task) {
- if (!$this->taskDuplication->duplicateToProject($task['id'], $clone_project_id)) {
+ if (! $this->taskDuplication->duplicateToProject($task['id'], $clone_project_id)) {
return false;
}
}
diff --git a/app/Template/project/duplicate.php b/app/Template/project/duplicate.php
index b6184220..7e7fd85e 100644
--- a/app/Template/project/duplicate.php
+++ b/app/Template/project/duplicate.php
@@ -12,8 +12,8 @@
<?= $this->formCheckbox('category', t('Categories'), 1, true) ?>
<?= $this->formCheckbox('action', t('Actions'), 1, true) ?>
- <?= $this->formCheckbox('swimlane', t('Swimlanes'), 1, true) ?>
- <?= $this->formCheckbox('task', t('Tasks'), 1, true) ?>
+ <?= $this->formCheckbox('swimlane', t('Swimlanes'), 1, false) ?>
+ <?= $this->formCheckbox('task', t('Tasks'), 1, false) ?>
<div class="form-actions">
<input type="submit" value="<?= t('Duplicate') ?>" class="btn btn-red"/>