Add Hijri calendar in Urdu

Allows users to select their preferred calendar from Preferences.

Bug: T145266
Change-Id: I7299d0f84f629da781b100c4db6b2a30a7d1bb86
This commit is contained in:
zoranzoki21 2018-02-04 19:20:14 +01:00 committed by Amire80
parent 7189837b07
commit d27f400d2a

View file

@ -358,3 +358,23 @@ $magicWords = [
# LinkTrail for Urdu language
$linkTrail = "/^([ابپتٹثجچحخدڈذر​ڑ​زژسشصضطظعغفقکگل​م​نوؤہھیئےآأءۃ]+)(.*)$/sDu";
$defaultDateFormat = 'dmy';
$dateFormats = [
'dmy time' => 'H:i',
'dmy date' => 'j xg Yء', # Urdu sign of year
'dmy both' => 'H:i، j xg Yء', # Urdu sign of year and comma
'ymd time' => 'H:i',
'ymd date' => 'Yء xg j', # Urdu sign of year
'ymd both' => 'H:i، Yء xg j', # Urdu sign of year and comma
'hijri time' => 'H:i',
'hijri date' => 'xmj xmF xmYھ', # Urdu sign of hijri year
'hijri both' => 'H:i، xmj xmF xmYھ', # Urdu sign of hijri year and comma
'jMY time' => 'H:i',
'jMY date' => 'j M Yء', # Urdu sign of year
'jMY both' => 'H:i، j M Yء', # Urdu sign of year and comma
];