Merge pull request #2773 from CihanSenturk/count-relationship-text

Relationships count warning text updated
This commit is contained in:
Cüneyt Şentürk 2022-11-24 15:19:29 +03:00 committed by GitHub
commit 96fa22029a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ trait Relationships
}
$text = Str::contains($text, '::') ? $text : 'general.' . $text;
$counter[] = $c . ' ' . strtolower(trans_choice($text, ($c > 1) ? 2 : 1));
$counter[] = (($c > 1) ? $c . ' ' : null ) . strtolower(trans_choice($text, ($c > 1) ? 2 : 1));
}
return $counter;