- 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."

4.5.x
Dries Buytaert 2004-12-14 06:46:56 +00:00
parent 31ab842cca
commit bae399f47a
1 changed files with 2 additions and 2 deletions

View File

@ -97,12 +97,12 @@ function archive_calendar($original = 0) {
$firstcolumn = mktime(0, 0, 0, 3, 20 + $weekstart, 1994);
$output .= " <tr class=\"header-week\">\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 .= ' <th abbr="'. $fullname .'">'. $name . "</th>\n";
}
$output .= "</tr>\n";