From f5ff8e388e92f2b834adfcefca2744b9808b4eac Mon Sep 17 00:00:00 2001 From: "Dzial Techniczny WMW Projekt s.c" Date: Tue, 10 Dec 2019 16:31:45 +0100 Subject: Extending Boardcustomizer with additional options and Polish locale --- .../Controller/SettingsController.php | 2 ++ .../Boardcustomizer/Locale/pl_PL/translations.php | 25 ++++++++++++++++++++++ plugins/Boardcustomizer/Template/layout/head.php | 22 ++++++++++++++++++- plugins/Boardcustomizer/Template/user/settings.php | 6 +++--- 4 files changed, 51 insertions(+), 4 deletions(-) create mode 100644 plugins/Boardcustomizer/Locale/pl_PL/translations.php diff --git a/plugins/Boardcustomizer/Controller/SettingsController.php b/plugins/Boardcustomizer/Controller/SettingsController.php index e98ffbde..e1443cf9 100644 --- a/plugins/Boardcustomizer/Controller/SettingsController.php +++ b/plugins/Boardcustomizer/Controller/SettingsController.php @@ -22,6 +22,8 @@ class SettingsController extends BaseController t('Card: hide all footer icons') => 'boardcustomizer_hidefooter', t('Card: hide task priority') => 'boardcustomizer_hidetaskpriority', t('Card: hide task age') => 'boardcustomizer_hidetaskage', + t('Card: hide description link') => 'boardcustomizer_hidedescription', + t('Card: hide linked tasks') => 'boardcustomizer_hidelinks', t('Card: hide reference') => 'boardcustomizer_hidereference', t('Card: hide score') => 'boardcustomizer_hidescore', t('Card: hide time estimated') => 'boardcustomizer_hidetimeestimated', diff --git a/plugins/Boardcustomizer/Locale/pl_PL/translations.php b/plugins/Boardcustomizer/Locale/pl_PL/translations.php new file mode 100644 index 00000000..4d21d038 --- /dev/null +++ b/plugins/Boardcustomizer/Locale/pl_PL/translations.php @@ -0,0 +1,25 @@ + 'Ustawienia wyświetlania', + 'Board: only show first column header' => 'Tablica: wyświetlaj tylko pierwszy nagłówek', + 'Board: top selection without scollbar' => 'Tablica: górny panel bez przewijania', + 'Card: material design' => 'Zadanie: material design', + 'Card: hide task priority' => 'Zadanie: ukryj priorytet', + 'Card: hide task age' => 'Zadanie: ukryj czas trwania', + 'Card: white background' => 'Zadanie: wymuś białe tło', + 'Card: hide group labels' => 'Zadanie: ukryj etykiety grup', + 'Customize board and card style' => 'Dostosuj wygląd tablicy i zadań', + 'Card: hide owner name' => 'Zadanie: ukryj nazwę właściciela', + 'Card: hide category' => 'Zadanie: ukryj kategorię', + 'Card: hide tags' => 'Zadanie: ukryj tagi', + 'Card: hide all footer icons' => 'Zadanie: ukryj wszystkie dolne ikony', + 'Card: hide reference' => 'Zadanie: ukryj odwołania', + 'Card: hide score' => 'Zadanie: ukryj punktację', + 'Card: hide time estimated' => 'Zadanie: ukryj oszacowanie czasu', + 'Card: hide task date' => 'Zadanie: ukryj datę', + 'Card: hide description link' => 'Zadanie: ukryj link opisu', + 'Card: hide linked tasks' => 'Zadanie: ukryj powiązania', + 'Toggle enabled' => 'Włączone', + 'Toggle disabled' => 'Wyłączone' +); diff --git a/plugins/Boardcustomizer/Template/layout/head.php b/plugins/Boardcustomizer/Template/layout/head.php index fca861f9..1a352407 100644 --- a/plugins/Boardcustomizer/Template/layout/head.php +++ b/plugins/Boardcustomizer/Template/layout/head.php @@ -141,6 +141,26 @@ if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomize user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_hidelinks")) { + /* hide linked tasks */ + ?> + +user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_hidedescription")) { + /* hide description icon */ + ?> + +user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_hidescore")) { /* hide score */ ?> @@ -170,4 +190,4 @@ if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomize } user->userMetadataModel->exists($user['id'], $key)) : ?> - url->icon('toggle-off', t('Disable'), 'SettingsController', 'disable', array('plugin' => 'boardcustomizer', 'key' => $key), true) ?> + url->icon('toggle-on', t('Toggle enabled'), 'SettingsController', 'disable', array('plugin' => 'boardcustomizer', 'key' => $key), true) ?> - url->icon('toggle-on', t('Enable'), 'SettingsController', 'enable', array('plugin' => 'boardcustomizer', 'key' => $key), true) ?> + url->icon('toggle-off', t('Toggle disabled'), 'SettingsController', 'enable', array('plugin' => 'boardcustomizer', 'key' => $key), true) ?> - \ No newline at end of file + -- cgit v1.2.3