Skip to content

Commit

Permalink
Code directionality for pa-PK.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maikuolan committed Jul 24, 2023
1 parent e4e0109 commit 37e21a7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/L10N.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* L10N handler (last modified: 2023.05.13).
* L10N handler (last modified: 2023.07.24).
*
* This file is a part of the "common classes package", utilised by a number of
* packages and projects, including CIDRAM and phpMussel.
Expand Down Expand Up @@ -1031,6 +1031,11 @@ public function getFractionRule($Code)
*/
public function getDirectionality($Code)
{
/** Right-to-left per locale. */
if ($Code === 'pa-PK') {
return 'rtl';
}

if (($Pos = strpos($Code, '-')) !== false) {
$Code = substr($Code, 0, $Pos);
}
Expand Down

0 comments on commit 37e21a7

Please sign in to comment.