Add Hijri calendar in Urdu
Allows users to select their preferred calendar from Preferences. Bug: T145266 Change-Id: I7299d0f84f629da781b100c4db6b2a30a7d1bb86
This commit is contained in:
parent
7189837b07
commit
d27f400d2a
1 changed files with 20 additions and 0 deletions
|
|
@ -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
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in a new issue