From 55e814ffba2d705112d9c0ca3d2b24539dd8dc26 Mon Sep 17 00:00:00 2001 From: jwangen Date: Thu, 3 Oct 2002 04:36:10 +0000 Subject: Localization update, every file changed, basically. --- config.inc.php | 2 +- day.php | 10 +++++----- functions/date_functions.php | 2 +- functions/list_months.php | 2 +- functions/list_weeks.php | 4 ++-- languages/danish.inc.php | 40 +++++++++++++++++++++++++++++++++++++- languages/dutch.inc.php | 39 ++++++++++++++++++++++++++++++++++++- languages/english.inc.php | 19 +++++++++++++++++- languages/french.inc.php | 40 +++++++++++++++++++++++++++++++++++++- languages/german.inc.php | 38 +++++++++++++++++++++++++++++++++++- languages/italian.inc.php | 39 ++++++++++++++++++++++++++++++++++++- languages/japanese.inc.php | 46 ++++++++++++++++++++++++++++++++++++-------- languages/norwegian.inc.php | 39 ++++++++++++++++++++++++++++++++++++- languages/polish.inc.php | 39 ++++++++++++++++++++++++++++++++++++- month.php | 4 ++-- month_bottom.php | 6 +++--- sidebar.php | 16 +++++++++------ week.php | 6 +++--- 18 files changed, 351 insertions(+), 40 deletions(-) diff --git a/config.inc.php b/config.inc.php index cc56c0a..4833c5e 100644 --- a/config.inc.php +++ b/config.inc.php @@ -4,7 +4,7 @@ $style_sheet = "silver"; // Themes support $calendar_path = "./calendars"; // path to directory with calendars $default_view = "day"; // default view for calendars = "day", "week", "month" $default_cal = "Home"; // exact filename of calendar without .ics -$language = "English"; // Language support - "English", "Polish", "German", "French", "Dutch", "Danish", "Italian", "Japanese", "Norwegian" +$language = "japanese"; // Language support - "English", "Polish", "German", "French", "Dutch", "Danish", "Italian", "Japanese", "Norwegian" $week_start_day = "monday"; // Day of the week your week starts on $use_sessions = "yes"; // For speedy performance on web servers, not good for localhost use. $day_start = "0700"; // Start time for day grid diff --git a/day.php b/day.php index b3c5e5c..d867f8b 100644 --- a/day.php +++ b/day.php @@ -26,7 +26,7 @@ $unix_time = strtotime($getdate); $today_today = date ("Ymd"); $tomorrows_date = date( "Ymd", strtotime("+1 day", $unix_time)); $yesterdays_date = date( "Ymd", strtotime("-1 day", $unix_time)); -$display_date = strftime($dateFormat_day, $unix_time); +$display_date = localizeDate($dateFormat_day, $unix_time); // For the side months ereg ("([0-9]{4})([0-9]{2})([0-9]{2})", $getdate, $day_array2); @@ -44,11 +44,11 @@ $year3 = date("Y", DateAdd ("m", "+1", $date)); $first_sunday1 = sundayOfWeek($year1, $month1, "1"); $first_sunday2 = sundayOfWeek($year2, $month2, "1"); $first_sunday3 = sundayOfWeek($year3, $month3, "1"); -$display_month1 = strftime ($dateFormat_month, strtotime("-1 month", $date)); -$display_month2 = strftime ($dateFormat_month, $date); -$display_month3 = strftime ($dateFormat_month, strtotime("+1 month", $date)); +$display_month1 = localizeDate ($dateFormat_month, strtotime("-1 month", $date)); +$display_month2 = localizeDate ($dateFormat_month, $date); +$display_month3 = localizeDate ($dateFormat_month, strtotime("+1 month", $date)); $parse_month = date ("Ym", $date); -$thisday2 = strftime($dateFormat_week_list, $date); +$thisday2 = localizeDate($dateFormat_week_list, $date); $dayborder = 0; diff --git a/functions/date_functions.php b/functions/date_functions.php index f2e67d7..4b69c54 100644 --- a/functions/date_functions.php +++ b/functions/date_functions.php @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/functions/list_months.php b/functions/list_months.php index f3fbb4a..a1ef122 100644 --- a/functions/list_months.php +++ b/functions/list_months.php @@ -8,7 +8,7 @@ $getdate_month = date("m", strtotime($getdate)); for ($i=0; $i<12; $i++) { $monthdate = date ("Ymd", $month_time); $month_month = date("m", $month_time); - $select_month = strftime($dateFormat_month, $month_time); + $select_month = localizeDate($dateFormat_month, $month_time); if ($month_month == $getdate_month) { print "\n"; } else { diff --git a/functions/list_weeks.php b/functions/list_weeks.php index 58d1465..ead91e8 100644 --- a/functions/list_weeks.php +++ b/functions/list_weeks.php @@ -16,8 +16,8 @@ print "
\n