From b3c9cd1820158293d52c6cc1bb7244fee06104ed Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Sat, 30 Mar 2019 20:31:09 +0000 Subject: [PATCH] Added title.download_file to translation files. --- WEB-INF/resources/ca.lang.php | 1 + WEB-INF/resources/cs.lang.php | 1 + WEB-INF/resources/da.lang.php | 1 + WEB-INF/resources/de.lang.php | 1 + WEB-INF/resources/en.lang.php | 1 + WEB-INF/resources/es.lang.php | 1 + WEB-INF/resources/et.lang.php | 1 + WEB-INF/resources/fa.lang.php | 1 + WEB-INF/resources/fi.lang.php | 1 + WEB-INF/resources/fr.lang.php | 1 + WEB-INF/resources/gr.lang.php | 1 + WEB-INF/resources/he.lang.php | 1 + WEB-INF/resources/hu.lang.php | 1 + WEB-INF/resources/it.lang.php | 1 + WEB-INF/resources/ja.lang.php | 1 + WEB-INF/resources/ko.lang.php | 1 + WEB-INF/resources/nl.lang.php | 1 + WEB-INF/resources/no.lang.php | 1 + WEB-INF/resources/pl.lang.php | 1 + WEB-INF/resources/pt-br.lang.php | 1 + WEB-INF/resources/pt.lang.php | 1 + WEB-INF/resources/ro.lang.php | 1 + WEB-INF/resources/ru.lang.php | 1 + WEB-INF/resources/sk.lang.php | 1 + WEB-INF/resources/sl.lang.php | 1 + WEB-INF/resources/sr.lang.php | 1 + WEB-INF/resources/sv.lang.php | 1 + WEB-INF/resources/tr.lang.php | 1 + WEB-INF/resources/zh-cn.lang.php | 1 + WEB-INF/resources/zh-tw.lang.php | 1 + WEB-INF/templates/footer.tpl | 2 +- file_download.php | 33 +++----------------------------- 32 files changed, 34 insertions(+), 31 deletions(-) diff --git a/WEB-INF/resources/ca.lang.php b/WEB-INF/resources/ca.lang.php index 4a8b1bbe..f6a53574 100644 --- a/WEB-INF/resources/ca.lang.php +++ b/WEB-INF/resources/ca.lang.php @@ -380,6 +380,7 @@ $i18n_key_words = array( // 'title.delete_template' => 'Deleting Template', // 'title.edit_file' => 'Editing File', // 'title.delete_file' => 'Deleting File', +// 'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/cs.lang.php b/WEB-INF/resources/cs.lang.php index f76e0bb6..fc976878 100644 --- a/WEB-INF/resources/cs.lang.php +++ b/WEB-INF/resources/cs.lang.php @@ -391,6 +391,7 @@ $i18n_key_words = array( // 'title.delete_template' => 'Deleting Template', // 'title.edit_file' => 'Editing File', // 'title.delete_file' => 'Deleting File', +// 'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/da.lang.php b/WEB-INF/resources/da.lang.php index 222b6cb2..6c748c8f 100644 --- a/WEB-INF/resources/da.lang.php +++ b/WEB-INF/resources/da.lang.php @@ -358,6 +358,7 @@ $i18n_key_words = array( // 'title.delete_template' => 'Deleting Template', // 'title.edit_file' => 'Editing File', // 'title.delete_file' => 'Deleting File', +// 'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/de.lang.php b/WEB-INF/resources/de.lang.php index 8416cda0..e162f398 100644 --- a/WEB-INF/resources/de.lang.php +++ b/WEB-INF/resources/de.lang.php @@ -341,6 +341,7 @@ $i18n_key_words = array( // 'title.delete_template' => 'Deleting Template', // 'title.edit_file' => 'Editing File', // 'title.delete_file' => 'Deleting File', +// 'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/en.lang.php b/WEB-INF/resources/en.lang.php index 0c4d7e0a..54da108c 100644 --- a/WEB-INF/resources/en.lang.php +++ b/WEB-INF/resources/en.lang.php @@ -331,6 +331,7 @@ $i18n_key_words = array( 'title.delete_template' => 'Deleting Template', 'title.edit_file' => 'Editing File', 'title.delete_file' => 'Deleting File', +'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/es.lang.php b/WEB-INF/resources/es.lang.php index 8d1f837f..aee71b4c 100644 --- a/WEB-INF/resources/es.lang.php +++ b/WEB-INF/resources/es.lang.php @@ -379,6 +379,7 @@ $i18n_key_words = array( // 'title.delete_template' => 'Deleting Template', // 'title.edit_file' => 'Editing File', // 'title.delete_file' => 'Deleting File', +// 'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/et.lang.php b/WEB-INF/resources/et.lang.php index faf45cb0..4963cc59 100644 --- a/WEB-INF/resources/et.lang.php +++ b/WEB-INF/resources/et.lang.php @@ -363,6 +363,7 @@ $i18n_key_words = array( // 'title.delete_template' => 'Deleting Template', // 'title.edit_file' => 'Editing File', // 'title.delete_file' => 'Deleting File', +// 'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/fa.lang.php b/WEB-INF/resources/fa.lang.php index 64902e53..d6ed945c 100644 --- a/WEB-INF/resources/fa.lang.php +++ b/WEB-INF/resources/fa.lang.php @@ -367,6 +367,7 @@ $i18n_key_words = array( // 'title.delete_template' => 'Deleting Template', // 'title.edit_file' => 'Editing File', // 'title.delete_file' => 'Deleting File', +// 'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/fi.lang.php b/WEB-INF/resources/fi.lang.php index 735724cf..5aaf7f97 100644 --- a/WEB-INF/resources/fi.lang.php +++ b/WEB-INF/resources/fi.lang.php @@ -358,6 +358,7 @@ $i18n_key_words = array( // 'title.delete_template' => 'Deleting Template', // 'title.edit_file' => 'Editing File', // 'title.delete_file' => 'Deleting File', +// 'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/fr.lang.php b/WEB-INF/resources/fr.lang.php index ee648101..f95bf742 100644 --- a/WEB-INF/resources/fr.lang.php +++ b/WEB-INF/resources/fr.lang.php @@ -352,6 +352,7 @@ $i18n_key_words = array( // 'title.delete_template' => 'Deleting Template', // 'title.edit_file' => 'Editing File', // 'title.delete_file' => 'Deleting File', +// 'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/gr.lang.php b/WEB-INF/resources/gr.lang.php index 5155254e..ee10172a 100644 --- a/WEB-INF/resources/gr.lang.php +++ b/WEB-INF/resources/gr.lang.php @@ -348,6 +348,7 @@ $i18n_key_words = array( // 'title.delete_template' => 'Deleting Template', // 'title.edit_file' => 'Editing File', // 'title.delete_file' => 'Deleting File', +// 'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/he.lang.php b/WEB-INF/resources/he.lang.php index 3f2232d7..90056902 100644 --- a/WEB-INF/resources/he.lang.php +++ b/WEB-INF/resources/he.lang.php @@ -378,6 +378,7 @@ $i18n_key_words = array( // 'title.delete_template' => 'Deleting Template', // 'title.edit_file' => 'Editing File', // 'title.delete_file' => 'Deleting File', +// 'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/hu.lang.php b/WEB-INF/resources/hu.lang.php index a14445c4..58fcf50a 100644 --- a/WEB-INF/resources/hu.lang.php +++ b/WEB-INF/resources/hu.lang.php @@ -379,6 +379,7 @@ $i18n_key_words = array( // 'title.delete_template' => 'Deleting Template', // 'title.edit_file' => 'Editing File', // 'title.delete_file' => 'Deleting File', +// 'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/it.lang.php b/WEB-INF/resources/it.lang.php index 870b1e93..4b6cf98d 100644 --- a/WEB-INF/resources/it.lang.php +++ b/WEB-INF/resources/it.lang.php @@ -358,6 +358,7 @@ $i18n_key_words = array( // 'title.delete_template' => 'Deleting Template', // 'title.edit_file' => 'Editing File', // 'title.delete_file' => 'Deleting File', +// 'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/ja.lang.php b/WEB-INF/resources/ja.lang.php index b020a04e..b4fd746f 100644 --- a/WEB-INF/resources/ja.lang.php +++ b/WEB-INF/resources/ja.lang.php @@ -386,6 +386,7 @@ $i18n_key_words = array( // 'title.delete_template' => 'Deleting Template', // 'title.edit_file' => 'Editing File', // 'title.delete_file' => 'Deleting File', +// 'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/ko.lang.php b/WEB-INF/resources/ko.lang.php index dff995ff..b7c4a695 100644 --- a/WEB-INF/resources/ko.lang.php +++ b/WEB-INF/resources/ko.lang.php @@ -387,6 +387,7 @@ $i18n_key_words = array( // 'title.delete_template' => 'Deleting Template', // 'title.edit_file' => 'Editing File', // 'title.delete_file' => 'Deleting File', +// 'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/nl.lang.php b/WEB-INF/resources/nl.lang.php index c95e1502..f0604715 100644 --- a/WEB-INF/resources/nl.lang.php +++ b/WEB-INF/resources/nl.lang.php @@ -330,6 +330,7 @@ $i18n_key_words = array( // TODO: translate the following. // 'title.edit_file' => 'Editing File', // 'title.delete_file' => 'Deleting File', +// 'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/no.lang.php b/WEB-INF/resources/no.lang.php index 96a5f135..d8848cd0 100644 --- a/WEB-INF/resources/no.lang.php +++ b/WEB-INF/resources/no.lang.php @@ -383,6 +383,7 @@ $i18n_key_words = array( // 'title.delete_template' => 'Deleting Template', // 'title.edit_file' => 'Editing File', // 'title.delete_file' => 'Deleting File', +// 'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/pl.lang.php b/WEB-INF/resources/pl.lang.php index 6813fe26..b62c3b61 100644 --- a/WEB-INF/resources/pl.lang.php +++ b/WEB-INF/resources/pl.lang.php @@ -361,6 +361,7 @@ $i18n_key_words = array( // 'title.delete_template' => 'Deleting Template', // 'title.edit_file' => 'Editing File', // 'title.delete_file' => 'Deleting File', +// 'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/pt-br.lang.php b/WEB-INF/resources/pt-br.lang.php index 712a2892..7662b98d 100644 --- a/WEB-INF/resources/pt-br.lang.php +++ b/WEB-INF/resources/pt-br.lang.php @@ -356,6 +356,7 @@ $i18n_key_words = array( // 'title.delete_template' => 'Deleting Template', // 'title.edit_file' => 'Editing File', // 'title.delete_file' => 'Deleting File', +// 'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/pt.lang.php b/WEB-INF/resources/pt.lang.php index d66ffaf5..b76b0dcd 100644 --- a/WEB-INF/resources/pt.lang.php +++ b/WEB-INF/resources/pt.lang.php @@ -367,6 +367,7 @@ $i18n_key_words = array( // 'title.delete_template' => 'Deleting Template', // 'title.edit_file' => 'Editing File', // 'title.delete_file' => 'Deleting File', +// 'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/ro.lang.php b/WEB-INF/resources/ro.lang.php index eab1c21a..908c7d38 100644 --- a/WEB-INF/resources/ro.lang.php +++ b/WEB-INF/resources/ro.lang.php @@ -386,6 +386,7 @@ $i18n_key_words = array( // 'title.delete_template' => 'Deleting Template', // 'title.edit_file' => 'Editing File', // 'title.delete_file' => 'Deleting File', +// 'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/ru.lang.php b/WEB-INF/resources/ru.lang.php index 126844e8..cb7c0925 100644 --- a/WEB-INF/resources/ru.lang.php +++ b/WEB-INF/resources/ru.lang.php @@ -328,6 +328,7 @@ $i18n_key_words = array( 'title.delete_template' => 'Удаление шаблона', 'title.edit_file' => 'Редактирование файла', 'title.delete_file' => 'Удаление файла', +'title.download_file' => 'Скачивание файла', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/sk.lang.php b/WEB-INF/resources/sk.lang.php index b8bcbef0..2024b49f 100644 --- a/WEB-INF/resources/sk.lang.php +++ b/WEB-INF/resources/sk.lang.php @@ -367,6 +367,7 @@ $i18n_key_words = array( // 'title.delete_template' => 'Deleting Template', // 'title.edit_file' => 'Editing File', // 'title.delete_file' => 'Deleting File', +// 'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/sl.lang.php b/WEB-INF/resources/sl.lang.php index efdd2c14..bd7615dc 100644 --- a/WEB-INF/resources/sl.lang.php +++ b/WEB-INF/resources/sl.lang.php @@ -361,6 +361,7 @@ $i18n_key_words = array( // 'title.delete_template' => 'Deleting Template', // 'title.edit_file' => 'Editing File', // 'title.delete_file' => 'Deleting File', +// 'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/sr.lang.php b/WEB-INF/resources/sr.lang.php index c47cc41e..89875af5 100644 --- a/WEB-INF/resources/sr.lang.php +++ b/WEB-INF/resources/sr.lang.php @@ -359,6 +359,7 @@ $i18n_key_words = array( // 'title.delete_template' => 'Deleting Template', // 'title.edit_file' => 'Editing File', // 'title.delete_file' => 'Deleting File', +// 'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/sv.lang.php b/WEB-INF/resources/sv.lang.php index f21cd4f6..ff2dda34 100644 --- a/WEB-INF/resources/sv.lang.php +++ b/WEB-INF/resources/sv.lang.php @@ -359,6 +359,7 @@ $i18n_key_words = array( // 'title.delete_template' => 'Deleting Template', // 'title.edit_file' => 'Editing File', // 'title.delete_file' => 'Deleting File', +// 'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/tr.lang.php b/WEB-INF/resources/tr.lang.php index 82ba90ec..c0411a64 100644 --- a/WEB-INF/resources/tr.lang.php +++ b/WEB-INF/resources/tr.lang.php @@ -395,6 +395,7 @@ $i18n_key_words = array( // 'title.delete_template' => 'Deleting Template', // 'title.edit_file' => 'Editing File', // 'title.delete_file' => 'Deleting File', +// 'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/zh-cn.lang.php b/WEB-INF/resources/zh-cn.lang.php index f5dab87f..208bd684 100644 --- a/WEB-INF/resources/zh-cn.lang.php +++ b/WEB-INF/resources/zh-cn.lang.php @@ -374,6 +374,7 @@ $i18n_key_words = array( // 'title.delete_template' => 'Deleting Template', // 'title.edit_file' => 'Editing File', // 'title.delete_file' => 'Deleting File', +// 'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/zh-tw.lang.php b/WEB-INF/resources/zh-tw.lang.php index eba42ab9..0dcd0e8c 100644 --- a/WEB-INF/resources/zh-tw.lang.php +++ b/WEB-INF/resources/zh-tw.lang.php @@ -381,6 +381,7 @@ $i18n_key_words = array( // 'title.delete_template' => 'Deleting Template', // 'title.edit_file' => 'Editing File', // 'title.delete_file' => 'Deleting File', +// 'title.download_file' => 'Downloading File', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index b36f3d07..381ae4fd 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.18.61.4897 | Copyright © Anuko | +  Anuko Time Tracker 1.18.61.4898 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/file_download.php b/file_download.php index 83ff703a..fb9239ab 100644 --- a/file_download.php +++ b/file_download.php @@ -68,35 +68,8 @@ if ($fileHelper->getFile($file)) { echo $fileHelper->getFileData(); exit; -} else - $err->add($i18n->get('error.sys')); - -$form = new Form('fileForm'); -$form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_file_id)); -$form->addInput(array('type'=>'text','maxlength'=>'100','name'=>'file_name','style'=>'width: 250px;','value'=>$cl_name)); -$form->getElement('file_name')->setEnabled(false); -$form->addInput(array('type'=>'textarea','name'=>'description','style'=>'width: 250px; height: 40px;','value'=>$cl_description)); -$form->addInput(array('type'=>'submit','name'=>'btn_save','value'=>$i18n->get('button.save'))); - -if ($request->isPost()) { - // Validate user input. - if (!ttValidString($cl_description, true)) $err->add($i18n->get('error.field'), $i18n->get('label.description')); - - if ($err->no()) { - if ($request->getParameter('btn_save')) { - // Update file information. - $updated = ttFileHelper::update(array('id' => $cl_file_id,'description' => $cl_description)); - if ($updated && $file['entity_type'] == 'project') { - header('Location: project_files.php?id='.$file['entity_id']); - exit(); - } else - $err->add($i18n->get('error.db')); - } - } -} // isPost +} -$smarty->assign('forms', array($form->getName()=>$form->toArray())); -$smarty->assign('onload', 'onLoad="document.fileForm.description.focus()"'); -$smarty->assign('title', $i18n->get('title.edit_file')); -$smarty->assign('content_page_name', 'file_edit.tpl'); +$smarty->assign('title', $i18n->get('title.download_file')); +$smarty->assign('content_page_name', 'file_download.tpl'); $smarty->display('index.tpl'); -- 2.20.1