From: Molly White Date: Wed, 31 Jul 2013 22:07:17 +0000 (-0400) Subject: Add month-only date format. X-Git-Tag: 1.31.0-rc.0~19063^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=c481d2d6cbc256198dc5ce09ea1cc28ab41a9134;p=lhc%2Fweb%2Fwiklou.git Add month-only date format. The BookManagerv2 extension needs support for dates that consist of only a month and a year, and I think this is something that would potentially be useful to other extensions as well. Change-Id: I3672b0b0aee196890981302a41daeefb61130141 --- diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 826c364c4d..92f264c2d3 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -161,21 +161,25 @@ $datePreferenceMigrationMap = array( $dateFormats = array( 'mdy time' => 'H:i', 'mdy date' => 'F j, Y', + 'mdy monthonly' => 'F Y', 'mdy both' => 'H:i, F j, Y', 'mdy pretty' => 'F j', 'dmy time' => 'H:i', 'dmy date' => 'j F Y', + 'dmy monthonly' => 'F Y', 'dmy both' => 'H:i, j F Y', 'dmy pretty' => 'j F', 'ymd time' => 'H:i', 'ymd date' => 'Y F j', + 'ymd monthonly' => 'Y F', 'ymd both' => 'H:i, Y F j', 'ymd pretty' => 'F j', 'ISO 8601 time' => 'xnH:xni:xns', 'ISO 8601 date' => 'xnY-xnm-xnd', + 'ISO 8601 monthonly' => 'xnY-xnm', 'ISO 8601 both' => 'xnY-xnm-xnd"T"xnH:xni:xns', 'ISO 8601 pretty' => 'xnm-xnd' );