Skip to content

Commit

Permalink
Merge pull request #3115 from Mejans/master
Browse files Browse the repository at this point in the history
Update Occitan locale: small correction
  • Loading branch information
kylekatarnls authored Dec 11, 2024
2 parents a091a2b + 5689719 commit 8a111fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Carbon/Lang/oc.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
/*
* Authors:
* - Quentí
* - Quentin PAGÈS
*/
// @codeCoverageIgnoreStart
use Symfony\Component\Translation\PluralizationRules;
Expand Down Expand Up @@ -87,8 +88,8 @@
'ordinal' => static function ($number, string $period = '') {
$ordinal = [1 => 'èr', 2 => 'nd'][(int) $number] ?? 'en';

// feminine for year, week, hour, minute, second
if (preg_match('/^[yYwWhHgGis]$/', $period)) {
// feminine for week, hour, minute, second
if (preg_match('/^[wWhHgGis]$/', $period)) {
$ordinal .= 'a';
}

Expand Down

0 comments on commit 8a111fa

Please sign in to comment.