Author: sebmol
Description:
I submit the two additional modifiers "L" (determines, if a year is a leap year)
and "W" (determines the day of the week as a number according to ISO-8601) as
described at http://www.php.net/date.
Index: Language.php =================================================================== --- Language.php (revision 16223) +++ Language.php (working copy) @@ -474,9 +474,16 @@ case 'D': $s .= $this->getWeekdayAbbreviation( self::calculateWeekday( $ts ) ); break; + case 'W': + $s .= self::calculateWeekday( $ts ) - 1; + break; case 'j': $num = intval( substr( $ts, 6, 2 ) ); break; + case 'L': + if (date( 'L', wfTimestamp( TS_UNIX, $ts ) )) + $s .= "1"; + break; case 'l': $s .= $this->getWeekdayName( self::calculateWeekday( $ts ) ); break;