From: Nik Okuntseff Date: Fri, 15 Mar 2019 21:28:37 +0000 (+0000) Subject: Work in progress on project attachments. X-Git-Tag: timetracker_1.19-1~168 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b5b2801290794632bba7af2cdddf9d4a8a96c29c;p=timetracker.git Work in progress on project attachments. --- diff --git a/WEB-INF/resources/ca.lang.php b/WEB-INF/resources/ca.lang.php index e63a616a..e524613a 100644 --- a/WEB-INF/resources/ca.lang.php +++ b/WEB-INF/resources/ca.lang.php @@ -315,6 +315,8 @@ $i18n_key_words = array( // 'title.send_invoice' => 'Sending Invoice', // 'title.charts' => 'Charts', 'title.projects' => 'Projectes', +// TODO: translate the following. +// 'title.project_files' => 'Project Files', 'title.add_project' => 'Agregant projecte', 'title.edit_project' => 'Modificant projecte', 'title.delete_project' => 'Eliminant projecte', diff --git a/WEB-INF/resources/cs.lang.php b/WEB-INF/resources/cs.lang.php index 6c5b0f75..2d7b36ff 100644 --- a/WEB-INF/resources/cs.lang.php +++ b/WEB-INF/resources/cs.lang.php @@ -325,6 +325,8 @@ $i18n_key_words = array( // 'title.send_invoice' => 'Sending Invoice', // 'title.charts' => 'Charts', 'title.projects' => 'Projekty', +// TODO: translate the following. +// 'title.project_files' => 'Project Files', 'title.add_project' => 'Pridat projekt', 'title.edit_project' => 'Upravit projekt', 'title.delete_project' => 'Smazat projekt', diff --git a/WEB-INF/resources/da.lang.php b/WEB-INF/resources/da.lang.php index 7a978b70..662b21bd 100644 --- a/WEB-INF/resources/da.lang.php +++ b/WEB-INF/resources/da.lang.php @@ -296,6 +296,8 @@ $i18n_key_words = array( 'title.send_invoice' => 'Sender Faktura', 'title.charts' => 'Diagrammer', 'title.projects' => 'Projekter', +// TODO: translate the following. +// 'title.project_files' => 'Project Files', 'title.add_project' => 'Tilføj Projekt', 'title.edit_project' => 'Redigér Projekt', 'title.delete_project' => 'Slet Projekt', diff --git a/WEB-INF/resources/de.lang.php b/WEB-INF/resources/de.lang.php index ec3a5337..7d0dda04 100644 --- a/WEB-INF/resources/de.lang.php +++ b/WEB-INF/resources/de.lang.php @@ -280,6 +280,8 @@ $i18n_key_words = array( 'title.send_invoice' => 'Rechnung senden', 'title.charts' => 'Diagramme', 'title.projects' => 'Projekte', +// TODO: translate the following. +// 'title.project_files' => 'Project Files', 'title.add_project' => 'Projekt anlegen', 'title.edit_project' => 'Projekt bearbeiten', 'title.delete_project' => 'Projekt löschen', diff --git a/WEB-INF/resources/en.lang.php b/WEB-INF/resources/en.lang.php index 65227741..3e855d05 100644 --- a/WEB-INF/resources/en.lang.php +++ b/WEB-INF/resources/en.lang.php @@ -271,6 +271,7 @@ $i18n_key_words = array( 'title.send_invoice' => 'Sending Invoice', 'title.charts' => 'Charts', 'title.projects' => 'Projects', +'title.project_files' => 'Project Files', 'title.add_project' => 'Adding Project', 'title.edit_project' => 'Editing Project', 'title.delete_project' => 'Deleting Project', diff --git a/WEB-INF/resources/es.lang.php b/WEB-INF/resources/es.lang.php index cf23a133..b314181e 100644 --- a/WEB-INF/resources/es.lang.php +++ b/WEB-INF/resources/es.lang.php @@ -314,6 +314,8 @@ $i18n_key_words = array( // 'title.send_invoice' => 'Sending Invoice', // 'title.charts' => 'Charts', 'title.projects' => 'Proyectos', +// TODO: translate the following. +// 'title.project_files' => 'Project Files', 'title.add_project' => 'Agregando proyecto', 'title.edit_project' => 'Modificando proyecto', 'title.delete_project' => 'Eliminando proyecto', diff --git a/WEB-INF/resources/et.lang.php b/WEB-INF/resources/et.lang.php index c8ba34da..7ffb1656 100644 --- a/WEB-INF/resources/et.lang.php +++ b/WEB-INF/resources/et.lang.php @@ -301,6 +301,8 @@ $i18n_key_words = array( 'title.send_invoice' => 'Saada arve', 'title.charts' => 'Diagrammid', 'title.projects' => 'Projektid', +// TODO: translate the following. +// 'title.project_files' => 'Project Files', 'title.add_project' => 'Projekti lisamine', 'title.edit_project' => 'Projekti muutmine', 'title.delete_project' => 'Projekti kustutamine', diff --git a/WEB-INF/resources/fa.lang.php b/WEB-INF/resources/fa.lang.php index 8991802c..e404d79c 100644 --- a/WEB-INF/resources/fa.lang.php +++ b/WEB-INF/resources/fa.lang.php @@ -302,6 +302,8 @@ $i18n_key_words = array( 'title.send_invoice' => 'ارسال فاکتور', 'title.charts' => 'نمودارها', 'title.projects' => 'پروژه ها', +// TODO: translate the following. +// 'title.project_files' => 'Project Files', 'title.add_project' => 'درج پروژه', 'title.edit_project' => 'ویرایش پروژه', 'title.delete_project' => 'حذف پروژه', diff --git a/WEB-INF/resources/fi.lang.php b/WEB-INF/resources/fi.lang.php index 3dd804c8..ac6e438f 100644 --- a/WEB-INF/resources/fi.lang.php +++ b/WEB-INF/resources/fi.lang.php @@ -296,6 +296,8 @@ $i18n_key_words = array( 'title.send_invoice' => 'Laskun lähetys', 'title.charts' => 'Kaaviot', 'title.projects' => 'Projektit', +// TODO: translate the following. +// 'title.project_files' => 'Project Files', 'title.add_project' => 'Projektin lisäys', 'title.edit_project' => 'Projektin muokkaus', 'title.delete_project' => 'Projektin poisto', diff --git a/WEB-INF/resources/fr.lang.php b/WEB-INF/resources/fr.lang.php index 051cc75b..5a38ee3f 100644 --- a/WEB-INF/resources/fr.lang.php +++ b/WEB-INF/resources/fr.lang.php @@ -290,6 +290,8 @@ $i18n_key_words = array( 'title.send_invoice' => 'Envoi de la facture', 'title.charts' => 'Graphiques', 'title.projects' => 'Projets', +// TODO: translate the following. +// 'title.project_files' => 'Project Files', 'title.add_project' => 'Ajout d\\\'un projet', 'title.edit_project' => 'Modification d\\\'un projet', 'title.delete_project' => 'Suppression d\\\'un projet', diff --git a/WEB-INF/resources/gr.lang.php b/WEB-INF/resources/gr.lang.php index 0de289b6..608b3878 100644 --- a/WEB-INF/resources/gr.lang.php +++ b/WEB-INF/resources/gr.lang.php @@ -287,6 +287,8 @@ $i18n_key_words = array( 'title.send_invoice' => 'Αποστολή τιμολόγιου', 'title.charts' => 'Γραφήματα', 'title.projects' => 'Έργο', +// TODO: translate the following. +// 'title.project_files' => 'Project Files', 'title.add_project' => 'Προσθήκη έργου', 'title.edit_project' => 'Επεξεργασία έργου', 'title.delete_project' => 'Διαγραφή έργου', diff --git a/WEB-INF/resources/he.lang.php b/WEB-INF/resources/he.lang.php index 7df92de1..f0a31aa2 100644 --- a/WEB-INF/resources/he.lang.php +++ b/WEB-INF/resources/he.lang.php @@ -314,6 +314,8 @@ $i18n_key_words = array( 'title.send_invoice' => 'שליחת חשבונית', 'title.charts' => 'תרשימים', 'title.projects' => 'פרוייקטים', +// TODO: translate the following. +// 'title.project_files' => 'Project Files', 'title.add_project' => 'הוסף פרוייקט', 'title.edit_project' => 'עריכת פרוייקט', 'title.delete_project' => 'מחיקת פרוייקט', diff --git a/WEB-INF/resources/hu.lang.php b/WEB-INF/resources/hu.lang.php index 7f299b7d..0bc245f6 100644 --- a/WEB-INF/resources/hu.lang.php +++ b/WEB-INF/resources/hu.lang.php @@ -315,6 +315,8 @@ $i18n_key_words = array( // 'title.send_invoice' => 'Sending Invoice', // 'title.charts' => 'Charts', 'title.projects' => 'Projektek', +// TODO: translate the following. +// 'title.project_files' => 'Project Files', 'title.add_project' => 'Projekt hozzáadása', 'title.edit_project' => 'Projekt szerkesztése', 'title.delete_project' => 'Projekt törlése', diff --git a/WEB-INF/resources/it.lang.php b/WEB-INF/resources/it.lang.php index a009aca4..54cf7e73 100644 --- a/WEB-INF/resources/it.lang.php +++ b/WEB-INF/resources/it.lang.php @@ -295,6 +295,8 @@ $i18n_key_words = array( 'title.send_invoice' => 'Invia fattura', 'title.charts' => 'Grafici', 'title.projects' => 'Progetti', +// TODO: translate the following. +// 'title.project_files' => 'Project Files', 'title.add_project' => 'Aggiungi progetto', 'title.edit_project' => 'Modifica progetto', 'title.delete_project' => 'Elimina progetto', diff --git a/WEB-INF/resources/ja.lang.php b/WEB-INF/resources/ja.lang.php index dd780dc8..0a443f95 100644 --- a/WEB-INF/resources/ja.lang.php +++ b/WEB-INF/resources/ja.lang.php @@ -321,6 +321,8 @@ $i18n_key_words = array( // 'title.send_invoice' => 'Sending Invoice', // 'title.charts' => 'Charts', 'title.projects' => 'プロジェクト', +// TODO: translate the following. +// 'title.project_files' => 'Project Files', 'title.add_project' => 'プロジェクトの追加', 'title.edit_project' => 'プロジェクトの編集', 'title.delete_project' => 'プロジェクトの削除', diff --git a/WEB-INF/resources/ko.lang.php b/WEB-INF/resources/ko.lang.php index 15057c29..c4988fa3 100644 --- a/WEB-INF/resources/ko.lang.php +++ b/WEB-INF/resources/ko.lang.php @@ -321,6 +321,8 @@ $i18n_key_words = array( // 'title.send_invoice' => 'Sending Invoice', // 'title.charts' => 'Charts', 'title.projects' => '프로젝트', +// TODO: translate the following. +// 'title.project_files' => 'Project Files', 'title.add_project' => '프로젝트를 추가하기', 'title.edit_project' => '프로젝트를 편집하기', 'title.delete_project' => '프로젝트를 편집하기', diff --git a/WEB-INF/resources/nl.lang.php b/WEB-INF/resources/nl.lang.php index cdd48526..c5a3b509 100644 --- a/WEB-INF/resources/nl.lang.php +++ b/WEB-INF/resources/nl.lang.php @@ -274,6 +274,8 @@ $i18n_key_words = array( 'title.send_invoice' => 'Factuur verzenden', 'title.charts' => 'Grafieken', 'title.projects' => 'Projecten', +// TODO: translate the following. +// 'title.project_files' => 'Project Files', 'title.add_project' => 'Project toevoegen', 'title.edit_project' => 'Project wijzigen', 'title.delete_project' => 'Project verwijderen', diff --git a/WEB-INF/resources/no.lang.php b/WEB-INF/resources/no.lang.php index b734bbb9..55cb9d86 100644 --- a/WEB-INF/resources/no.lang.php +++ b/WEB-INF/resources/no.lang.php @@ -318,6 +318,8 @@ $i18n_key_words = array( // 'title.send_invoice' => 'Sending Invoice', // 'title.charts' => 'Charts', 'title.projects' => 'Prosjekter', +// TODO: translate the following. +// 'title.project_files' => 'Project Files', 'title.add_project' => 'Legg til prosjekt', 'title.edit_project' => 'Endre prosjekt', 'title.delete_project' => 'Slett prosjekt', diff --git a/WEB-INF/resources/pl.lang.php b/WEB-INF/resources/pl.lang.php index 8c5533c3..5a6ea8a9 100644 --- a/WEB-INF/resources/pl.lang.php +++ b/WEB-INF/resources/pl.lang.php @@ -297,6 +297,8 @@ $i18n_key_words = array( 'title.send_invoice' => 'Wysyłanie faktury', 'title.charts' => 'Statystyki', 'title.projects' => 'Projekty', +// TODO: translate the following. +// 'title.project_files' => 'Project Files', 'title.add_project' => 'dodawanie projektu', 'title.edit_project' => 'Edytowanie projektu', 'title.delete_project' => 'Usuwanie projektu', diff --git a/WEB-INF/resources/pt-br.lang.php b/WEB-INF/resources/pt-br.lang.php index 55346d9e..843258fb 100644 --- a/WEB-INF/resources/pt-br.lang.php +++ b/WEB-INF/resources/pt-br.lang.php @@ -294,6 +294,8 @@ $i18n_key_words = array( 'title.send_invoice' => 'Enviando fatura', 'title.charts' => 'Gráficos', 'title.projects' => 'Projetos', +// TODO: translate the following. +// 'title.project_files' => 'Project Files', 'title.add_project' => 'Adicionando projeto', 'title.edit_project' => 'Editando projeto', 'title.delete_project' => 'Apagando projeto', diff --git a/WEB-INF/resources/pt.lang.php b/WEB-INF/resources/pt.lang.php index 0b85a5b5..538ec988 100644 --- a/WEB-INF/resources/pt.lang.php +++ b/WEB-INF/resources/pt.lang.php @@ -303,6 +303,8 @@ $i18n_key_words = array( // 'title.send_invoice' => 'Sending Invoice', // 'title.charts' => 'Charts', 'title.projects' => 'Projetos', +// TODO: translate the following. +// 'title.project_files' => 'Project Files', 'title.add_project' => 'Adicionando projeto', 'title.edit_project' => 'Editando projeto', 'title.delete_project' => 'Apagando projeto', diff --git a/WEB-INF/resources/ro.lang.php b/WEB-INF/resources/ro.lang.php index a66de4d1..10803e21 100644 --- a/WEB-INF/resources/ro.lang.php +++ b/WEB-INF/resources/ro.lang.php @@ -321,6 +321,8 @@ $i18n_key_words = array( // 'title.send_invoice' => 'Sending Invoice', // 'title.charts' => 'Charts', 'title.projects' => 'Proiecte', +// TODO: translate the following. +// 'title.project_files' => 'Project Files', 'title.add_project' => 'Adaugare proiect', 'title.edit_project' => 'Editare proiect', 'title.delete_project' => 'Stergere proiect', diff --git a/WEB-INF/resources/ru.lang.php b/WEB-INF/resources/ru.lang.php index 0f866d08..751d3a75 100644 --- a/WEB-INF/resources/ru.lang.php +++ b/WEB-INF/resources/ru.lang.php @@ -270,6 +270,7 @@ $i18n_key_words = array( 'title.send_invoice' => 'Отсылка счёта', 'title.charts' => 'Диаграммы', 'title.projects' => 'Проекты', +'title.project_files' => 'Файлы проекта', 'title.add_project' => 'Добавление проекта', 'title.edit_project' => 'Редактирование проекта', 'title.delete_project' => 'Удаление проекта', diff --git a/WEB-INF/resources/sk.lang.php b/WEB-INF/resources/sk.lang.php index e0ac2979..81409771 100644 --- a/WEB-INF/resources/sk.lang.php +++ b/WEB-INF/resources/sk.lang.php @@ -303,6 +303,8 @@ $i18n_key_words = array( 'title.send_invoice' => 'Odosielanie faktúry', 'title.charts' => 'Grafy', 'title.projects' => 'Projekty', +// TODO: translate the following. +// 'title.project_files' => 'Project Files', 'title.add_project' => 'Pridávanie projektu', 'title.edit_project' => 'Upravovanie projektu', 'title.delete_project' => 'Vymazávanie projektu', diff --git a/WEB-INF/resources/sl.lang.php b/WEB-INF/resources/sl.lang.php index d1e48487..712b3ee5 100644 --- a/WEB-INF/resources/sl.lang.php +++ b/WEB-INF/resources/sl.lang.php @@ -298,6 +298,8 @@ $i18n_key_words = array( // 'title.send_invoice' => 'Sending Invoice', // 'title.charts' => 'Charts', 'title.projects' => 'Projekti', +// TODO: translate the following. +// 'title.project_files' => 'Project Files', 'title.add_project' => 'Dodajanje projekta', 'title.edit_project' => 'Urejanje projekta', 'title.delete_project' => 'Brisanje projekta', diff --git a/WEB-INF/resources/sr.lang.php b/WEB-INF/resources/sr.lang.php index 32267f8c..a4541454 100644 --- a/WEB-INF/resources/sr.lang.php +++ b/WEB-INF/resources/sr.lang.php @@ -295,6 +295,8 @@ $i18n_key_words = array( 'title.send_invoice' => 'Slanje računa', 'title.charts' => 'Grafikoni', 'title.projects' => 'Projekti', +// TODO: translate the following. +// 'title.project_files' => 'Project Files', 'title.add_project' => 'Dodavanje projekta', 'title.edit_project' => 'Izmena projekta', 'title.delete_project' => 'Brisanje projekta', diff --git a/WEB-INF/resources/sv.lang.php b/WEB-INF/resources/sv.lang.php index d4c902c4..105b25f0 100644 --- a/WEB-INF/resources/sv.lang.php +++ b/WEB-INF/resources/sv.lang.php @@ -295,6 +295,8 @@ $i18n_key_words = array( 'title.send_invoice' => 'Skicka faktura', 'title.charts' => 'Diagram', 'title.projects' => 'Projekt', +// TODO: translate the following. +// 'title.project_files' => 'Project Files', 'title.add_project' => 'Lägg till projekt', 'title.edit_project' => 'Redigera projekt', 'title.delete_project' => 'Ta bort projekt', diff --git a/WEB-INF/resources/tr.lang.php b/WEB-INF/resources/tr.lang.php index c618c4ed..a02ed68a 100644 --- a/WEB-INF/resources/tr.lang.php +++ b/WEB-INF/resources/tr.lang.php @@ -330,6 +330,8 @@ $i18n_key_words = array( // 'title.send_invoice' => 'Sending Invoice', // 'title.charts' => 'Charts', 'title.projects' => 'Projeler', +// TODO: translate the following. +// 'title.project_files' => 'Project Files', 'title.add_project' => 'Proje ekleniyor', 'title.edit_project' => 'Proje düzenleniyor', 'title.delete_project' => 'Proje siliniyor', diff --git a/WEB-INF/resources/zh-cn.lang.php b/WEB-INF/resources/zh-cn.lang.php index de9d3165..33cd0898 100644 --- a/WEB-INF/resources/zh-cn.lang.php +++ b/WEB-INF/resources/zh-cn.lang.php @@ -309,6 +309,8 @@ $i18n_key_words = array( // 'title.send_invoice' => 'Sending Invoice', // 'title.charts' => 'Charts', 'title.projects' => '项目', +// TODO: translate the following. +// 'title.project_files' => 'Project Files', 'title.add_project' => '添加项目', 'title.edit_project' => '编辑项目', 'title.delete_project' => '删除项目', diff --git a/WEB-INF/resources/zh-tw.lang.php b/WEB-INF/resources/zh-tw.lang.php index 3b02371a..12a328e2 100644 --- a/WEB-INF/resources/zh-tw.lang.php +++ b/WEB-INF/resources/zh-tw.lang.php @@ -316,6 +316,8 @@ $i18n_key_words = array( // 'title.send_invoice' => 'Sending Invoice', // 'title.charts' => 'Charts', 'title.projects' => '項目', +// TODO: translate the following. +// 'title.project_files' => 'Project Files', 'title.add_project' => '添加項目', 'title.edit_project' => '編輯專案', // TODO: is this correct? I do not see 項目 here. 'title.delete_project' => '刪除項目', diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index a476e805..22eeb9bb 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.18.58.4870 | Copyright © Anuko | +  Anuko Time Tracker 1.18.58.4871 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/project_files.php b/project_files.php new file mode 100644 index 00000000..baec9aa2 --- /dev/null +++ b/project_files.php @@ -0,0 +1,55 @@ +getTrackingMode() && MODE_PROJECTS_AND_TASKS != $user->getTrackingMode()) { + header('Location: feature_disabled.php'); + exit(); +} +// End of access checks. + +if($user->can('manage_projects')) { + $active_projects = ttGroupHelper::getActiveProjects(); + $inactive_projects = ttGroupHelper::getInactiveProjects(); +} else + $active_projects = $user->getAssignedProjects(); + +$smarty->assign('active_projects', $active_projects); +$smarty->assign('inactive_projects', $inactive_projects); +$smarty->assign('show_files', $user->isPluginEnabled('at')); +$smarty->assign('title', $i18n->get('title.project_files')); +$smarty->assign('content_page_name', 'projects.tpl'); +$smarty->display('index.tpl');