Last modified: 2011-12-14 00:33:42 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 T34461, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32461 - #time in fa.wiki has problem with traditional calendar abridged form
#time in fa.wiki has problem with traditional calendar abridged form
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Brion Vibber
: i18n, need-unittest, patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-17 17:18 UTC by reza1615
Modified: 2011-12-14 00:33 UTC (History)
4 users (show)

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


Attachments
Patch adding xiy format (830 bytes, patch)
2011-11-18 16:36 UTC, Platonides
Details

Description reza1615 2011-11-17 17:18:24 UTC
In fa.wiki for abridged form of Jalaly Calendar (Persian calendar) it is not defined.(second sample)

1-{{subst:#time:xiY}} ==>۱۳۹۰   (ok=1390)
2-{{subst:#time:xiy}} ==>y      (not ok)  and it will be ۹۰
3-{{subst:#time:y}}==>۱۱          (ok=11)
4-{{subst:#time:Y}}==>۲۰۱۱         (ok=2011)
Comment 1 Platonides 2011-11-18 16:36:48 UTC
Created attachment 9490 [details]
Patch adding xiy format

There's no support for years in 2-digit format (other than the original one present in php).
This is common to Iranian, Hebrew, Hijri, Thai, Minguo and Japanese calendars (those for which we have a full year output).

Would the short form be always equivalent to the last two digits ?
Comment 2 reza1615 2011-11-18 17:23:51 UTC
Thank you for The Patch.

In the Persian calender the short form is the last two right side digits

۱۳۹۰  == short form ==> ۹۰
۱۳۸۹  == short form ==> ۸۹
Comment 3 Brion Vibber 2011-12-14 00:33:42 UTC
Applied patch plus test cases in r106143. Test case uses latin-style digits as it's testing in English locale; in fa you should get the persian digits.

This change should land in MediaWiki 1.19 and be available when that goes live on the wikipedias.

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


Navigation
Links