From: Nik Okuntseff Date: Thu, 27 Jun 2019 17:02:18 +0000 (+0000) Subject: Introduced dropdown.time to translation files. X-Git-Tag: timetracker_1.19-1~13 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=a0ff02ec3fa7016404f3992710db57951e74e824;p=timetracker.git Introduced dropdown.time to translation files. --- diff --git a/WEB-INF/resources/ca.lang.php b/WEB-INF/resources/ca.lang.php index 20d6cd19..960ed0b2 100644 --- a/WEB-INF/resources/ca.lang.php +++ b/WEB-INF/resources/ca.lang.php @@ -414,6 +414,7 @@ $i18n_key_words = array( // 'dropdown.previous_year' => 'previous year', // 'dropdown.selected_year' => 'year', // 'dropdown.all_time' => 'all time', +// 'dropdown.time' => 'time', 'dropdown.projects' => 'projectes', // TODO: translate the following. // 'dropdown.tasks' => 'tasks', diff --git a/WEB-INF/resources/cs.lang.php b/WEB-INF/resources/cs.lang.php index 0bd49c6b..1d1da524 100644 --- a/WEB-INF/resources/cs.lang.php +++ b/WEB-INF/resources/cs.lang.php @@ -423,6 +423,8 @@ $i18n_key_words = array( 'dropdown.previous_year' => 'minulý rok', 'dropdown.selected_year' => 'rok', 'dropdown.all_time' => 'od počátku', +// TODO: translate the following. +// 'dropdown.time' => 'time', 'dropdown.projects' => 'projekty', // TODO: translate the following. // 'dropdown.tasks' => 'tasks', diff --git a/WEB-INF/resources/da.lang.php b/WEB-INF/resources/da.lang.php index ad2da4c5..b1afacb7 100644 --- a/WEB-INF/resources/da.lang.php +++ b/WEB-INF/resources/da.lang.php @@ -396,6 +396,8 @@ $i18n_key_words = array( // 'dropdown.previous_year' => 'previous year', 'dropdown.selected_year' => 'år', 'dropdown.all_time' => 'Alt', +// TODO: translate the following. +// 'dropdown.time' => 'time', 'dropdown.projects' => 'Projekter', 'dropdown.tasks' => 'Opgaver', 'dropdown.clients' => 'Klienter', diff --git a/WEB-INF/resources/de.lang.php b/WEB-INF/resources/de.lang.php index e15874d8..9524dad6 100644 --- a/WEB-INF/resources/de.lang.php +++ b/WEB-INF/resources/de.lang.php @@ -378,6 +378,8 @@ $i18n_key_words = array( 'dropdown.previous_year' => 'vorheriges Jahr', 'dropdown.selected_year' => 'Jahr', 'dropdown.all_time' => 'Gesamtzeitraum', +// TODO: translate the following. +// 'dropdown.time' => 'time', 'dropdown.projects' => 'Projekte', 'dropdown.tasks' => 'Aufgaben', 'dropdown.clients' => 'Kunden', diff --git a/WEB-INF/resources/en.lang.php b/WEB-INF/resources/en.lang.php index e7de7469..ef89c364 100644 --- a/WEB-INF/resources/en.lang.php +++ b/WEB-INF/resources/en.lang.php @@ -363,6 +363,7 @@ $i18n_key_words = array( 'dropdown.previous_year' => 'previous year', 'dropdown.selected_year' => 'year', 'dropdown.all_time' => 'all time', +'dropdown.time' => 'time', 'dropdown.projects' => 'projects', 'dropdown.tasks' => 'tasks', 'dropdown.clients' => 'clients', diff --git a/WEB-INF/resources/es.lang.php b/WEB-INF/resources/es.lang.php index d7abcdab..5fd0ac43 100644 --- a/WEB-INF/resources/es.lang.php +++ b/WEB-INF/resources/es.lang.php @@ -414,6 +414,7 @@ $i18n_key_words = array( 'dropdown.selected_year' => 'año', // TODO: translate the following. // 'dropdown.all_time' => 'all time', +// 'dropdown.time' => 'time', 'dropdown.projects' => 'proyectos', // TODO: translate the following. // 'dropdown.tasks' => 'tasks', diff --git a/WEB-INF/resources/et.lang.php b/WEB-INF/resources/et.lang.php index 39a0a271..3eea2d0e 100644 --- a/WEB-INF/resources/et.lang.php +++ b/WEB-INF/resources/et.lang.php @@ -401,6 +401,8 @@ $i18n_key_words = array( 'dropdown.previous_year' => 'eelmine aasta', 'dropdown.selected_year' => 'aasta', 'dropdown.all_time' => 'kõik ajavahemikud', +// TODO: translate the following. +// 'dropdown.time' => 'time', 'dropdown.projects' => 'projektid', 'dropdown.tasks' => 'tööülesanded', 'dropdown.clients' => 'kliendid', diff --git a/WEB-INF/resources/fa.lang.php b/WEB-INF/resources/fa.lang.php index b2eaf91e..3b6e9d81 100644 --- a/WEB-INF/resources/fa.lang.php +++ b/WEB-INF/resources/fa.lang.php @@ -407,6 +407,8 @@ $i18n_key_words = array( // 'dropdown.previous_year' => 'previous year', // 'dropdown.selected_year' => 'year', 'dropdown.all_time' => 'همه زمان ها', +// TODO: translate the following. +// 'dropdown.time' => 'time', 'dropdown.projects' => 'پروژه ها', 'dropdown.tasks' => 'وظایف', 'dropdown.clients' => 'مشتریان', diff --git a/WEB-INF/resources/fi.lang.php b/WEB-INF/resources/fi.lang.php index 626d2c9b..1aa06d56 100644 --- a/WEB-INF/resources/fi.lang.php +++ b/WEB-INF/resources/fi.lang.php @@ -396,6 +396,8 @@ $i18n_key_words = array( // 'dropdown.previous_year' => 'previous year', 'dropdown.selected_year' => 'vuosi', 'dropdown.all_time' => 'kaikki tunnit', +// TODO: translate the following. +// 'dropdown.time' => 'time', 'dropdown.projects' => 'projektit', 'dropdown.tasks' => 'tehtävät', 'dropdown.clients' => 'asiakkaat', diff --git a/WEB-INF/resources/fr.lang.php b/WEB-INF/resources/fr.lang.php index 005007e1..cb488372 100644 --- a/WEB-INF/resources/fr.lang.php +++ b/WEB-INF/resources/fr.lang.php @@ -388,6 +388,8 @@ $i18n_key_words = array( 'dropdown.previous_year' => 'année dernière', 'dropdown.selected_year' => 'année', 'dropdown.all_time' => 'depuis toujours', +// TODO: translate the following. +// 'dropdown.time' => 'time', 'dropdown.projects' => 'Projets', 'dropdown.tasks' => 'Tâches', 'dropdown.clients' => 'Clients', diff --git a/WEB-INF/resources/gr.lang.php b/WEB-INF/resources/gr.lang.php index 4f9ec572..c8a8ab08 100644 --- a/WEB-INF/resources/gr.lang.php +++ b/WEB-INF/resources/gr.lang.php @@ -386,6 +386,8 @@ $i18n_key_words = array( 'dropdown.previous_year' => 'προηγούμενο έτος', 'dropdown.selected_year' => 'έτος', 'dropdown.all_time' => 'όλη την περίοδο', +// TODO: translate the following. +// 'dropdown.time' => 'time', 'dropdown.projects' => 'έργα', 'dropdown.tasks' => 'εργασίες', 'dropdown.clients' => 'πελάτες', diff --git a/WEB-INF/resources/he.lang.php b/WEB-INF/resources/he.lang.php index 5ac9ec47..10a40edc 100644 --- a/WEB-INF/resources/he.lang.php +++ b/WEB-INF/resources/he.lang.php @@ -413,6 +413,8 @@ $i18n_key_words = array( // 'dropdown.previous_year' => 'previous year', 'dropdown.selected_year' => 'שנה', 'dropdown.all_time' => 'הכל', +// TODO: translate the following. +// 'dropdown.time' => 'time', 'dropdown.projects' => 'פרוייקטים', 'dropdown.tasks' => 'משימות', 'dropdown.clients' => 'לקוחות', diff --git a/WEB-INF/resources/hu.lang.php b/WEB-INF/resources/hu.lang.php index 3abdb70b..95d99046 100644 --- a/WEB-INF/resources/hu.lang.php +++ b/WEB-INF/resources/hu.lang.php @@ -416,6 +416,7 @@ $i18n_key_words = array( // 'dropdown.previous_year' => 'previous year', // 'dropdown.selected_year' => 'year', // 'dropdown.all_time' => 'all time', +// 'dropdown.time' => 'time', 'dropdown.projects' => 'projektek', // TODO: translate the following. // 'dropdown.tasks' => 'tasks', diff --git a/WEB-INF/resources/it.lang.php b/WEB-INF/resources/it.lang.php index 94e059bf..845b1d10 100644 --- a/WEB-INF/resources/it.lang.php +++ b/WEB-INF/resources/it.lang.php @@ -396,6 +396,8 @@ $i18n_key_words = array( 'dropdown.previous_year' => 'anno precedente', 'dropdown.selected_year' => 'anno', 'dropdown.all_time' => 'tutto il tempo', +// TODO: translate the following. +// 'dropdown.time' => 'time', 'dropdown.projects' => 'progetti', 'dropdown.tasks' => 'compiti', 'dropdown.clients' => 'clienti', diff --git a/WEB-INF/resources/ja.lang.php b/WEB-INF/resources/ja.lang.php index 0c2b51cb..3b9c091e 100644 --- a/WEB-INF/resources/ja.lang.php +++ b/WEB-INF/resources/ja.lang.php @@ -419,6 +419,8 @@ $i18n_key_words = array( 'dropdown.previous_year' => '昨年', 'dropdown.selected_year' => '年', 'dropdown.all_time' => 'すべての時間', +// TODO: translate the following. +// 'dropdown.time' => 'time', 'dropdown.projects' => 'プロジェクト', // TODO: translate the following. // 'dropdown.tasks' => 'tasks', diff --git a/WEB-INF/resources/ko.lang.php b/WEB-INF/resources/ko.lang.php index d30e51d8..43d3f8ad 100644 --- a/WEB-INF/resources/ko.lang.php +++ b/WEB-INF/resources/ko.lang.php @@ -422,6 +422,8 @@ $i18n_key_words = array( // 'dropdown.previous_year' => 'previous year', // 'dropdown.selected_year' => 'year', 'dropdown.all_time' => '전시간', +// TODO: translate the following. +// 'dropdown.time' => 'time', 'dropdown.projects' => '프로젝트', // TODO: translate the following. // 'dropdown.tasks' => 'tasks', diff --git a/WEB-INF/resources/nl.lang.php b/WEB-INF/resources/nl.lang.php index ca96a0cc..49125a64 100644 --- a/WEB-INF/resources/nl.lang.php +++ b/WEB-INF/resources/nl.lang.php @@ -363,6 +363,8 @@ $i18n_key_words = array( 'dropdown.previous_year' => 'vorig jaar', 'dropdown.selected_year' => 'jaar', 'dropdown.all_time' => 'alles', +// TODO: translate the following. +// 'dropdown.time' => 'time', 'dropdown.projects' => 'projecten', 'dropdown.tasks' => 'taken', 'dropdown.clients' => 'klanten', diff --git a/WEB-INF/resources/no.lang.php b/WEB-INF/resources/no.lang.php index c59d5086..04ccf3c6 100644 --- a/WEB-INF/resources/no.lang.php +++ b/WEB-INF/resources/no.lang.php @@ -417,6 +417,8 @@ $i18n_key_words = array( // 'dropdown.previous_year' => 'previous year', // 'dropdown.selected_year' => 'year', // 'dropdown.all_time' => 'all time', +// TODO: translate the following. +// 'dropdown.time' => 'time', 'dropdown.projects' => 'prosjekter', // TODO: translate the following. // 'dropdown.tasks' => 'tasks', diff --git a/WEB-INF/resources/pl.lang.php b/WEB-INF/resources/pl.lang.php index 427b1e6a..3f0d93bf 100644 --- a/WEB-INF/resources/pl.lang.php +++ b/WEB-INF/resources/pl.lang.php @@ -399,6 +399,8 @@ $i18n_key_words = array( // 'dropdown.previous_year' => 'previous year', 'dropdown.selected_year' => 'rok', 'dropdown.all_time' => 'od początku', +// TODO: translate the following. +// 'dropdown.time' => 'time', 'dropdown.projects' => 'projekty', 'dropdown.tasks' => 'zadania', 'dropdown.clients' => 'klienci', diff --git a/WEB-INF/resources/pt-br.lang.php b/WEB-INF/resources/pt-br.lang.php index b7f3c38e..ef6eacee 100644 --- a/WEB-INF/resources/pt-br.lang.php +++ b/WEB-INF/resources/pt-br.lang.php @@ -394,6 +394,8 @@ $i18n_key_words = array( // 'dropdown.previous_year' => 'previous year', 'dropdown.selected_year' => 'ano', 'dropdown.all_time' => 'todas as datas', +// TODO: translate the following. +// 'dropdown.time' => 'time', 'dropdown.projects' => 'projetos', 'dropdown.tasks' => 'tarefas', 'dropdown.clients' => 'clientes', diff --git a/WEB-INF/resources/pt.lang.php b/WEB-INF/resources/pt.lang.php index d9c51bd2..79bbae1c 100644 --- a/WEB-INF/resources/pt.lang.php +++ b/WEB-INF/resources/pt.lang.php @@ -402,6 +402,8 @@ $i18n_key_words = array( // 'dropdown.previous_year' => 'previous year', // 'dropdown.selected_year' => 'year', // 'dropdown.all_time' => 'all time', +// TODO: translate the following. +// 'dropdown.time' => 'time', 'dropdown.projects' => 'projetos', // TODO: translate the following. // 'dropdown.tasks' => 'tasks', diff --git a/WEB-INF/resources/ro.lang.php b/WEB-INF/resources/ro.lang.php index a747e572..fc9f67e5 100644 --- a/WEB-INF/resources/ro.lang.php +++ b/WEB-INF/resources/ro.lang.php @@ -420,6 +420,7 @@ $i18n_key_words = array( // 'dropdown.previous_year' => 'previous year', // 'dropdown.selected_year' => 'year', // 'dropdown.all_time' => 'all time', +// 'dropdown.time' => 'time', 'dropdown.projects' => 'proiecte', // TODO: translate the following. // 'dropdown.tasks' => 'tasks', diff --git a/WEB-INF/resources/ru.lang.php b/WEB-INF/resources/ru.lang.php index ff20fc5e..22c666fe 100644 --- a/WEB-INF/resources/ru.lang.php +++ b/WEB-INF/resources/ru.lang.php @@ -360,6 +360,7 @@ $i18n_key_words = array( 'dropdown.previous_year' => 'прошлый год', 'dropdown.selected_year' => 'год', 'dropdown.all_time' => 'всё время', +'dropdown.time' => 'время', 'dropdown.projects' => 'проекты', 'dropdown.tasks' => 'задачи', 'dropdown.clients' => 'клиенты', diff --git a/WEB-INF/resources/sk.lang.php b/WEB-INF/resources/sk.lang.php index 52a810c3..133f80f0 100644 --- a/WEB-INF/resources/sk.lang.php +++ b/WEB-INF/resources/sk.lang.php @@ -403,6 +403,8 @@ $i18n_key_words = array( // 'dropdown.previous_year' => 'previous year', 'dropdown.selected_year' => 'rok', 'dropdown.all_time' => 'celý čas', +// TODO: translate the following. +// 'dropdown.time' => 'time', 'dropdown.projects' => 'projekty', 'dropdown.tasks' => 'úlohy', // TODO: translate the following. diff --git a/WEB-INF/resources/sl.lang.php b/WEB-INF/resources/sl.lang.php index 578b8165..f0220996 100644 --- a/WEB-INF/resources/sl.lang.php +++ b/WEB-INF/resources/sl.lang.php @@ -394,6 +394,7 @@ $i18n_key_words = array( // 'dropdown.previous_year' => 'previous year', // 'dropdown.selected_year' => 'year', // 'dropdown.all_time' => 'all time', +// 'dropdown.time' => 'time', 'dropdown.projects' => 'projekti', // TODO: translate the following. // 'dropdown.tasks' => 'tasks', diff --git a/WEB-INF/resources/sr.lang.php b/WEB-INF/resources/sr.lang.php index 94b9512e..d8f8986e 100644 --- a/WEB-INF/resources/sr.lang.php +++ b/WEB-INF/resources/sr.lang.php @@ -397,6 +397,8 @@ $i18n_key_words = array( // 'dropdown.previous_year' => 'previous year', 'dropdown.selected_year' => 'godina', 'dropdown.all_time' => 'svi datumi', +// TODO: translate the following. +// 'dropdown.time' => 'time', 'dropdown.projects' => 'projekti', 'dropdown.tasks' => 'zadaci', 'dropdown.clients' => 'klijenti', diff --git a/WEB-INF/resources/sv.lang.php b/WEB-INF/resources/sv.lang.php index 030806e8..97392f9e 100644 --- a/WEB-INF/resources/sv.lang.php +++ b/WEB-INF/resources/sv.lang.php @@ -396,6 +396,8 @@ $i18n_key_words = array( 'dropdown.previous_year' => 'Föregående år', 'dropdown.selected_year' => 'År', 'dropdown.all_time' => 'Livstid', +// TODO: translate the following. +// 'dropdown.time' => 'time', 'dropdown.projects' => 'Projekt', 'dropdown.tasks' => 'Arbetsuppgifter', 'dropdown.clients' => 'Kunder', diff --git a/WEB-INF/resources/tr.lang.php b/WEB-INF/resources/tr.lang.php index 9a4693b8..39c39e8f 100644 --- a/WEB-INF/resources/tr.lang.php +++ b/WEB-INF/resources/tr.lang.php @@ -428,6 +428,8 @@ $i18n_key_words = array( // 'dropdown.previous_year' => 'previous year', // 'dropdown.selected_year' => 'year', 'dropdown.all_time' => 'tüm zamanlar', +// TODO: translate the following. +// 'dropdown.time' => 'time', 'dropdown.projects' => 'projeler', // TODO: translate the following. // 'dropdown.tasks' => 'tasks', diff --git a/WEB-INF/resources/zh-cn.lang.php b/WEB-INF/resources/zh-cn.lang.php index a6dfa62c..7493be7a 100644 --- a/WEB-INF/resources/zh-cn.lang.php +++ b/WEB-INF/resources/zh-cn.lang.php @@ -409,6 +409,8 @@ $i18n_key_words = array( // 'dropdown.previous_year' => 'previous year', // 'dropdown.selected_year' => 'year', 'dropdown.all_time' => '全部时间', +// TODO: translate the following. +// 'dropdown.time' => 'time', 'dropdown.projects' => '项目', // TODO: translate the following. // 'dropdown.tasks' => 'tasks', diff --git a/WEB-INF/resources/zh-tw.lang.php b/WEB-INF/resources/zh-tw.lang.php index 1b88e9ea..b8d923b8 100644 --- a/WEB-INF/resources/zh-tw.lang.php +++ b/WEB-INF/resources/zh-tw.lang.php @@ -414,6 +414,8 @@ $i18n_key_words = array( // 'dropdown.previous_year' => 'previous year', 'dropdown.selected_year' => '年', 'dropdown.all_time' => '全部時間', +// TODO: translate the following. +// 'dropdown.time' => 'time', 'dropdown.projects' => '項目', // TODO: translate the following. // 'dropdown.tasks' => 'tasks', diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index f01a172e..59b49cfe 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.19.5.5016 | Copyright © Anuko | +  Anuko Time Tracker 1.19.5.5017 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/cf_custom_field_add.php b/cf_custom_field_add.php index c0dc255f..c22c10e5 100644 --- a/cf_custom_field_add.php +++ b/cf_custom_field_add.php @@ -49,6 +49,7 @@ if (count($fields) >= 1) { if ($request->isPost()) { $cl_field_name = trim($request->getParameter('name')); + $cl_field_entity = $request->getParameter('entity'); $cl_field_type = $request->getParameter('type'); $cl_required = $request->getParameter('required'); if (!$cl_required) @@ -57,6 +58,10 @@ if ($request->isPost()) { $form = new Form('fieldForm'); $form->addInput(array('type'=>'text','maxlength'=>'100','name'=>'name','value'=>'')); +$form->addInput(array('type'=>'combobox','name'=>'entity', + 'data'=>array(CustomFields::ENTITY_TIME=>$i18n->get('label.type_text'), + CustomFields::ENTITY_USER=>$i18n->get('label.user')) +)); $form->addInput(array('type'=>'combobox','name'=>'type', 'data'=>array(CustomFields::TYPE_TEXT=>$i18n->get('label.type_text'), CustomFields::TYPE_DROPDOWN=>$i18n->get('label.type_dropdown')) diff --git a/plugins/CustomFields.class.php b/plugins/CustomFields.class.php index d9762b58..ce870a94 100644 --- a/plugins/CustomFields.class.php +++ b/plugins/CustomFields.class.php @@ -29,7 +29,10 @@ class CustomFields { // Definitions of custom field types. - + const ENTITY_TIME = 1; // Field is associated with time entries. + const ENTITY_USER = 2; // Field is associated with users. + const ENTITY_PROJECT = 3; // Field is associated with projects. + const TYPE_TEXT = 1; // A text field. const TYPE_DROPDOWN = 2; // A dropdown field with pre-defined values.