From 5628256e6979335a58e7f9f873037873f24dae27 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 14 Dec 2004 06:46:08 +0000 Subject: - Patch #14288 by Goba: "the archive module calendar indexes the array used to build up the header cells by the short names of the days. In Hungary, we have both Wednesday and Sunday start with the same two letters, so if I translate the short versions with the same two letters, the second associative array index will overwrite the first. The obvious soluion was to swap the array, and index by the full day name, which is expected to be unique in all languages." --- modules/archive/archive.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/archive/archive.module') diff --git a/modules/archive/archive.module b/modules/archive/archive.module index 557e201ba..0853bfdee 100644 --- a/modules/archive/archive.module +++ b/modules/archive/archive.module @@ -97,12 +97,12 @@ function archive_calendar($original = 0) { $firstcolumn = mktime(0, 0, 0, 3, 20 + $weekstart, 1994); $output .= " \n"; - $days = array(t('Su') => t('Sunday'), t('Mo') => t('Monday'), t('Tu') => t('Tuesday'), t('We') => t('Wednesday'), t('Th') => t('Thursday'), t('Fr') => t('Friday'), t('Sa') => t('Saturday')); + $days = array(t('Sunday') => t('Su'), t('Monday') => t('Mo'), t('Tuesday') => t('Tu'), t('Wednesday') => t('We'), t('Thursday') => t('Th'), t('Friday') => t('Fr'), t('Saturday') => t('Sa')); if ($weekstart) { $days = array_merge(array_slice($days, $weekstart), array_slice($days, 0, $weekstart)); } - foreach ($days as $name => $fullname) { + foreach ($days as $fullname => $name) { $output .= ' '. $name . "\n"; } $output .= "\n"; -- cgit v1.2.3