Page MenuHomePhabricator

#time in fa.wiki has problem with traditional calendar abridged form
Closed, ResolvedPublic

Description

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)


Version: unspecified
Severity: normal

Details

Reference
bz32461
TitleReferenceAuthorSource BranchDest Branch
Disallow creating projects with empty descriptionrepos/phabricator/phabricator!24aklapperT344610disallowEmptyProjectDescwmf/stable
Customize query in GitLab

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:07 AM
bzimport set Reference to bz32461.

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 ?

Attached:

Thank you for The Patch.

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

۱۳۹۰ == short form ==> ۹۰
۱۳۸۹ == short form ==> ۸۹

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.