Skip to content

Commit

Permalink
Merge pull request #2773 from CihanSenturk/count-relationship-text
Browse files Browse the repository at this point in the history
Relationships count warning text updated
  • Loading branch information
cuneytsenturk committed Nov 24, 2022
2 parents 386c2c7 + fc38744 commit 96fa220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Traits/Relationships.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function countRelationships($model, $relationships): array
}

$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;
Expand Down

0 comments on commit 96fa220

Please sign in to comment.