Page MenuHomePhabricator

Add Iranian calendar and Islamic calendar on ckb.wikipedia
Closed, ResolvedPublic

Description

Hello. We discussed about date and time on our wikipedia (See URL) and I will report all of them in several bugs.

At first, please add Iranian calendar and Islamic calendar to user preferences (date and time section)

Further information:
http://en.wikipedia.org/wiki/Iranian_calendars
http://en.wikipedia.org/wiki/Islamic_calendar

Thank you.


Version: unspecified
Severity: enhancement
URL: http://ckb.wikipedia.org/wiki/ویکیپیدیا:ڕاپرسی_بۆ_چاککردنی_شێوازی_کات_و_ڕێکەوت

Details

Reference
bz52009

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:44 AM
bzimport set Reference to bz52009.
Calak created this task.Jul 25 2013, 12:50 AM

What exactly is requested in this bug report?
"Date and time on ckb.wikipedia" in the summary does not really describe an actual request.
Also see https://www.mediawiki.org/wiki/How_to_report_a_bug

Calak added a comment.Jul 25 2013, 9:00 AM

I Changed description, is it clear now?

Language::sprintfdate claims to support Iranian and Hijri calendars, so at least part of this bug should be just about adding suitable time format strings to MessagesCbk.

Here is an example from MessagesAr:
$dateFormats = array(
[...]

'hijri time' => 'H:i',
'hijri date' => 'xmj xmF xmY',
'hijri both' => 'H:i، xmj xmF xmY',
TTO added a comment.Jul 25 2013, 10:37 AM

And this from MessagesFa:

'persian time' => '‏H:i',
'persian date' => '‏xij xiF xiY',
'persian both' => '‏xij xiF xiY، ساعت H:i',

(See [1] to understand it.)

Is that what you want? I guess that bit of Persian text in the last string needs to be translated to ckb language.

[1] https://doc.wikimedia.org/mediawiki-core/master/php/html/classLanguage.html#a1b1986ca2cffec7f0fc081c2198c4c21

Calak added a comment.Jul 25 2013, 2:09 PM

OK. Please change:
'hijri date' => 'xmj xmF xmY', to 'hijri date' => 'xmjی xmFی xmY',
'hijri both' => 'H:i، xmj xmF xmY', to 'hijri both' => 'H:i، xmjی xmFی xmY',
and
'persian date' => '‏xij xiF xiY', to 'persian date' => '‏xijی xiFی xiY',
'persian both' => '‏xij xiF xiY، ساعت H:i', to 'persian both' => 'H:i، ‏xijی xiFی xiY',
"ی" is for genitive.
Thank you.

TTO added a comment.Jul 26 2013, 12:01 PM

Is this right? I wasn't sure what to do with the mdy etc. ones, so I just copied them from the English file.

$dateFormats = array(
'mdy time' => 'H:i',
'mdy date' => 'F j, Y',
'mdy both' => 'H:i, F j, Y',

'dmy time' => 'H:i',
'dmy date' => 'j F Y',
'dmy both' => 'H:i, j F Y',

'ymd time' => 'H:i',
'ymd date' => 'Y F j',
'ymd both' => 'H:i, Y F j',

'persian time' => '‏H:i',
'persian date' => '‏xijی xiFی xiY',
'persian both' => '‏H:i، ‏xijی xiFی xiY',

'hijri time' => '‏H:i',
'hijri date' => '‏xmjی xmFی xmY',
'hijri both' => '‏H:i، xmjی xmFی xmY',

'ISO 8601 time' => 'xnH:xni:xns',
'ISO 8601 date' => 'xnY-xnm-xnd',
'ISO 8601 both' => 'xnY-xnm-xnd"T"xnH:xni:xns',
);

Calak added a comment.Jul 26 2013, 2:27 PM

OK, But Kurdish language is not like English, also Kurdish has a genitive case so you should use xg; therefore please:

1- Set $dateFormats thus:
$dateFormats = array(

'dmy time' => 'H:i',
'dmy date' => 'jی xg Y',
'dmy both' => 'H:i، jی xg Y',

'mdy time' => 'H:i',
'mdy date' => 'xg j، Y',
'mdy both' => 'H:i، xg j، Y',

'ymd time' => 'H:i',
'ymd date' => 'Y/n/j',
'ymd both' => 'H:i، Y/n/j',

'persian time' => '‏H:i',
'persian date' => '‏xijی xiFی xiY',
'persian both' => '‏H:i، ‏xijی xiFی xiY',

'hijri time' => '‏H:i',
'hijri date' => '‏xmjی xmFی xmY',
'hijri both' => '‏H:i، xmjی xmFی xmY',

'ISO 8601 time' => 'xnH:xni:xns',
'ISO 8601 date' => 'xnY-xnm-xnd',
'ISO 8601 both' => 'xnY-xnm-xnd"T"xnH:xni:xns',

);

2- Set $datePreferences thus:
$datePreferences = array(

'default',
'dmy',
'mdy',
'ymd',
'persian',
'hijri',
'ISO 8601',

);

3- Set $defaultDateFormat thus:
$defaultDateFormat = 'dmy';

Thank you very much.

Calak added a comment.Jul 26 2013, 3:29 PM

And also Set $datePreferenceMigrationMap thus:
$datePreferenceMigrationMap = array(

'default',
'dmy',
'mdy',
'ymd'

);

Change 76232 had a related patch set uploaded by TTO:
(bug 52009) set up local date formats for Sorani Kurdish (ckb)

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

TTO added a comment.Jul 27 2013, 2:33 AM

Note that I left the default order (mdy before dmy) because I suspect there is some internal reason for keeping that order. If you want to reverse it that could always be done, but I don't know if there could be strange side-effects.

Calak added a comment.Jul 27 2013, 5:01 AM

No problem, thanks.

Calak added a comment.Aug 7 2013, 9:28 PM

When this bug resolve?

TTO added a comment.Aug 7 2013, 9:58 PM

Calendar system changes cannot be done in the same way as regular site requests; instead, they require a change to the MediaWiki software itself. MediaWiki code changes seem to take a longer time to process (at [1] you can see how big the queue of changes is).

[1] https://gerrit.wikimedia.org/r/#/projects/mediawiki/core,dashboards/default

Calak added a comment.Aug 7 2013, 10:03 PM

Thank you for your fast answer. We are waiting for resolving this bug because we want to add Kurdish calendar on ckb.wiki.

TTO added a comment.Aug 10 2013, 8:40 AM

Calak: Niklas Laxstrom has declined this change as it stands, due to his concerns about the inclusion of the mdy/dmy/ymd variants. As a speaker of Sorani Kurdish, could you clarify this situation?


Nikerabbit Jul 28 1:34 AM

I find it unlikely that they need all of ymd/dmy/mdy variants since that is mostly specific to English language only to work around the limited locales we have. [...]

TTO Jul 28 10:53 AM

[...] I think most other locales keep the ymd/etc possibilities. So for consistency they should be staying here too. Additionally some users on the wiki may already be using these settings and may want to keep them.

TTO Jul 28 11:03 AM

Also the user Calak at the bug seemed happy to have these included on behalf of the ckb community.

Nikerabbit 4:35 PM

Keeping them in here is not any more consistent than not keeping them here.

Unless they are actually used, they are harmful to usability by providing the users unneeded choice.

Calak added a comment.Aug 10 2013, 2:16 PM

OK. I remark this comment now. Now in fa.wiki, there is 6 variants for date and time! I don't know why anything is possible for other wikis but not for our wiki!
You can omit mdy variant for resolving bug. Thank you.

Change 76232 had a related patch set uploaded by TTO:
(bug 52009) set up local date formats for Sorani Kurdish (ckb)

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

Calak added a comment.Sep 1 2013, 6:01 AM

Can you tell me the destination of this bug please?

There is a patchin Gerrit and that patch needs a review.

Calak added a comment.Sep 11 2013, 3:06 PM

Can you tell me the issue?

See comment 17 and comment 18.

Calak added a comment.Sep 11 2013, 5:36 PM

Thank you Andre Klapper for your answer, but patch review needs more than 45 days really?

Change 76232 merged by jenkins-bot:
Set up local date formats for Sorani Kurdish (ckb)

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