Page MenuHomePhabricator

Add "Syrian" date format to the preferences for Arab
Closed, ResolvedPublic

Description

Author: a.m.h.e.s

Description:
hello, in Arabic Wikipedia, we discuss to add a new date format to the preferences, now there are 6 date formats in the preferences, and if you could add a new one it will be great.

here is the link of discussion: https://ar.wikipedia.org/wiki/%D9%88%D9%8A%D9%83%D9%8A%D8%A8%D9%8A%D8%AF%D9%8A%D8%A7:%D8%A7%D9%84%D9%85%D9%8A%D8%AF%D8%A7%D9%86/%D8%AA%D9%82%D9%86%D9%8A%D8%A9/05/2014#.D8.A5.D8.AA.D8.A7.D8.AD.D8.A9_.D8.A7.D9.84.D8.A3.D8.B4.D9.87.D8.B1_.D8.A7.D9.84.D8.B3.D8.B1.D9.8A.D8.A7.D9.86.D9.8A.D8.A9_.D9.81.D9.8A_.D8.B5.D9.8A.D8.BA.D8.A9_.D8.A7.D9.84.D9.88.D9.82.D8.AA

now the new date format will be like this: j {{LOCALMONTHABBREV}} Y


Version: unspecified
Severity: enhancement

Details

Reference
bz65245

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:23 AM
bzimport set Reference to bz65245.

Thanks for taking the time to report this!

j {{LOCALMONTHABBREV}} Y

I am a bit confused what "j" means here (likely the day)? How many digits do j and Y have?

I would love to understand the motivation / intention of this request better, and which problem you try to solve. For example, does the current problem have to do with a specific calendar?

a.m.h.e.s wrote:

As i said above, we discuss to add a new date format to the preference, so any body can choose date formats that he like.

j {{LOCALMONTHABBREV}} Y is equal to {{#time:j {{LOCALMONTHABBREV}} Y}} if we put it in wiki page, and j Indicate to day number, or you can replace it with d, and {{LOCALMONTHABBREV}} indicate to month name with Syrian calender, and finally Y is indicate to year number.

But what is the practical usecase?
"Just because I like it" is not very convincing if somebody needs to maintain that code for the next years, so I guess there might be better reasons. :)

Is the proposed format used? If so, where, or in which calendars?

a.m.h.e.s wrote:

An active user in Arabic Wikipedia propose to add a new format to the preference, and many users support this proposal, you can see it here.

https://ar.wikipedia.org/wiki/%D9%88%D9%8A%D9%83%D9%8A%D8%A8%D9%8A%D8%AF%D9%8A%D8%A7:%D8%A7%D9%84%D9%85%D9%8A%D8%AF%D8%A7%D9%86/%D8%AA%D9%82%D9%86%D9%8A%D8%A9#.D8.A5.D8.AA.D8.A7.D8.AD.D8.A9_.D8.A7.D9.84.D8.A3.D8.B4.D9.87.D8.B1_.D8.A7.D9.84.D8.B3.D8.B1.D9.8A.D8.A7.D9.86.D9.8A.D8.A9_.D9.81.D9.8A_.D8.B5.D9.8A.D8.BA.D8.A9_.D8.A7.D9.84.D9.88.D9.82.D8.AA

The Syrian calender is commonly used in the middle east countries, and in Levant countries. also it used in north Africa.

note: A high percentage of Arabic Wikipedia users are liven in the Regions i mention it above.

a.m.h.e.s wrote:

If you need, I can translate the proposal to English, so you can understand it.

Created attachment 15490
Patched $datePreferences

Thanks to the reporter we did out standards-compliant duty at http://st.unicode.org/cldr-apps/v#/ar_SY/Generic/ , let's get this done for MediaWiki.

Is the attachment how you would like it to be?

Attached:

DateAr.png (185×207 px, 5 KB)

Change 135595 had a related patch set uploaded by Nemo bis:
Add jMY to Arab date formats ($datePreferences)

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

a.m.h.e.s wrote:

Comment on attachment 15490
Patched $datePreferences

You have to add only a new format, it will be like this:

j {{LOCALMONTHABBREV}} Y

Change 135595 merged by jenkins-bot:
Add jMY to Arab date formats ($datePreferences)

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

Fixed, will be live on Wikipedia with MediaWiki 1.24wmf8: Thursday, 12 June 2014

Change 139122 had a related patch set uploaded by Nemo bis:
Actually define jMY date format for Arab

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

Change 139122 merged by jenkins-bot:
Actually define jMY date format for Arab

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

Ok, should be included in 1.24wmf10 and reach ar.wiki on 2014-06-26.