From 0696d5967469f46c14bf1cdbc8c9ed0ad3fe3aff Mon Sep 17 00:00:00 2001 From: Chad Little Date: Wed, 19 May 2004 03:45:07 +0000 Subject: Code optimization: Specifically replace each language variable instead of looking for any. --- month.php | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'month.php') diff --git a/month.php b/month.php index c45eb78..45b15ea 100644 --- a/month.php +++ b/month.php @@ -48,7 +48,6 @@ $list_jumps = list_jumps(); $list_calcolors = list_calcolors(); $page = new Page(BASE.'templates/'.$template.'/month.tpl'); - $page->replace_tags(array( 'header' => BASE.'templates/'.$template.'/header.tpl', 'footer' => BASE.'templates/'.$template.'/footer.tpl', @@ -76,7 +75,23 @@ $page->replace_tags(array( 'list_weeks' => $list_weeks, 'legend' => $list_calcolors, 'current_view' => $current_view, - '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_subscribe' => $lang['l_subscribe'], + 'l_download' => $lang['l_download'], + 'l_this_months' => $lang['l_this_months'], + 'l_powered_by' => $lang['l_powered_by'], + 'l_this_site_is' => $lang['l_this_site_is'] )); $page->monthbottom($this->page); -- cgit v1.2.3