Last modified: 2013-12-07 21:59:19 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T54009, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52009 - Add Iranian calendar and Islamic calendar on ckb.wikipedia
Add Iranian calendar and Islamic calendar on ckb.wikipedia
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
unspecified
All All
: Normal enhancement with 2 votes (vote)
: ---
Assigned To: This, that and the other (TTO)
http://ckb.wikipedia.org/wiki/ویکیپید...
: i18n
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-25 00:50 UTC by Calak
Modified: 2013-12-07 21:59 UTC (History)
11 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Calak 2013-07-25 00:50:03 UTC
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.
Comment 1 Andre Klapper 2013-07-25 08:47:30 UTC
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
Comment 2 Calak 2013-07-25 09:00:12 UTC
I Changed description, is it clear now?
Comment 3 Niklas Laxström 2013-07-25 09:14:51 UTC
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',
Comment 4 This, that and the other (TTO) 2013-07-25 10:37:41 UTC
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
Comment 5 Calak 2013-07-25 14:09:27 UTC
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.
Comment 6 This, that and the other (TTO) 2013-07-26 12:01:22 UTC
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',
);
Comment 7 Calak 2013-07-26 14:27:33 UTC
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.
Comment 8 Calak 2013-07-26 15:29:56 UTC
And also Set $datePreferenceMigrationMap thus:
$datePreferenceMigrationMap = array(
    'default',
    'dmy',
    'mdy',
    'ymd'
);
Comment 9 Gerrit Notification Bot 2013-07-27 02:31:14 UTC
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
Comment 10 This, that and the other (TTO) 2013-07-27 02:33:15 UTC
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.
Comment 11 Calak 2013-07-27 05:01:03 UTC
No problem, thanks.
Comment 12 Calak 2013-08-07 21:28:25 UTC
When this bug resolve?
Comment 13 This, that and the other (TTO) 2013-08-07 21:58:34 UTC
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
Comment 14 Calak 2013-08-07 22:03:44 UTC
Thank you for your fast answer. We are waiting for resolving this bug because we want to add Kurdish calendar on ckb.wiki.
Comment 15 This, that and the other (TTO) 2013-08-10 08:40:25 UTC
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.
Comment 16 Calak 2013-08-10 14:16:22 UTC
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.
Comment 17 Gerrit Notification Bot 2013-08-11 03:59:15 UTC
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
Comment 18 Calak 2013-09-01 06:01:51 UTC
Can you tell me the destination of this bug please?
Comment 19 Andre Klapper 2013-09-01 19:15:44 UTC
There is a patchin Gerrit and that patch needs a review.
Comment 20 Calak 2013-09-11 15:06:00 UTC
Can you tell me the issue?
Comment 21 Andre Klapper 2013-09-11 16:55:10 UTC
See comment 17 and comment 18.
Comment 22 Calak 2013-09-11 17:36:26 UTC
Thank you Andre Klapper for your answer, but patch review needs more than 45 days really?
Comment 23 Gerrit Notification Bot 2013-12-07 21:12:50 UTC
Change 76232 merged by jenkins-bot:
Set up local date formats for Sorani Kurdish (ckb)

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links