Mollywhite has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/77059


Change subject: Add month-only date format.
......................................................................

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
---
M languages/messages/MessagesEn.php
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/59/77059/1

diff --git a/languages/messages/MessagesEn.php 
b/languages/messages/MessagesEn.php
index 826c364..92f264c 100644
--- a/languages/messages/MessagesEn.php
+++ b/languages/messages/MessagesEn.php
@@ -161,21 +161,25 @@
 $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'
 );

-- 
To view, visit https://gerrit.wikimedia.org/r/77059
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3672b0b0aee196890981302a41daeefb61130141
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Mollywhite <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to