aboutsummaryrefslogtreecommitdiffstats
path: root/day.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2004-05-19 03:45:07 +0000
committerChad Little <clittle@users.sourceforge.net>2004-05-19 03:45:07 +0000
commit0696d5967469f46c14bf1cdbc8c9ed0ad3fe3aff (patch)
tree47101492ee8db3d9f6c1c0128783e8a5734fd307 /day.php
parentafcfa0c4ab39291d30ded5e111c5537698e7c84e (diff)
downloadphpicalendar-0696d5967469f46c14bf1cdbc8c9ed0ad3fe3aff.tar.gz
phpicalendar-0696d5967469f46c14bf1cdbc8c9ed0ad3fe3aff.tar.bz2
phpicalendar-0696d5967469f46c14bf1cdbc8c9ed0ad3fe3aff.zip
Code optimization: Specifically replace each language variable instead of
looking for any.
Diffstat (limited to 'day.php')
-rw-r--r--day.php27
1 files changed, 26 insertions, 1 deletions
diff --git a/day.php b/day.php
index 9dc3e82..6228bc4 100644
--- a/day.php
+++ b/day.php
@@ -74,9 +74,34 @@ $page->replace_tags(array(
'list_weeks' => $list_weeks,
'list_jumps' => $list_jumps,
'legend' => $list_calcolors,
- 'style_select' => $style_select
+ 'style_select' => $style_select,
+ 'l_goprint' => $lang['l_goprint'],
+ 'l_preferences' => $lang['l_preferences'],
+ 'l_calendar' => $lang['l_calendar'],
+ 'l_legend' => $lang['l_legend'],
+ 'l_tomorrows' => $lang['l_tomorrows'],
+ 'l_jump' => $lang['l_jump'],
+ 'l_todo' => $lang['l_todo'],
+ 'l_day' => $lang['l_day'],
+ 'l_week' => $lang['l_week'],
+ 'l_month' => $lang['l_month'],
+ 'l_year' => $lang['l_year'],
+ 'l_powered_by' => $lang['l_powered_by'],
+ 'l_subscribe' => $lang['l_subscribe'],
+ 'l_download' => $lang['l_download'],
+ 'l_this_site_is' => $lang['l_this_site_is']
));
+if ($allow_login == 'yes') {
+ $page->replace_tags(array(
+ 'l_invalid_login' => $lang['l_invalid_login'],
+ 'l_password' => $lang['l_password'],
+ 'l_username' => $lang['l_username'],
+ 'l_login' => $lang['l_login'],
+ 'l_logout' => $lang['l_logout']
+ ));
+}
+
$page->draw_day($this->page);
$page->tomorrows_events($this->page);
$page->get_vtodo($this->page);

© 2014-2024 Faster IT GmbH | imprint | privacy policy