]> wagnertech.de Git - timetracker.git/commitdiff
Configirable option whether to show Week menu.
authorNik Okuntseff <support@anuko.com>
Wed, 24 Apr 2019 19:59:30 +0000 (19:59 +0000)
committerNik Okuntseff <support@anuko.com>
Wed, 24 Apr 2019 19:59:30 +0000 (19:59 +0000)
38 files changed:
WEB-INF/resources/ca.lang.php
WEB-INF/resources/cs.lang.php
WEB-INF/resources/da.lang.php
WEB-INF/resources/de.lang.php
WEB-INF/resources/en.lang.php
WEB-INF/resources/es.lang.php
WEB-INF/resources/et.lang.php
WEB-INF/resources/fa.lang.php
WEB-INF/resources/fi.lang.php
WEB-INF/resources/fr.lang.php
WEB-INF/resources/gr.lang.php
WEB-INF/resources/he.lang.php
WEB-INF/resources/hu.lang.php
WEB-INF/resources/it.lang.php
WEB-INF/resources/ja.lang.php
WEB-INF/resources/ko.lang.php
WEB-INF/resources/nl.lang.php
WEB-INF/resources/no.lang.php
WEB-INF/resources/pl.lang.php
WEB-INF/resources/pt-br.lang.php
WEB-INF/resources/pt.lang.php
WEB-INF/resources/ro.lang.php
WEB-INF/resources/ru.lang.php
WEB-INF/resources/sk.lang.php
WEB-INF/resources/sl.lang.php
WEB-INF/resources/sr.lang.php
WEB-INF/resources/sv.lang.php
WEB-INF/resources/tr.lang.php
WEB-INF/resources/zh-cn.lang.php
WEB-INF/resources/zh-tw.lang.php
WEB-INF/templates/display_options.tpl
WEB-INF/templates/footer.tpl
WEB-INF/templates/header.tpl
WEB-INF/templates/time.tpl
WEB-INF/templates/week.tpl
display_options.php
time.php
week.php

