Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added locale-de_DE #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Locale/de_DE/translations.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

return array(
'Adding automatic actions for subtasks' => 'Fügt automatische Aktionen für Teilaufgaben hinzu',
'Create one or more Subtasks Automatically based on column' =>'Erzeuge basierend auf einer Spalte automatisch eine oder mehrere Teilaufgaben',
'Create one or more Subtasks Automatically based on a category' => 'Erzeuge basierend auf einer Kategorie automatisch eine oder mehrere Teilaufgaben',
'Subtask Title(s)' => 'Titel der Teilaufgabe(n)',
'Estimated Time in Hours' => 'Erwartete Zeit in Stunden',
'Duration in days' => 'Dauer in Tagen',
'Enter one line per task, or leave blank to copy Task Title and create only one subtask.' => 'Geben Sie eine Teilaufgabe pro Zeile ein, oder lassen Sie das Feld leer, um den Aufgabetitel zu kopieren und nur eine Teilaufgabe zu erstellen.',
'Options' => 'Optionen',
'Apply to all Columns' => 'Auf alle Spalten anwenden',
'Do not duplicate subtasks' => 'Teilaufgaben nicht duplizieren'
);
16 changes: 11 additions & 5 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Kanboard\Plugin\AutoSubtasks;

use Kanboard\Core\Plugin\Base;
use Kanboard\Core\Translator;
use Kanboard\Plugin\AutoSubtasks\Action\AutoCreateSubtask;
use Kanboard\Plugin\AutoSubtasks\Action\AutoCreateSubtaskVanilla;
use Kanboard\Plugin\AutoSubtasks\Action\CategoryAutoSubtask;
Expand All @@ -15,15 +16,20 @@ public function initialize()

{
$this->template->setTemplateOverride('action_creation/params', 'autoSubtasks:action_creation/params');

if (file_exists('plugins/Subtaskdate')) {
$this->actionManager->register(new AutoCreateSubtask($this->container));
$this->actionManager->register(new CategoryAutoSubtask($this->container));
} else {
$this->actionManager->register(new AutoCreateSubtaskVanilla($this->container));
$this->actionManager->register(new CategoryAutoSubtaskVanilla($this->container));
}


}

public function onStartup() {
// load Translation
Translator::load($this->languageModel->getCurrentLanguage(), __DIR__ . '/Locale');
}

public function getPluginName()
Expand All @@ -40,17 +46,17 @@ public function getPluginVersion()
{
return '2.1.0';
}

public function getPluginDescription()
{
return 'Adding automatic actions for subtasks';
return t('Adding automatic actions for subtasks');
}

public function getPluginHomepage()
{
return 'https://github.com/creecros/AutoSubtasks';
}

public function getCompatibleVersion()
{
return '>=1.0.48';
Expand Down