Umherirrender has uploaded a new change for review.

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

Change subject: Add CURRENTDAY1/LOCALDAY1 aliases for CURRENTDAY/LOCALDAY
......................................................................

Add CURRENTDAY1/LOCALDAY1 aliases for CURRENTDAY/LOCALDAY

For CURRENTMONTH the name with 1 at end is always unpadded and 2 is
padded, for CURRENTDAY only the version without a digit is unpadded and
2 is padded, adding version with 1 to make it easier when must changing
padding, because with the new alias there is no need to look, which
version is padded or not. 1 = unpadded and 2 = padded.

This allows use in wikitext:
{{CURRENTDAY1}}/{{CURRENTMONTH1}}
{{CURRENTDAY2}}/{{CURRENTMONTH2}}

{{LOCALDAY1}}/{{LOCALMONTH1}}
{{LOCALDAY2}}/{{LOCALMONTH2}}

Change-Id: Ia1272e564c9cc53632b630ac534c439e81f001e1
---
M languages/messages/MessagesEn.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/05/110705/1

diff --git a/languages/messages/MessagesEn.php 
b/languages/messages/MessagesEn.php
index 2771f64..7a0c6c2 100644
--- a/languages/messages/MessagesEn.php
+++ b/languages/messages/MessagesEn.php
@@ -220,7 +220,7 @@
        'currentmonthname'        => array( 1,    'CURRENTMONTHNAME' ),
        'currentmonthnamegen'     => array( 1,    'CURRENTMONTHNAMEGEN' ),
        'currentmonthabbrev'      => array( 1,    'CURRENTMONTHABBREV' ),
-       'currentday'              => array( 1,    'CURRENTDAY' ),
+       'currentday'              => array( 1,    'CURRENTDAY', 'CURRENTDAY1' ),
        'currentday2'             => array( 1,    'CURRENTDAY2' ),
        'currentdayname'          => array( 1,    'CURRENTDAYNAME' ),
        'currentyear'             => array( 1,    'CURRENTYEAR' ),
@@ -231,7 +231,7 @@
        'localmonthname'          => array( 1,    'LOCALMONTHNAME' ),
        'localmonthnamegen'       => array( 1,    'LOCALMONTHNAMEGEN' ),
        'localmonthabbrev'        => array( 1,    'LOCALMONTHABBREV' ),
-       'localday'                => array( 1,    'LOCALDAY' ),
+       'localday'                => array( 1,    'LOCALDAY', 'LOCALDAY1' ),
        'localday2'               => array( 1,    'LOCALDAY2' ),
        'localdayname'            => array( 1,    'LOCALDAYNAME' ),
        'localyear'               => array( 1,    'LOCALYEAR' ),

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

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

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

Reply via email to