index a49aef79717f2acdce819d6593117282a46af032..d7bccc80e179a681cfa814341a721c2798236faa 100644 (file)
@@ -53,6 +53,7 @@ $i18n_key_words = array(
 // 'menu.plugins' => 'Plugins',
 'menu.time' => 'Temps',
 // TODO: translate the following.
+// 'menu.week' => 'Week',
 // 'menu.expenses' => 'Expenses',
 'menu.reports' => 'Informes',
 // TODO: translate the following.
@@ -664,5 +665,6 @@ $i18n_key_words = array(
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
 // TODO: translate the following.
+// 'form.display_options.menu' => 'Menu',
 // 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 662b382e033b9e0a0d4ded5c1fc8b1ffa284849e..941a0ca55d38b40f08458baefce899b7524e9201 100644 (file)
@@ -54,6 +54,7 @@ $i18n_key_words = array(
 // 'menu.group' => 'Group',
 // 'menu.plugins' => 'Plugins',
 // 'menu.time' => 'Time',
+// 'menu.week' => 'Week',
 // 'menu.expenses' => 'Expenses',
 'menu.reports' => 'Sestavy',
 // TODO: translate the following.
@@ -677,5 +678,6 @@ $i18n_key_words = array(
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
 // TODO: translate the following.
+// 'form.display_options.menu' => 'Menu',
 // 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 45d1790a3aa4b0329355f0ff656095ef49f35cab..07a6ecdbb5efbf2e504c81096a8fbfa874c8f517 100644 (file)
@@ -51,6 +51,8 @@ $i18n_key_words = array(
 // 'menu.group' => 'Group',
 'menu.plugins' => 'Plugins',
 'menu.time' => 'Tid',
+// TODO: translate the following.
+// 'menu.week' => 'Week',
 'menu.expenses' => 'Udgifter',
 'menu.reports' => 'Rapporter',
 // TODO: translate the following.
@@ -635,6 +637,7 @@ $i18n_key_words = array(
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
 // TODO: translate the following.
+// 'form.display_options.menu' => 'Menu',
 // 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
 
index 41ab5a6ebfc8beae0d6444ffadf30719e63594f1..b79a52768a631230a9bbe1e50410f69f8360012d 100644 (file)
@@ -49,6 +49,8 @@ $i18n_key_words = array(
 'menu.group' => 'Gruppe',
 'menu.plugins' => 'Erweiterungen',
 'menu.time' => 'Zeiten',
+// TODO: translate the following.
+// 'menu.week' => 'Week',
 'menu.expenses' => 'Kosten',
 'menu.reports' => 'Berichte',
 // TODO: translate the following.
@@ -608,5 +610,6 @@ $i18n_key_words = array(
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
 // TODO: translate the following.
+// 'form.display_options.menu' => 'Menu',
 // 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 4d1a182846085ff94f7bacb96b6fde099febab2d..5814f8113eac148282a2dc30bf3d069c4ee17d6e 100644 (file)
@@ -50,6 +50,7 @@ $i18n_key_words = array(
 'menu.subgroups' => 'Subgroups',
 'menu.plugins' => 'Plugins',
 'menu.time' => 'Time',
+'menu.week' => 'Week',
 'menu.expenses' => 'Expenses',
 'menu.reports' => 'Reports',
 'menu.timesheets' => 'Timesheets',
@@ -590,5 +591,6 @@ $i18n_key_words = array(
 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+'form.display_options.menu' => 'Menu',
 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index b29bf3245bb4042269fc201b5bd47aae9a7da075..dd8cfa58b8ef26460063252c01782941a7c6b79c 100644 (file)
@@ -52,6 +52,7 @@ $i18n_key_words = array(
 // 'menu.plugins' => 'Plugins',
 'menu.time' => 'Tiempo',
 // TODO: translate the following.
+// 'menu.week' => 'Week',
 // 'menu.expenses' => 'Expenses',
 'menu.reports' => 'Reportes',
 // TODO: translate the following.
@@ -679,5 +680,6 @@ $i18n_key_words = array(
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
 // TODO: translate the following.
+// 'form.display_options.menu' => 'Menu',
 // 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 5c69d6b7eb09b633e7937e0eb6d8d18acf204482..95e863f561d1fa48af319add7a3625cae19b078b 100644 (file)
@@ -51,6 +51,8 @@ $i18n_key_words = array(
 'menu.group' => 'Grupp',
 'menu.plugins' => 'Lisad',
 'menu.time' => 'Ajaarvestus',
+// TODO: translate the following.
+// 'menu.week' => 'Week',
 'menu.expenses' => 'Kulud',
 'menu.reports' => 'Raportid',
 // TODO: translate the following.
@@ -637,5 +639,6 @@ $i18n_key_words = array(
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
 // TODO: translate the following.
+// 'form.display_options.menu' => 'Menu',
 // 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index a77c13c63e32121f668acc2858424603ab8bc29d..bf8e71893eae951f283929d573fce37118462e7d 100644 (file)
@@ -52,6 +52,8 @@ $i18n_key_words = array(
 // 'menu.group' => 'Group',
 'menu.plugins' => 'پلاگین ها',
 'menu.time' => 'زمان',
+// TODO: translate the following.
+// 'menu.week' => 'Week',
 'menu.expenses' => 'هزينه ها',
 'menu.reports' => 'گزارشات',
 // TODO: translate the following.
@@ -659,5 +661,6 @@ $i18n_key_words = array(
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
 // TODO: translate the following.
+// 'form.display_options.menu' => 'Menu',
 // 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index e0b6034912c0b222c0b119377af402dc74784b0f..2c4d08f699155c0378c1d2d22eecf2ef12098468 100644 (file)
@@ -51,6 +51,8 @@ $i18n_key_words = array(
 // 'menu.group' => 'Group',
 'menu.plugins' => 'Lisäosat',
 'menu.time' => 'Tunnit',
+// TODO: translate the following.
+// 'menu.week' => 'Week',
 'menu.expenses' => 'Kulut',
 'menu.reports' => 'Raportit',
 // TODO: translate the following.
@@ -641,5 +643,6 @@ $i18n_key_words = array(
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
 // TODO: translate the following.
+// 'form.display_options.menu' => 'Menu',
 // 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 2fa1a4aff8d61790329485eace15c5ba56e7680a..fdb2ec309e36938d354a8bf4dd6474001865466c 100644 (file)
@@ -51,6 +51,8 @@ $i18n_key_words = array(
 // 'menu.group' => 'Group',
 'menu.plugins' => 'Plugins',
 'menu.time' => 'Temps',
+// TODO: translate the following.
+// 'menu.week' => 'Week',
 'menu.expenses' => 'Dépenses',
 'menu.reports' => 'Rapports',
 // TODO: translate the following.
@@ -631,5 +633,6 @@ $i18n_key_words = array(
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
 // TODO: translate the following.
+// 'form.display_options.menu' => 'Menu',
 // 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 3094dabda8ce63bc8884b15576a37f140a8a4180..8062417975542f24f37e0c20f4269aaaa2d837cf 100644 (file)
@@ -49,6 +49,8 @@ $i18n_key_words = array(
 'menu.group' => 'Ομάδα',
 'menu.plugins' => 'Πρόσθετα',
 'menu.time' => 'Χρόνος',
+// TODO: translate the following.
+// 'menu.week' => 'Week',
 'menu.expenses' => 'Έξοδα',
 'menu.reports' => 'Αναφορές',
 // TODO: translate the following.
@@ -620,5 +622,6 @@ $i18n_key_words = array(
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
 // TODO: translate the following.
+// 'form.display_options.menu' => 'Menu',
 // 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 820da036702ee69afba771248ae13aae258d78db..e344a28b80dc182acf65353c8d30f6bad178d24e 100644 (file)
@@ -53,6 +53,7 @@ $i18n_key_words = array(
 'menu.plugins' => 'תוספים',
 'menu.time' => 'זמן',
 // TODO: translate the following.
+// 'menu.week' => 'Week',
 // 'menu.expenses' => 'Expenses',
 'menu.reports' => 'דוחות',
 // TODO: translate the following.
@@ -663,5 +664,6 @@ $i18n_key_words = array(
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
 // TODO: translate the following.
+// 'form.display_options.menu' => 'Menu',
 // 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index fdc0d02712aeb165f125a7a47abdbaca8c4f5477..aceb35241282289c816528f885cb230226dd1d5a 100644 (file)
@@ -53,6 +53,7 @@ $i18n_key_words = array(
 // 'menu.plugins' => 'Plugins',
 'menu.time' => 'Munkaidő',
 // TODO: translate the following.
+// 'menu.week' => 'Week',
 // 'menu.expenses' => 'Expenses',
 'menu.reports' => 'Riportok',
 // TODO: translate the following.
@@ -669,5 +670,6 @@ $i18n_key_words = array(
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
 // TODO: translate the following.
+// 'form.display_options.menu' => 'Menu',
 // 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 1340e251f9d89aef6466336792615bae62b5a516..55754834bcfb13d68c0bbc18e0f1667e75689fb1 100644 (file)
@@ -51,6 +51,8 @@ $i18n_key_words = array(
 'menu.group' => 'Gruppo',
 'menu.plugins' => 'Plugin',
 'menu.time' => 'Tempo',
+// TODO: translate the following.
+// 'menu.week' => 'Week',
 'menu.expenses' => 'Spese',
 'menu.reports' => 'Rapporti',
 // TODO: translate the following.
@@ -634,5 +636,6 @@ $i18n_key_words = array(
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
 // TODO: translate the following.
+// 'form.display_options.menu' => 'Menu',
 // 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 4336427865db76c38e86e00c149d0ca3b4255976..4536cc59deaa6dbdedc2460b9dd3ca153fe458b8 100644 (file)
@@ -53,6 +53,7 @@ $i18n_key_words = array(
 // 'menu.plugins' => 'Plugins',
 'menu.time' => '時間',
 // TODO: translate the following.
+// 'menu.week' => 'Week',
 // 'menu.expenses' => 'Expenses',
 'menu.reports' => 'レポート',
 // TODO: translate the following.
@@ -672,5 +673,6 @@ $i18n_key_words = array(
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
 // TODO: translate the following.
+// 'form.display_options.menu' => 'Menu',
 // 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index e34f25f5f7c9dd38e7a170122046bf7d1f8cbfa9..693c86bebd12b75fe8dd7afc2175bc2a7fbbf00c 100644 (file)
@@ -53,6 +53,7 @@ $i18n_key_words = array(
 // 'menu.plugins' => 'Plugins',
 'menu.time' => '시간',
 // TODO: translate the following.
+// 'menu.week' => 'Week',
 // 'menu.expenses' => 'Expenses',
 'menu.reports' => '보고서',
 // TODO: translate the following.
@@ -670,5 +671,6 @@ $i18n_key_words = array(
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
 // TODO: translate the following.
+// 'form.display_options.menu' => 'Menu',
 // 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index bf4f3d5460c613d6a53535e5c6bef7221f8bd8ed..4db86bc82fa854a042788c0bf642822f0e35009a 100644 (file)
@@ -49,6 +49,8 @@ $i18n_key_words = array(
 'menu.group' => 'Groep',
 'menu.plugins' => 'Plugins',
 'menu.time' => 'Tijden',
+// TODO: translate the following.
+// 'menu.week' => 'Week',
 'menu.expenses' => 'Kosten',
 'menu.reports' => 'Rapporten',
 'menu.timesheets' => 'Tijdenoverzichten',
@@ -589,5 +591,6 @@ $i18n_key_words = array(
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
 // TODO: translate the following.
+// 'form.display_options.menu' => 'Menu',
 // 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 91de93ed93dea9169c7a735d18b7a41e0d846fe4..9076c0f808182297c46aa603239974b4690d1bc6 100644 (file)
@@ -54,6 +54,7 @@ $i18n_key_words = array(
 // 'menu.plugins' => 'Plugins',
 'menu.time' => 'Tid',
 // TODO: translate the following.
+// 'menu.week' => 'Week',
 // 'menu.expenses' => 'Expenses',
 'menu.reports' => 'Rapporter',
 // TODO: translate the following.
@@ -669,5 +670,6 @@ $i18n_key_words = array(
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
 // TODO: translate the following.
+// 'form.display_options.menu' => 'Menu',
 // 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 3bfbf556c4650e0ccef82305c89f3720f963df0d..ffa3ca324fdd23f814a96ef0747f5d13af420b7e 100644 (file)
@@ -51,6 +51,8 @@ $i18n_key_words = array(
 // 'menu.group' => 'Group',
 'menu.plugins' => 'Moduły',
 'menu.time' => 'Czas',
+// TODO: translate the following.
+// 'menu.week' => 'Week',
 'menu.expenses' => 'Wydatki',
 'menu.reports' => 'Raporty',
 // TODO: translate the following.
@@ -644,5 +646,6 @@ $i18n_key_words = array(
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
 // TODO: translate the following.
+// 'form.display_options.menu' => 'Menu',
 // 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 829b3ec109e2a82012a39de9e63fdf7c7e8e4fb9..b39801f258991fb26a13fcee8eb513cf6e18c551 100644 (file)
@@ -51,6 +51,8 @@ $i18n_key_words = array(
 // 'menu.group' => 'Group',
 'menu.plugins' => 'Plugins',
 'menu.time' => 'Tempo',
+// TODO: translate the following.
+// 'menu.week' => 'Week',
 'menu.expenses' => 'Gastos',
 'menu.reports' => 'Relatórios',
 // TODO: translate the following.
@@ -639,5 +641,6 @@ $i18n_key_words = array(
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
 // TODO: translate the following.
+// 'form.display_options.menu' => 'Menu',
 // 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 3985b216ca987231dd76b7942e2c1f18e674a7c2..2cc4f33dc78d7196c0dea61be95ff94134e8b911 100644 (file)
@@ -55,6 +55,7 @@ $i18n_key_words = array(
 // 'menu.plugins' => 'Plugins',
 'menu.time' => 'Tempo',
 // TODO: translate the following.
+// 'menu.week' => 'Week',
 // 'menu.expenses' => 'Expenses',
 'menu.reports' => 'Relatórios',
 // TODO: translate the following.
@@ -651,5 +652,6 @@ $i18n_key_words = array(
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
 // TODO: translate the following.
+// 'form.display_options.menu' => 'Menu',
 // 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 79aa92a94a7cc590785872b18f36f4b372adb316..9bdbdac7f016f88a6b548e034bee6efd42c2919b 100644 (file)
@@ -55,6 +55,7 @@ $i18n_key_words = array(
 // 'menu.plugins' => 'Plugins',
 'menu.time' => 'Timpul',
 // TODO: translate the following.
+// 'menu.week' => 'Week',
 // 'menu.expenses' => 'Expenses',
 'menu.reports' => 'Rapoarte',
 // TODO: translate the following.
@@ -672,5 +673,6 @@ $i18n_key_words = array(
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
 // TODO: translate the following.
+// 'form.display_options.menu' => 'Menu',
 // 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 4b240dbd9d4b2e76eda41054a575a40d1396757e..191cab62b2c49c24902affe51d6f0c45310184e3 100644 (file)
@@ -49,6 +49,7 @@ $i18n_key_words = array(
 'menu.group' => 'Группа',
 'menu.plugins' => 'Плагины',
 'menu.time' => 'Время',
+'menu.week' => 'Неделя',
 'menu.expenses' => 'Расходы',
 'menu.reports' => 'Отчёты',
 'menu.timesheets' => 'Табели',
@@ -581,5 +582,6 @@ $i18n_key_words = array(
 'form.timesheet_view.disapprove_body' => "Ваш табель %s не одобрен.<p>%s",
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+'form.display_options.menu' => 'Меню',
 'form.display_options.note_on_separate_row' => 'Комментарий в отдельном ряду',
 );
index b2dfe3524ea33756975251df54e2510ed722a4cb..51b4bedba8ca9ee5caa054650c188ddf4149d63b 100644 (file)
@@ -52,6 +52,7 @@ $i18n_key_words = array(
 'menu.plugins' => 'Moduly',
 'menu.time' => 'Časový záznam',
 // TODO: translate the following.
+// 'menu.week' => 'Week',
 // 'menu.expenses' => 'Expenses',
 'menu.reports' => 'Zostavy',
 // TODO: translate the following.
@@ -652,5 +653,6 @@ $i18n_key_words = array(
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
 // TODO: translate the following.
+// 'form.display_options.menu' => 'Menu',
 // 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index cd4a17dbdb57ce7859df116751f365e5d0785810..d275e10a6010f2c94455bbf09dea95809e68d871 100644 (file)
@@ -54,6 +54,7 @@ $i18n_key_words = array(
 // 'menu.group' => 'Group',
 // 'menu.plugins' => 'Plugins',
 // 'menu.time' => 'Time',
+// 'menu.week' => 'Week',
 // 'menu.expenses' => 'Expenses',
 'menu.reports' => 'Poročila',
 // TODO: translate the following.
@@ -646,5 +647,6 @@ $i18n_key_words = array(
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
 // TODO: translate the following.
+// 'form.display_options.menu' => 'Menu',
 // 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 05d32a685ac2ddc58bd2978e77ee2f667d1760c0..be1acb9ec62ae88730080894f4cc4b55cc4127f0 100644 (file)
@@ -51,6 +51,8 @@ $i18n_key_words = array(
 // 'menu.group' => 'Group',
 'menu.plugins' => 'Dodaci',
 'menu.time' => 'Vreme',
+// TODO: translate the following.
+// 'menu.week' => 'Week',
 'menu.expenses' => 'Troškovi',
 'menu.reports' => 'Izveštaji',
 // TODO: translate the following.
@@ -642,5 +644,6 @@ $i18n_key_words = array(
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
 // TODO: translate the following.
+// 'form.display_options.menu' => 'Menu',
 // 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 9f1a097244c216cf07a583a7e4557d833bcea739..701c62c70737d1b631a80e70da51800ac31baf25 100644 (file)
@@ -49,6 +49,8 @@ $i18n_key_words = array(
 'menu.group' => 'Grupp',
 'menu.plugins' => 'Tillägg',
 'menu.time' => 'Tider',
+// TODO: translate the following.
+// 'menu.week' => 'Week',
 'menu.expenses' => 'Kostnader',
 'menu.reports' => 'Rapporter',
 // TODO: translate the following.
@@ -639,5 +641,6 @@ $i18n_key_words = array(
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
 // TODO: translate the following.
+// 'form.display_options.menu' => 'Menu',
 // 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 241c40d91eb1dbbea3b47e88daaba7f9c6180a02..d158ada98b2f6b2f8010ead2d10b1eaf3126dfb2 100644 (file)
@@ -55,6 +55,7 @@ $i18n_key_words = array(
 // 'menu.plugins' => 'Plugins',
 'menu.time' => 'Zaman',
 // TODO: translate the following.
+// 'menu.week' => 'Week',
 // 'menu.expenses' => 'Expenses',
 'menu.reports' => 'Raporlar',
 // TODO: translate the following.
@@ -685,5 +686,6 @@ $i18n_key_words = array(
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
 // TODO: translate the following.
+// 'form.display_options.menu' => 'Menu',
 // 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index acda53b8802ed81bf2d98956dd0587043ffd6726..2c17bd65f09cc537c2537d2997a799a70947dca4 100644 (file)
@@ -51,6 +51,8 @@ $i18n_key_words = array(
 // 'menu.group' => 'Group',
 // 'menu.plugins' => 'Plugins',
 'menu.time' => '时间记录',
+// TODO: translate the following.
+// 'menu.week' => 'Week',
 'menu.expenses' => '费用',
 'menu.reports' => '报告',
 // TODO: translate the following.
@@ -655,5 +657,6 @@ $i18n_key_words = array(
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
 // TODO: translate the following.
+// 'form.display_options.menu' => 'Menu',
 // 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 334551bc5e35eb6db17469b25636cfe4ee4a7add..28cbddc44236a47455e9f4cac89eeb6ade520652 100644 (file)
@@ -51,6 +51,7 @@ $i18n_key_words = array(
 // 'menu.group' => 'Group',
 // 'menu.plugins' => 'Plugins',
 // 'menu.time' => 'Time',
+// 'menu.week' => 'Week',
 // 'menu.expenses' => 'Expenses',
 'menu.reports' => '報告',
 // TODO: translate the following.
@@ -662,5 +663,6 @@ $i18n_key_words = array(
 
 // Display Options form. See example at https://timetracker.anuko.com/display_options.php.
 // TODO: translate the following.
+// 'form.display_options.menu' => 'Menu',
 // 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index a4fe69e389db7a52875477dfa3cea39e5a058b3c..d11b08886d307d65e5fb089668f0cf0832d40a0f 100644 (file)
@@ -1,5 +1,15 @@
 {$forms.displayOptionsForm.open}
 <table cellspacing="1" cellpadding="2" border="0">
+{if $show_week_menu}
+  <tr><td>&nbsp;</td></tr>
+  <tr><td class="sectionHeaderNoBorder">{$i18n.form.display_options.menu}</td></tr>
+  <tr>
+    <td><label for="menu_week">{$i18n.label.week_view}:</label></td>
+    <td nowrap>{$forms.displayOptionsForm.menu_week.control} <a href="https://www.anuko.com/lp/tt_35.htm" target="_blank">{$i18n.label.what_is_it}</a></td>
+  </tr>
+{/if}
+
+  <tr><td>&nbsp;</td></tr>
   <tr><td class="sectionHeaderNoBorder">{$i18n.title.time}</td></tr>
   <tr>
     <td><label for="time_note_on_separate_row">{$i18n.form.display_options.note_on_separate_row}:</label></td>
index 1ad5a7212f60da1dc2df6bb0d01dfb324085541f..c5d29d855d5e1c2655c81ec266a633f1b465b77c 100644 (file)
@@ -12,7 +12,7 @@
       <br>
       <table cellspacing="0" cellpadding="4" width="100%" border="0">
         <tr>
-          <td align="center">&nbsp;Anuko Time Tracker 1.19.3.4983 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.19.3.4984 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
             <a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
             <a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
             <a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
index 2c5fa617049ce0578320ae4752e64720b4ae6007..0862523af303401745fae7a9b09a24fda146b7ad 100644 (file)
           <td align="center" bgcolor="#d9d9d9" nowrap height="17" background="images/subm_bg.gif">&nbsp;
     {if $user->exists() && ($user->can('track_own_time') || $user->can('track_time'))}
            <a class="mainMenu" href="time.php">{$i18n.menu.time}</a>
+      {if $user->isPluginEnabled('wv') && $user->getConfigOption('menu_week')}
+           <a class="mainMenu" href="week.php">{$i18n.menu.week}</a>
+      {/if}
     {/if}
     {if $user->exists() && $user->isPluginEnabled('ex') && ($user->can('track_own_expenses') || $user->can('track_expenses'))}
            <a class="mainMenu" href="expenses.php">{$i18n.menu.expenses}</a>
index e32140a9254ecc3c1d6dde4c5cc52f07a3c323d7..0dcfd107971f14d8094797da317329022a24b09e 100644 (file)
@@ -8,7 +8,7 @@
 
 {$forms.timeRecordForm.open}
 <table cellspacing="4" cellpadding="0" border="0">
-{if $user->isPluginEnabled('wv')}
+{if $show_navigation}
   <tr>
     <td align="center" colspan=2">
       <a href="time.php?date={$selected_date->toString()}">{$i18n.label.day_view}</a>&nbsp;/&nbsp;<a href="week.php?date={$selected_date->toString()}">{$i18n.label.week_view}</a>
index 33a218a3dc328c2bd5030b683fbedc9053a1f4a8..cd45a3b17659015272116216f6007effe917e321 100644 (file)
@@ -23,11 +23,13 @@ function fillDropdowns() {
 
 {$forms.weekTimeForm.open}
 <table cellspacing="4" cellpadding="0" border="0">
+{if $show_navigation}
   <tr>
     <td align="center" colspan=2">
       <a href="time.php?date={$selected_date->toString()}">{$i18n.label.day_view}</a>&nbsp;/&nbsp;<a href="week.php?date={$selected_date->toString()}">{$i18n.label.week_view}</a>
     </td>
   </tr>
+{/if}
   <tr>
     <td valign="top">
       <table>
index 222cc25da38f7cb9ca1b1f987514c29474851abd..a7426aaaaa8c5daeee9945b9a832a2e301484ba0 100644 (file)
@@ -40,14 +40,20 @@ if (!ttAccessAllowed('manage_basic_settings')) {
 $config = new ttConfigHelper($user->getConfig());
 
 if ($request->isPost()) {
-  $cl_time_note_on_separate_row = trim($request->getParameter('time_note_on_separate_row'));
-  $cl_report_note_on_separate_row = trim($request->getParameter('report_note_on_separate_row'));
+  $cl_menu_week = $request->getParameter('menu_week');
+  $cl_time_note_on_separate_row = $request->getParameter('time_note_on_separate_row');
+  $cl_report_note_on_separate_row = $request->getParameter('report_note_on_separate_row');
 } else {
+  $cl_menu_week = $config->getDefinedValue('menu_week');
   $cl_time_note_on_separate_row = $config->getDefinedValue('time_note_on_separate_row');
   $cl_report_note_on_separate_row = $config->getDefinedValue('report_note_on_separate_row');
 }
 
 $form = new Form('displayOptionsForm');
+// Menu.
+$form->addInput(array('type'=>'checkbox','name'=>'menu_week','value'=>$cl_menu_week));
+
+// Time page.
 // $form->addInput(array('type'=>'checkbox','name'=>'time_client','value'=>$cl_time_client));
 // $form->addInput(array('type'=>'checkbox','name'=>'time_cf_1','value'=>$cl_time_cf_1));
 // $form->addInput(array('type'=>'checkbox','name'=>'time_project','value'=>$cl_time_project));
@@ -68,6 +74,7 @@ $form->addInput(array('type'=>'submit','name'=>'btn_save','value'=>$i18n->get('b
 if ($request->isPost()){
   if ($err->no()) {
     // Update config.
+    $config->setDefinedValue('menu_week', $cl_menu_week);
     $config->setDefinedValue('time_note_on_separate_row', $cl_time_note_on_separate_row);
     $config->setDefinedValue('report_note_on_separate_row', $cl_report_note_on_separate_row);
     if ($user->updateGroup(array('config' => $config->getConfig()))) {
@@ -79,6 +86,7 @@ if ($request->isPost()){
 }
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
+$smarty->assign('show_week_menu', $user->isPluginEnabled('wv'));
 $smarty->assign('title', $i18n->get('title.display_options'));
 $smarty->assign('content_page_name', 'display_options.tpl');
 $smarty->display('index.tpl');
index d05f0c59943be4295e7d349f1bcde5f54829f76f..e7ff10ae8f8eb3f9ffba59123a5a25bb0a3af1b3 100644 (file)
--- a/time.php
+++ b/time.php
@@ -448,6 +448,7 @@ $smarty->assign('selected_date', $selected_date);
 $smarty->assign('week_total', $week_total);
 $smarty->assign('day_total', ttTimeHelper::getTimeForDay($cl_date));
 $smarty->assign('time_records', $timeRecords);
+$smarty->assign('show_navigation', $user->isPluginEnabled('wv') && !$user->getConfigOption('menu_week'));
 $smarty->assign('show_client', $showClient);
 $smarty->assign('show_cf_1', $user->isPluginEnabled('cf'));
 $smarty->assign('show_project', $showProject);
index 879d960ea06bdcc6686c840efcaf603f1f5075c4..af5b9eb06947581aad0cb54b6267455572239186 100644 (file)
--- a/week.php
+++ b/week.php
@@ -508,6 +508,7 @@ $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('onload', 'onLoad="fillDropdowns()"');
 $smarty->assign('timestring', $startDate->toString($user->date_format).' - '.$endDate->toString($user->date_format));
 $smarty->assign('time_records', $records);
+$smarty->assign('show_navigation', !$user->getConfigOption('menu_week'));
 $smarty->assign('show_files', $showFiles);
 $smarty->assign('title', $i18n->get('title.time'));
 $smarty->assign('content_page_name', 'week.tpl');